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 assetsclean="RAILS_ENV=development rake assets:clean && RAILS_ENV=development rake assets:precompile" |
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
| function gm() { | |
| git commit -am "$1" && git push | |
| } |
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
| $ curl -X POST -d "sms[to]=18036936535" -d "sms[message]=Hey" shweb.dev/sms/send_sms | |
| Started POST "/sms/send_sms" for 127.0.0.1 at 2012-11-02 09:45:39 -0400 | |
| Processing by SmsController#send_sms as */* | |
| Parameters: {"sms"=>{"To"=>"18036936535", "message"=>"Hey"}} | |
| WARNING: Can't verify CSRF token authenticity | |
| Completed 500 Internal Server Error in 453ms | |
| Twilio::REST::RequestError (A 'To' phone number is required.): | |
| app/controllers/sms_controller.rb:14:in `send_sms' |
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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| # | |
| set -ex | |
| TEMP_DIR="$(mktemp -d -t XXXX)" | |
| # cleanup | |
| trap 'RESULT=$?; rm -rf "$TEMP_DIR" ; exit $RESULT' INT TERM EXIT QUIT | |
| OLD_PWD="$PWD" | |
| cd "$TEMP_DIR" |
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
| body text |
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
| gist |
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
| 2015/02/14 07:10:44 [error] 20872#0: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 96.37.30.167, server: , request: "GET /owncloud/index.php HTTP/1.1", upstream: "fastcgi://unix:/home/hypgnosis/.config/php-fpm/socket:", host: "capricorn.whatbox.ca:64771" | |
| 2015/02/14 07:14:10 [info] 20872#0: *14 client closed connection while waiting for request, client: 96.37.30.167, server: 0.0.0.0:64771 | |
| 2015/02/14 07:14:10 [info] 20872#0: *15 client closed connection while waiting for request, client: 96.37.30.167, server: 0.0.0.0:64771 | |
| 2015/02/14 07:14:11 [error] 20872#0: *16 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 96.37.30.167, server: , request: "GET /owncloud/index.php HTTP/1.1", upstream: "fastcgi://unix:/home/hypgnosis/.config/php-fpm/socket:", host: "capricorn.whatbox.ca:64771" |
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 | |
| /home/arkie/postgres/bin/postgres -D /home/arkie/postgres/data > logfile 2>&1 & |
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
| (virtualenv)hypgnosis@stew ~/gmusicapi-scripts $ ./gmsync.py up -d ~/files/Music/Music/ | |
| /home/hypgnosis/virtualenv/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html | |
| InsecureRequestWarning) | |
| Successfully logged in. | |
| Loading Google Music songs... | |
| Filtered 0 Google Music songs | |
| Loaded 551 Google Music songs | |
| Loading local songs... |