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
| /etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal. | |
| /etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup. | |
| /etc/php5/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup. |
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
| alias cd...="cd ../.." | |
| alias cd....="cd ../../.." | |
| alias cd.....="cd ../../../.." | |
| alias chrome="open -a 'Google Chrome'" | |
| alias emacs="emacs -nw" |
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
| var keepsHisWord; | |
| keepsHisWord = true; | |
| promise1 = new Promise(function(resolve, reject) { | |
| if (keepsHisWord) { | |
| resolve("The man likes to keep his word"); | |
| } else { | |
| reject("The man doesnt want to keep his word"); | |
| } | |
| }); | |
| console.log(promise1); |
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
| // Node.js CheatSheet. | |
| // Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
| // Download: http://nodejs.org/download/ | |
| // More: http://nodejs.org/api/all.html | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
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 | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
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
| // Optimizely JavaScript API | |
| // http://developers.optimizely.com/javascript/ | |
| // To opt a visitor out of Optimizely tracking | |
| // http://www.example.com/page.html?optimizely_opt_out=true | |
| // 1. API Function Calls | |
| // http://developers.optimizely.com/javascript/#api-function-calls-2 |
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
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
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
| docker build -t friendlyname . # Create image using this directory's Dockerfile | |
| docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 | |
| docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode | |
| docker exec -it [container-id] bash # Enter a running container | |
| docker ps # See a list of all running containers | |
| docker stop <hash> # Gracefully stop the specified container | |
| docker ps -a # See a list of all containers, even the ones not running | |
| docker kill <hash> # Force shutdown of the specified container | |
| docker rm <hash> # Remove the specified container from this machine | |
| docker rm $(docker ps -a -q) # Remove all containers from this machine |
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
| # Loads NVM | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
| # Extends default PATH | |
| PATH=$PATH:/usr/local/sbin | |
| # Defines aliases | |
| alias storepilots='cd ~/Documents/Storepilots/' | |
| alias storepilots_api='cd ~/Documents/Storepilots/storepilots_api/' |
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
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
NewerOlder