Skip to content

Instantly share code, notes, and snippets.

@rikless
rikless / alias.sh
Created August 16, 2016 06:19
List Files in Human Readable Format
du -sk -- * | sort -n | perl -pe '@SI=qw(K M G T P); s:^(\d+?)((\d\d\d)*)\s:$1." ".$SI[((length $2)/3)]."\t":e'
hasMany : model remote local
BelongsTo: model local remote
hasOne : model remote local
['account.updated',
'account.application.deauthorized',
'account.external_account.created',
'account.external_account.deleted',
'account.external_account.updated',
'application_fee.created',
'application_fee.refunded',
'application_fee.refund.updated',
'balance.available',
'bitcoin.receiver.created',
421 421 421
7 7 7
user group other
rwx rwx rwx
@rikless
rikless / ff-font-arch
Created February 15, 2014 13:32
fix firefox font issue on archlinux
ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/
/**
* Taken from http://paste.laravel.com/b8n
* and added a datum attr to submit data along with the RESTful request
*
* Restfulize any hiperlink that contains a data-method attribute by
* creating a mini form with the specified method and adding a trigger
* within the link.
* Requires jQuery!
*
* Ex in Laravel:
@rikless
rikless / tip.sh
Created August 15, 2013 20:51 — forked from JeffreyWay/tip.sh
alias gundo='git reset HEAD~ && git clean -df'