This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Build Nginx 1.10.3 on Mac OS X Mavericks (10.9) | |
| # This script was created by Kevin Worthington - http://kevinworthington.com/ - 28 October 2013 | |
| # Original article at: http://kevinworthington.com/nginx-for-mac-os-x-yosemite-in-2-minutes/ | |
| # Modifed by Drew Toddsby - 2 February 2017 | |
| # This useful script is provided for free, but without warranty. Use at your own risk. | |
| # By downloading this script you agree to the terms above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ========================= | |
| # Add User OS X Interactive Command Line | |
| # ========================= | |
| getHiddenUserUid() | |
| { | |
| local __UIDS=$(dscl . -list /Users UniqueID | awk '{print $2}' | sort -ugr) | |
| #echo $__UIDS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; FPM Configuration ; | |
| ;;;;;;;;;;;;;;;;;;;;; | |
| ; All relative paths in this configuration file are relative to PHP's install | |
| ; prefix (/usr/local/php-5.6). This prefix can be dynamically changed by using the | |
| ; '-p' argument from the command line. | |
| ; Include one or more files. If glob(3) exists, it is used to include a bunch of | |
| ; files from a glob(3) pattern. This directive can be used everywhere in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo openssl req -x509 -nodes -days 3652 -newkey rsa:2048 -sha256 -keyout nginx-selfsigned.key -out nginx-selfsigned.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname 2> /dev/null) | |
| if [ "master" = "$branch" ]; then | |
| (cd /home/tufandr/public_html/mightty && git --git-dir /home/tufandr/repos/mightty/.git --work-tree /home/tufandr/public_html/mightty checkout master -f && yarn && node_modules/.bin/gulp && node_modules/.bin/gulp 6to5ifyProd) | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH=/usr/local/php-5.6/bin:/usr/local/php-5.6/sbin:$HOME/.rvm/bin:$PATH | |
| alias gulp=node_modules/.bin/gulp | |
| alias pm2=node_modules/.bin/pm2 | |
| alias lso="ls -alG | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\" %0o \",k);print}'" | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| # Load NVM | |
| export NVM_DIR="$HOME/.nvm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## SETUP DOCKER | |
| Root User: docker | |
| Root Pass: tcuser | |
| /usr/local/bin/boot2docker up && export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375 | |
| boot2docker ssh ip addr show dev eth1 | |
| docker build -t mysql . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict" | |
| var Promise = function () { | |
| this.state = 'pending' | |
| this.thenables = [] | |
| } | |
| Promise.prototype.resolve = function (value) { | |
| if (this.state != 'pending') return | |
| this.state = 'fulfilled' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "CHOOSE OPTION" | |
| echo "[0] HEAD / [1] BRANCH NAME" | |
| read REPLACE_EMAIL_OPTION | |
| if [[ $REPLACE_EMAIL_OPTION = 0 ]] | |
| then | |
| GIT_BRANCH="HEAD" | |
| else |