Skip to content

Instantly share code, notes, and snippets.

View adamancini's full-sized avatar

ada mancini adamancini

View GitHub Profile
@adamancini
adamancini / .zshrc
Created October 16, 2012 17:55
assetsclean
alias assetsclean="RAILS_ENV=development rake assets:clean && RAILS_ENV=development rake assets:precompile"
@adamancini
adamancini / .zshrc
Created October 16, 2012 17:58
Quick commit/push
function gm() {
git commit -am "$1" && git push
}
@adamancini
adamancini / gist:4001517
Created November 2, 2012 14:00
curl output
$ 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'
@adamancini
adamancini / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/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"
@adamancini
adamancini / gist:987a92920cbc523abe0c
Created January 15, 2015 02:34
test ifttt recipe public gist
body text
@adamancini
adamancini / asdf
Created January 15, 2015 03:01
random
gist
@adamancini
adamancini / gist:8fec32dab4ba91c60a7d
Created February 14, 2015 07:24
whatbox error log
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"
#!/bin/bash
/home/arkie/postgres/bin/postgres -D /home/arkie/postgres/data > logfile 2>&1 &
@adamancini
adamancini / gist:d563d36fac7337b9d245
Created February 23, 2015 05:55
gmsusic-api error output
(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...