Skip to content

Instantly share code, notes, and snippets.

View michaelabon's full-sized avatar

Michael Abon (Mike Kenyon) michaelabon

View GitHub Profile

Keybase proof

I hereby claim:

  • I am michaelabon on github.
  • I am michaelabon (https://keybase.io/michaelabon) on keybase.
  • I have a public key ASDXEPPZ9MtVPvfOtbF8g4gIsju_W70V5U8wiCE-mQntBgo

To claim this, I am signing this object:

@michaelabon
michaelabon / dim.wishlist.txt
Created August 16, 2020 22:21
dim.wishlist.txt
// test test
dimwishlist:item=2342444&perks=460017080,460017080,460017080,460017080
*3*5*7*9*12*15*18*21*24*27*30*33*36*39*42*45*48*51*54*57*60*63*66*69*72*75*78*81*84*87*90*93*96*100*104*108*112*116*120*124*128*132*136*140*144*148*152*156*160*164*168*172*176*180*184*188*192*196*200*204*208*212*216*220*224*228*232*236*240*244*248*252*256*260*264*268*272*276*280*284*288*292*296*300*304*308*312*316*320*324*328*332*336*340*344*348*352*356*360*364*368*372*376*380*384*388*392*396*400*404*408*412*416*420*424*428*432*436*440*444*448*452*456*460*464*468*472*476*480*484*488*492*496*500*504*508*512*516*520*524*528*532*536*540*544*548*552*556*560*564*568*572*576*580*584*588*592*596*600*604*608*612*616*620*624*628*632*636*640*644*648*652*656*660*664*668*672*676*680*684*688*692*696*700*704*708*712*716*720*724*728*732*736*740*744*748*752*756*760*764*768*772*776*780*784*788*792*796*800*804*808*812*816*820*824*828*832*836*840*844*848*852*856*860*864*868*872*876*880*884*888*892*896*900*904*908*912*916*920*924*928*932*936*940*944*948*952*956*960*964*968*972*976*980*984*988*992*996*1001*1006*1011*1016*1021*102
@michaelabon
michaelabon / two-bookmarklets.js
Created June 23, 2016 15:06
pivotal tracker bookmarklets
javascript:$('.project_name:not(:contains("' + $('.raw_context_name').text() + '"))').parent().parent().remove()
javascript:(
var visitNotificationSettings = function() {
window.href = "https://www.pivotaltracker.com/notification_settings";
};
var currentPageIsNotificationSettings = function() {
return document.getElementById('project_notifications_flash');
};
@michaelabon
michaelabon / Instructions.md
Last active August 29, 2015 14:23
Projections for React and Rails (for Vim and others)
  1. Add this as config/projections.json in your Rails app.
  2. Upgrade to the latest copy of pivotalcommon/vim-config by running:
~/.vim/bin/update

<3 <3 Grant for this.

I long for the day of JSON comments.

@michaelabon
michaelabon / installing-postgres-on-yosemite.md
Last active August 29, 2015 14:20
Installing Postgres on Mac OS X 10.10 (Yosemite)
brew update
brew install postgresql

Yosemite appears to delete folders that postgres needs.

mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/
touch /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/.keep
@michaelabon
michaelabon / add_key.sh
Last active August 29, 2015 14:08
Keep your keys on an encrypted drive
#!/usr/bin/env bash
HOURS=$1
if [ -z $HOURS ]; then
CURRENT_HOUR=$(date +"%H")
QUITTING_HOUR=18
MARGIN_OF_ERROR=1
HOURS=$(expr $QUITTING_HOUR - $CURRENT_HOUR + $MARGIN_OF_ERROR)
@michaelabon
michaelabon / gist:6d2214a0b7bb8405f9d2
Last active August 29, 2015 14:07
Citibike NYC APIs
http://appservices.citibikenyc.com/data2/poi.json
http://appservices.citibikenyc.com/data2/stations.php
http://appservices.citibikenyc.com/data2/stations.php?updateOnly=true
http://appservices.citibikenyc.com/v1/branch/list
http://appservices.citibikenyc.com/v1/content/list
http://appservices.citibikenyc.com/v1/helmet/list
http://appservices.citibikenyc.com/v1/station/list
http://appservices.citibikenyc.com/v1/station/updates
@michaelabon
michaelabon / aliases.zsh
Created January 10, 2014 00:33
Forgot to sudo? Make sure your command runs.
bitch() {
if [[ $1 -eq "please" ]]
then
sudo $(fc -ln -1)
else
sudo "$@"
fi
}
@michaelabon
michaelabon / doge.alias.sh
Created January 10, 2014 00:32
Such alias.
alias very='git checkout'
function such() {
git commit -m "$@"
}
alias wow='git push'
alias ?????='bundle exec cap staging deploy'
alias amaze='bundle exec cap production deploy'
alias doge=alias