I hereby claim:
- I am smgt on github.
- I am smgt (https://keybase.io/smgt) on keybase.
- I have a public key ASA3bRFagm5GCm-7RBunBAd35iZ0DuANkfSw5RWU-3igTwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Install Ruby from source | |
apt-get -y install curl bzip2 unzip | |
r_ver=1.9.3-p286 | |
curl -o /tmp/ruby-${r_ver}.tar.bz2 \ | |
"ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${r_ver}.tar.bz2" | |
(cd /tmp && tar -jxvf /tmp/ruby-${r_ver}.tar.bz2 && \ | |
cd ruby-${r_ver} && ./configure --prefix=/usr/local && \ | |
make && make install) | |
rm -rf /tmp/ruby-${r_ver} /tmp/ruby-${r_ver}.tar.bz2 |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "MacBook Pro" | |
scutil --set HostName "MacBook Pro" | |
scutil --set LocalHostName "MacBook-Pro" | |
# Menu bar: disable transparency |
<html> | |
<head> | |
<title>AddThis Flattr Test Page</title> | |
</head> | |
<body> | |
<!-- AddThis Button BEGIN --> | |
<div class="addthis_toolbox addthis_default_style "> | |
<a class="addthis_button_preferred_1"></a> | |
<a class="addthis_button_preferred_2"></a> |
$: << File.expand_path(".") + '/lib' | |
require 'sinatra' | |
require 'glorify' | |
get "/" do | |
@example = File.open("README.md", "rb").read | |
erb :index | |
end |
// Create a new object | |
ajax = new XMLHttpRequest(); | |
// Try to open a API resource that won't return a 200 or 201 | |
ajax.open("GET", "https://api.flattr.com/rest/v2/user", false); | |
ajax.send(); | |
// The response | |
ajax.responseText; | |
// "{"error":"unauthorized","error_description":"You are unauthorized to access the resource","error_uri":"http:\/\/developers.flattr.net\/api\/"}" |
#!/bin/sh | |
for day in $(seq 30 -1 0); do | |
git log --author="John Doe" --before="${day} days" --after="$[${day}+1] days" --format=oneline | | |
wc -l | |
done | spark | lolcat -a |
<html> | |
<head></head> | |
<body> | |
<div id="message"> | |
</div> | |
<input type="text" id="text-input"> | |
<input type="submit" id="send-button"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="http://localhost:8888/nowjs/now.js"></script> | |
<script> |
<html> | |
<head></head> | |
<body> | |
<div id="message"> | |
</div> | |
<input type="text" id="text-input"> | |
<input type="submit" id="send-button"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="http://localhost:8888/nowjs/now.js"></script> | |
<script> |
source /usr/local/git/contrib/completion/git-completion.bash | |
# Reset | |
Color_Off='\033[0m' # Text Reset | |
# Regular Colors | |
Black='\033[0;30m' # Black | |
Red='\033[0;31m' # Red | |
Green='\033[0;32m' # Green | |
Yellow='\033[0;33m' # Yellow |