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.
trash: ~/.Trash | |
default: w | |
dirs: | |
w: ~/work/myjob/archive | |
p: ~/Dropbox/Archive | |
o: /path/to/other/archive |
# 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 |
#!/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? |
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : |
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : |
{ | |
"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": { |
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.
// | |
// UIImage+H568.h | |
// | |
// Created by Angel Garcia on 9/28/12. | |
// Copyright (c) 2012 angelolloqui.com. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIImage (H568) |
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *)platform; |
/** | |
* Module dependencies | |
*/ | |
var request = require("superagent"), | |
password = require("password"), | |
password.initialize(require("password-bearer")); | |
/** | |
* Make the request | |
*/ |