THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| export LC_ALL=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| SSH_ENV=$HOME/.ssh/environment | |
| # start the ssh-agent | |
| function start_agent { | |
| echo "Initializing new SSH agent..." | |
| # spawn ssh-agent | |
| /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" |
| #!/bin/bash | |
| # Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/ | |
| set -e | |
| sourceApp="$1" | |
| targetApp="$2" | |
| while read key value; do |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#Transform web.config on build
</Project>; v12.0 my change depending on your version of Visual Studio| App configuration in environment variables: for and against | |
| For (some of these as per the 12 factor principles) | |
| 1) they are are easy to change between deploys without changing any code | |
| 2) unlike config files, there is little chance of them being checked | |
| into the code repo accidentally | |
| 3) unlike custom config files, or other config mechanisms such as Java |
| # Steps to build and install tmux from source. | |
| # Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
| VERSION=2.7 | |
| sudo yum -y remove tmux | |
| sudo yum -y install wget tar libevent-devel ncurses-devel | |
| wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
| tar xzf tmux-${VERSION}.tar.gz | |
| rm -f tmux-${VERSION}.tar.gz | |
| cd tmux-${VERSION} |
| import * as mongoose from 'mongoose'; | |
| export let Schema = mongoose.Schema; | |
| export let ObjectId = mongoose.Schema.Types.ObjectId; | |
| export let Mixed = mongoose.Schema.Types.Mixed; | |
| export interface IHeroModel extends mongoose.Document { | |
| name: string; | |
| power: string; |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "Stmt1457967512000", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:ListAllMyBuckets" | |
| ], | |
| "Resource": [ |
| # ... more above ... | |
| # wsfl bash is not a login shell | |
| if [ -d "$HOME/bin" ] ; then | |
| PATH="$HOME/bin:$PATH" | |
| fi | |
| # ssh-agent configuration | |
| if [ -z "$(pgrep ssh-agent)" ]; then | |
| rm -rf /tmp/ssh-* |
| (defun my/use-eslint-from-node-modules () | |
| (let ((root (locate-dominating-file | |
| (or (buffer-file-name) default-directory) | |
| (lambda (dir) | |
| (let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" dir))) | |
| (and eslint (file-executable-p eslint))))))) | |
| (when root | |
| (let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" root))) | |
| (setq-local flycheck-javascript-eslint-executable eslint))))) |