Skip to content

Instantly share code, notes, and snippets.

View ammonkc's full-sized avatar

Ammon Casey ammonkc

  • Broken.Paradigm.Labs
  • Honolulu, Hi
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ammonkc on github.
  • I am ammonkc (https://keybase.io/ammonkc) on keybase.
  • I have a public key ASB0hYpBfw-toysavip8NvSXSaknJlayECId23CxfJs9lgo

To claim this, I am signing this object:

#!/usr/bin/ruby
# Sifttter: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com>
# Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com>
#
# Notes:
# * Uses `mdfind` to locate a specific folder of IFTTT-generated text files changed in the last day
# * The location of your folder should be hardcoded in line 53
# * Scans leading timestamps in each line matching today's date
# * Does not alter text files in any way
# * Changes ampersand ('&') to 'and' so the script keeps running
# toggle iTerm Dock icon
# add this to your .bash_profile or .zshrc
function toggleiTerm() {
pb='/usr/libexec/PlistBuddy'
iTerm='/Applications/iTerm.app/Contents/Info.plist'
echo "Do you wish to hide iTerm in Dock?"
select ync in "Hide" "Show" "Cancel"; do
case $ync in
'Hide' )
/*
---
name: guilloche
script: guilloche.js
description: guilloche
provides: [Guilloche]
...
*/
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
import getopt
#
# Show Usage, Output to STDERR
# Capistrano Laravel 4 Deployment Tasks
# Watts Martin (layotl at gmail com)
# https://gist.github.com/chipotle/5506641
# updated 12-Jul-2013
# Assumptions:
#
# - You are using a .gitignore similar to Laravel's default, so your
# vendor directory and composer(.phar) are *not* under version control
# - Composer is installed as an executable at /usr/local/bin/composer
@ammonkc
ammonkc / .gitattributes
Created July 9, 2013 18:13 — forked from dhrrgn/.gitattributes
gitattributes #git
# Ensures all line endings are committed as LF, but will checkout with native line endings
* text=auto
# -- Override Section, just in-case Git tries to be sneaky
# Ensure that these files are recognized as text
*.asp text
*.aspx text
*.asx text
*.c text
@ammonkc
ammonkc / ST3_shortcuts.md
Created June 21, 2013 19:47
[ST3] Sublime Text 3 - #keybindings #cmd

Sublime Text 3 - Useful Shortcuts (Mac OS X)

ST3 Keybindings - User

command Description
⌃S Toggle Side Bar
⌥ Tab Move Forward by character

Open/GoTo

@ammonkc
ammonkc / .gitignore
Created June 21, 2013 19:34
[ST3] gitignore boilerplate #laravel
/bootstrap/compiled.php
/vendor
composer.phar
composer.lock
.DS_Store
/public/assets/cache/*.js
/public/assets/cache/*.css
.vagrant
Vagrantfile
*.orig