Skip to content

Instantly share code, notes, and snippets.

alias gundo='git reset HEAD~ && git clean -df'
/**
* 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:
@Francois-Francois
Francois-Francois / 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/
421 421 421
7 7 7
user group other
rwx rwx rwx
['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',
hasMany : model remote local
BelongsTo: model local remote
hasOne : model remote local
@Francois-Francois
Francois-Francois / 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'