Install the following devDependencies:
$ npm i -D eslint eslint-config-standard eslint-plugin-standard
config in package.json
"eslintConfig": {
"extends": "standard",
"plugins": "standard"| EDITOR='vim' | |
| LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:' | |
| PATH=$( | |
| echo "$PATH:/c/Users/joe/bin:/c/Users/joe/AppData/Roaming/nvm:/c/Program Files/nodejs" \ | |
| | awk -v RS=':' -v ORS=':' '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}' | |
| ) | |
| export LS_COLORS | |
| export PATH |
| { | |
| "env": { | |
| "es6": true, | |
| "node": true | |
| }, | |
| "globals": { | |
| "document": false, | |
| "navigator": false, | |
| "window": false | |
| }, |
| #!/usr/bin/env bash | |
| unalias d | |
| alias d=docker | |
| alias dm=docker-machine | |
| alias fig=docker-compose | |
| alias vidocker="$EDITOR $HOME/.oh-my-zsh/custom/docker.zsh" | |
| de() { docker exec -it $(docker ps -l -q) ${1:-'/bin/bash'}; } | |
| dps() { docker ps --format '{{.ID}}\t{{.Image}}'; } |
Install the following devDependencies:
$ npm i -D eslint eslint-config-standard eslint-plugin-standard
config in package.json
"eslintConfig": {
"extends": "standard",
"plugins": "standard"| echo $1 | sed -e 's/{\.//g' \ | |
| -e 's/}}/}/g' \ | |
| -e 's/{/\${/g' \ | |
| -e 's/\([A-Z]\)/_\1/g' \ | |
| -e 's/I_D/ID/' \ | |
| -e 's/\${/\${CI/g' \ | |
| | tr [a-z] [A-Z] |
| #!/bin/bash | |
| ## Run in ~/.docker/machine/machines/your-machine-name | |
| ## Remove the commas & quotes in the Codeship build, which can be done like so: | |
| ## echo -e "$DOCKER_CA_PEM" | tr ',' '\n' | sed 's/"//' | head -c -1 > $HOME/.docker/ca.pem | |
| echo DOCKER_CA_PEM=\"$(cat ca.pem | tr '\n' ',')\" >> deployment.env | |
| echo DOCKER_CERT_PEM=\"$(cat cert.pem | tr '\n' ',')\" >> deployment.env | |
| echo DOCKER_KEY_PEM=\"$(cat key.pem | tr '\n' ',')\" >> deployment.env | |
| echo DOCKER_TLS_VERIFY=1 >> deployment.env |
| awk -vORS="\\\n" '1' file.txt |
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://[MACHINE'S IP]"
export DOCKER_CERT_PATH="[FULL HOME PATH]/.docker/machine/machines/khs-eureka3"
export DOCKER_MACHINE_NAME="[MACHINE NAME]"| #!/usr/bin/zsh | |
| alias fig=docker-compose | |
| alias dm=docker-machine | |
| dps() { docker ps --format '{{.ID}}\t{{.Image}}'; } | |
| drmc() { docker rm -f $(docker ps -a -q); } | |
| drmi() { docker rmi -f $(docker images -q); } | |
| dstop() { docker stop $(docker ps -a -q); } |
| LC_COLLATE='C' ls -lah --group-directories-first |