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
{ | |
"obp": "{:cmds [ | |
{:name :fade :group :level/ten :target-color {:red 255 :green 0 :blue 153 :white 0 } :duration 10} | |
{:name :fade :group :level/nine :target-color {:red 255 :green 0 :blue 153 :white 0 } :duration 10} | |
{:name :fade :group :level/eight :target-color {:red 255 :green 0 :blue 4 :white 0 } :duration 10} | |
{:name :fade :group :level/seven :target-color {:red 255 :green 132 :blue 0 :white 0 } :duration 10} | |
{:name :fade :group :level/six :target-color {:red 255 :green 255 :blue 0 :white 0 } :duration 10} | |
{:name :fade :group :level/five :target-color {:red 59 :green 207 :blue 0 :white 0 } :duration 10} | |
{:name :fade :group :level/four :target-color {:red 0 :green 255 :blue 213 :white 0 } :duration 10} | |
{:name :fade :group :level/three :target-color {:red 4 :green 0 :blue 255 :white 0 } :duration 10} |
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
parted /dev/sda -- mklabel gpt | |
parted /dev/sda -- mkpart primary 512MiB -8GiB | |
parted /dev/sda -- mkpart primary linux-swap -8GiB 100% | |
parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB | |
parted /dev/sda -- set 3 boot on | |
mkfs.ext4 -L nixos /dev/sda1 | |
mkswap -L swap /dev/sda2 | |
mkfs.fat -F 32 -n boot /dev/sda3 | |
mkdir -p /mnt/boot | |
mount /dev/disk/by-label/boot /mnt/boot |
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
# git-tag.sh | |
tag=$(git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3) | |
tag+="_" | |
tag+=$(date +"%Y%m%d") | |
read -p "What's the tag count for today? " n | |
tag+=$n | |
git tag "$tag" | |
while true; do | |
read -p "Push tag? " yn |
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
<DT><H3 FOLDED>iPhones</H3> | |
<DL><p> | |
<DT><A HREF="javascript:open(location,'iPhone:portrait','innerWidth='+(640+15)+',innerHeight='+(1136+15)+',scrollbars=yes');">iPhone 5 - Portrait</A> | |
<DT><A HREF="javascript:open(location,'iPhone:landscape','innerWidth='+(1136+15)+',innerHeight='+(640+15)+',scrollbars=yes');">iPhone 5 - Landscape</A> | |
<DT><A HREF="javascript:open(location,'iPhone:portrait','innerWidth='+(640+15)+',innerHeight='+(960+15)+',scrollbars=yes');">iPhone 4 - Portrait</A> | |
<DT><A HREF="javascript:open(location,'iPhone:landscape','innerWidth='+(960+15)+',innerHeight='+(640+15)+',scrollbars=yes');">iPhone 4 - Landscape</A> | |
<DT><A HREF="javascript:open(location,'iPhone:portrait','innerWidth='+(320+15)+',innerHeight='+(480+15)+',scrollbars=yes');">iPhone 3 - Portrait</A> | |
<DT><A HREF="javascript:open(location,'iPhone:landscape','innerWidth='+(480+15)+',innerHeight='+(320+15)+',scrollbars=yes');">iPhone 3 - Landscape</A> | |
<DT><A HREF="http://www.iphoneresolution.com/">What's the iPhone Screen Resolut |
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
# SSH Config Autocomplete | |
complete -o default -o nospace -W "$(/usr/bin/env ruby -ne 'puts $_.split(/[,\s]+/)[1..-1].reject{|host| host.match(/\*|\?/)} if $_.match(/\s*Host\s+/);' < $HOME/.ssh/config)" scp sftp ssh |
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
// Stuart Powers | |
write_window(document.activeElement.value); | |
function write_window(content) { | |
top.consoleRef=window.open('', | |
'git-r-done', | |
+',menubar=1' | |
+',toolbar=1' | |
+',status=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
# encoding: utf-8 | |
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
before_filter :set_locale | |
private | |
def set_locale | |
I18n.locale = params[:locale] || |
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
group :linux do | |
gem 'rb-inotify', '~> 0.9' | |
end | |
group :darwin do | |
gem 'rb-fsevent' | |
end |