Skip to content

Instantly share code, notes, and snippets.

@ArmandDu
ArmandDu / .flowconfig-meteor
Last active March 23, 2018 12:14
A .flowconfig file for meteor projects . tested with Meteor 1.6.1
;Flow config for meteor projects.
;
;example usage:
;
;$ meteor create my-app
;$ cd my-app
;$ meteor npm install --save-dev flow-bin
;$ < add this file to project as .flowconfig >
;$ meteor
;$ [in your IDE or another console] ./node_modules/.bin/flow check
@ArmandDu
ArmandDu / docker-compose.yml
Created November 30, 2016 10:22
docker + nginx-proxy + letsencrypt : run your containers with automatic reverse proxy and ssl capabilities
#
# This is the docker-compose file for running nginx + dockergen + letsencrypt
# ref: https://github.com/jwilder/nginx-proxy#separate-containers
# ref: https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion#separate-containers-recommended-method
#
# You will be required to have in the same ./ a templates/ directory containing the last nginx.tmpl
# a certs/ directory will also be mounted to the ./ folder
#
# first-launch:
# $ docker network create -d bridge nginx-proxy
@ArmandDu
ArmandDu / .gitconfig
Last active August 29, 2015 14:26
my gitconfig aliases
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
discard = "checkout --"
ignore = "!f() { [ -e .git ] && echo "$@" >> .gitignore; }; f"
lg = log --oneline --decorate --all --graph
s = status -s
rmtag = "!f() { ACTION='git tag -d '; ARG="$1"; for arg in "$@"; do case $arg in '-r'|'--remote') ACTION='git push origin :refs/tags/';; *) ARG=$arg;; esac; done; $(echo "$ACTION$ARG"); }; f"
who = shortlog -sen