Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bak
bak / keybase.md
Created May 22, 2016 06:59
keybase proof

Keybase proof

I hereby claim:

  • I am bak on github.
  • I am beancuke (https://keybase.io/beancuke) on keybase.
  • I have a public key ASDH_N3C6zg4PAX3I2x6Pf7YkBZ5Ag5OaCYDkdv8hgEGEQo

To claim this, I am signing this object:

#!/bin/bash
cutstring="DO NOT EDIT BELOW THIS LINE"
for name in *; do
target="$HOME/.$name"
if [ -e $target ]; then
if [ ! -L $target ]; then
cutline=`grep -n -m1 "$cutstring" "$target" | sed "s/:.*//"`
if [[ -n $cutline ]]; then
@bak
bak / Guardfile
Created December 5, 2012 21:23 — forked from jhelwig/Guardfile
Auto-commit & run tests on every save
# More info at https://github.com/guard/guard#readme
ignore /^coverage\//
require 'tempfile'
notification :'terminal_notifier'
#notification :tmux,
# :display_message => true,
# :timeout => 5, # in seconds
say -v cello d d d d d d d d d d d d d d d d d d d d d d d d d d
#!/usr/bin/osascript
-- This script uses rooSwitch to switch Notational Velocity to the "encrypted" profile.
tell application "rooSwitch"
tell document "Notational Velocity.rooSwitch" to tell profile "encrypted" to make active with allow quit
end tell
tell application "Notational Velocity" to activate
tell application "rooSwitch" to quit
AMISH FRIENDSHIP BREAD
* Do not refrigerate.
* Air will build up in the bag. Let it out.
* The blob will grow. This is normal.
Day 1 March 31: Do nothing.
Day 2 April 1: Mash the bag.
Day 3 April 2: Mash the bag.
Day 4 April 3: Mash the bag.
@bak
bak / quix.txt
Created February 17, 2010 21:10
> Custom Quix Commands adapted from Merlin Mann
> TITLE: quix.txt
> GITHUB: http://gist.github.com/307009
> MORE: http://quixapp.com
> UPDATED: 2010-02-17_13-13-54
@Custom Quix Commands, orig. adapted from Merlin Mann
cal javascript:var%20s;if(window.getSelection){s=window.getSelection();}else{s=document.selection.createRange().text;}var%20t=prompt('Please%20enter%20a%20description%20for%20the%20event',s);if(t){void(window.open(encodeURI('http://www.google.com/calendar/event?ctext='+t+'&action=TEMPLATE&pprop=HowCreated%3AQUICKADD'),'gcal'));}else{void(s);} Add event to Google Calendar
down http://downforeveryoneorjustme.com/%d Is this site downforeveryoneorjustme?
gread javascript:var%20b=document.body;if(b){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)} Subscribe in Google
~$ brew install yasm
Warning: You should upgrade to Xcode 3.1.4
==> Downloading http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
File already downloaded and cached to /Users/bkerney/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/yasm/0.8.0 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/yasm/0.8.0: 41 files, 2.5M, built in 32 seconds
~$ brew install x264
Warning: You should upgrade to Xcode 3.1.4
==> Cloning git://git.videolan.org/x264.git
~$ brew install ffmpeg
Warning: You should upgrade to Xcode 3.1.4
==> Downloading http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
File already downloaded and cached to /Users/bkerney/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/yasm/0.8.0 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/yasm/0.8.0: 41 files, 2.5M, built in 29 seconds
==> Cloning git://git.videolan.org/x264.git
Repository already cloned to /Users/bkerney/Library/Caches/Homebrew/x264-HEAD
==> Checking out tag 6f5f8c~1
# Set up git repository
git :init
# Copy database.yml for distribution use
run "cp config/database.yml config/database.yml.example"
# Set up .gitignore files
run %{find . -type d -empty | xargs -I xxx touch xxx/.gitignore}
file '.gitignore', <<-END
.DS_Store