Ask curl to connect to localhost, but send the Host
header with a different value
$ curl -H "Host: fake.com" http://localhost:8585
curl
will hang until you kill the server.
Ask curl to connect to localhost, but send the Host
header with a different value
$ curl -H "Host: fake.com" http://localhost:8585
curl
will hang until you kill the server.
{ | |
"template": { | |
"prompt_src": "graph:|profile/facebook.com|propmts:friends:connect#confirm_required", | |
"input": { | |
"name": "gref", | |
"prompt_src": "graph:|profile/facebook.com|propmts:friends:connect#gref", | |
"required": true, | |
"type": "gref" | |
}, | |
"input": { |
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : |
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : |
#!/usr/bin/env bash | |
# | |
# Put this in ~/.rbenv/rbenv.d/init/ | |
# Based in part on http://twistedmind.com/bundle-exec-bash-shortcut | |
# For a completely different take, see https://github.com/carsomyr/rbenv-bundler | |
# | |
# Slower. More correct? Choosing faster one for now. | |
# echo bundled_bins=\(`rbenv exec ruby -rbundler/setup -e 'puts Bundler.rubygems.all_specs.map{|s| s.executables}.flatten.join(" ")'`\) | |
# Only aliases executable names of the global Ruby. Cheap way to `rbenv exec` in every version? |
# On a Mac | |
# brew install gource (http://code.google.com/p/gource/) | |
# brew install ffmpeg | |
# git clone https://github.com/rails/rails.git | |
# In the rails code directory, run this to see the same visualization | |
gource --hide bloom,files,filenames,dirnames --auto-skip-seconds 0.3 --seconds-per-day 0.003 --date-format "%B %Y" --start-position 0.2 --stop-position 0.45 --file-idle-time 10 --stop-at-end -1024x768 | |
# Or do this to save it to a reusable video: | |
gource --hide bloom,files,filenames,dirnames --auto-skip-seconds 0.3 --seconds-per-day 0.003 --date-format "%B %Y" --start-position 0.2 --stop-position 0.45 --file-idle-time 10 --stop-at-end -1024x768 -o - | ffmpeg -y -b 3000K -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre slow -threads 0 rails-on-github.mp4 |
trash: ~/.Trash | |
default: w | |
dirs: | |
w: ~/work/myjob/archive | |
p: ~/Dropbox/Archive | |
o: /path/to/other/archive |
the-mini:~ $ cd /usr/local/ | |
the-mini:local (master) $ git remote -v | |
the-mini:local (master) $ git pull https://github.com/timshadel/homebrew.git | |
remote: Counting objects: 8, done. | |
remote: Compressing objects: 100% (5/5), done. | |
remote: Total 5 (delta 3), reused 0 (delta 0) | |
Unpacking objects: 100% (5/5), done. | |
From https://github.com/timshadel/homebrew | |
* branch HEAD -> FETCH_HEAD | |
First, rewinding head to replay your work on top of it... |
$ time grails create-app qotd | |
Welcome to Grails 1.3.4 - http://grails.org/ | |
Licensed under Apache Standard License 2.0 | |
Grails home is set to: /usr/local/Cellar/grails/1.3.4 | |
Base Directory: /Users/tim/work/ssi/consulting/learn | |
Resolving dependencies... | |
Dependencies resolved in 1143ms. | |
Running script /usr/local/Cellar/grails/1.3.4/scripts/CreateApp_.groovy | |
Environment set to development |
#!/usr/bin/env macruby | |
# From: http://www.stompy.org/2008/08/14/xcode-and-git-another-build-script/ | |
# Expanded from here: http://www.furmanek.net/36/using-macruby-to-set-xcode-project-version-from-git/ | |
# Xcode auto-versioning script for Subversion by Axel Andersson | |
# Updated for git by Marcus S. Zarra and Matt Long | |
# Converted to ruby by Abizern | |
# Converted to MacRuby by Gregory Furmanek | |
# Merged with MacRuby version by elliottcable | |
# Dirty handling, style and build-only version update by timshadel |