Skip to content

Instantly share code, notes, and snippets.

View teekaay's full-sized avatar

Thomas teekaay

View GitHub Profile
@teekaay
teekaay / deploy-sam.sh
Created May 10, 2018 19:50
Shell script to package and deploy a serverless app using AWS::Serverless transform
#!/usr/bin/env bash
set -e
STACK_TAGS="team=team environment=prod"
aws cloudformation deploy \
--template-file cf-templates/resources.yaml \
--stack-name mystack-prod-resources \
--capabilities CAPABILITY_IAM \
@teekaay
teekaay / package.json
Last active July 11, 2017 18:06
Hanging webpack
{
"name": "webpack-hangs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "teekaay",
"license": "MIT",
"scripts": {
"start": "node app.js",
"test": "./node_modules/.bin/jest",
@teekaay
teekaay / .eslintrc
Last active June 14, 2017 17:24
Personal package.json for ES2015 projects with jest (unit testing), eslint (code quality) and pre-commit (git integration)
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"extends": ["eslint:recommended"],
@teekaay
teekaay / R-with-packages.yaml
Created February 24, 2017 18:25
Ansible snippet for installing R with useful packages
---
- name: R | Install RStudio dependency libjpeg62
apt:
name: libjpeg62
- name: R |Install RStudio
shell: curl https://download1.rstudio.org/rstudio-1.0.136-amd64.deb >> ~/Downloads/rstudio.deb && dpkg -i ~/Downloads/rstudio.deb
- name: R | Prepare local library
shell: mkdir -p ~/R/library
- name: R | Prepare Renviron
shell: echo "R_LIBS_USER='~/R/library/'" > ~/.Renviron
@teekaay
teekaay / Dockerfile.java
Created February 24, 2017 18:23
Dockerfile for installing Java with Ubuntu base image
# Java 8 (Oracle) Dockerfile
# Base image: Ubuntu
# Installs: Java 8
FROM ubuntu:latest
# Install basic software support
RUN apt-get update && \
apt-get install --yes software-properties-common
@teekaay
teekaay / pom.xml
Last active February 24, 2017 18:19
Basic Maven POM with JUnit, Cobertura, Findbugs and PMD
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.your.organization</groupId>
<artifactId>basic-pom-file</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>