This file contains 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
{ | |
"Sol": { | |
"name": "Sol", | |
"proper_names": ["Sol", "Helios", "The Sun"], | |
"age": "4800 million years", | |
"standard_error_in_age": "0%", | |
"heavy_element_abundance": "100% of Sol", | |
"standard_error_in_heavy_element_abundance": "0%", | |
"arity": "singular", | |
"points_of_interest": "The \"8\" in the Detected Planets entry is not an error. Pluto is not a \"planet,\" but a huge, close-orbiting, low-eccentricity Kuiper Belt object. With a big moon. Of course, some die-hards out there still insist that it really is a planet, more for sentimental reasons than anything else. They're welcome to live in their little fantasy world. Neener neener.", |
This file contains 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 https://api.github.com/users/WIZARDISHUNGRY/starred #ugh json |
This file contains 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
if [ -f /opt/local/etc/bash_completion ] && ! shopt -oq posix; then | |
. /opt/local/etc/bash_completion | |
fi | |
# only use __git_ps1 if the function is defined | |
type __git_ps1 2> /dev/null > /dev/null | |
if [ $? -eq 0 ]; then | |
export PS1='\! \h:\w$(__git_ps1)\$ ' | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWSTASHSTATE=1 |
This file contains 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
cd /mnt/whatever && | |
find * -type f -print0 | xargs -0 -n 1 -P 5 -I % s3cmd sync --skip-existing % s3://bucketwhatever/% |
This file contains 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
<?php | |
/* | |
http://php.net/manual/en/language.oop5.late-static-bindings.php | |
*/ | |
class Adam { | |
const LORD='Adonai'; | |
public $knowledge = self::LORD; | |
public function getLord() { return self::LORD; } |
This file contains 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
Babylon Zoo - Spaceman (Arthur Meets The Spaceman) | |
Filter - Take A Picture | |
Dishwalla | |
Hum | |
(nin, janes addiction) |
This file contains 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 | |
for i | |
do | |
lynx -dump "http://www.google.com/search?q=$i&hl=en&client=safari&rls=en&tbs=isz:ex,iszw:32,iszh:32&tbm=isch&source=lnt&sa=X&ei=9eL1T9vXJsLx0gHKx6HyBg&ved=0CC0QpwUoAQ&biw=1482&bih=886" | grep imgurl=| sed 's/.*imgurl=//' | sed 's/\&.*//' | grep '\....$' | grep -v ico | grep -v ebay | |
done |
This file contains 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
require "chef/knife" | |
CHEF_ENV = ENV['CHEF_ENV'] || "get-a-life" | |
log_level :debug | |
log_location STDOUT | |
eval File.read "#{File.dirname File.expand_path(__FILE__)}/knife-#{CHEF_ENV}.rb" |
This file contains 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
<?php | |
$picture = new Imagick($path); | |
print_r($picture->getImageGeometry()); | |
list($width, $height) = $picture->getImageGeometry(); // doesn't work | |
list($width, $height) = array_values($picture->getImageGeometry()); // works |
This file contains 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
gem 'concurrent' |