Skip to content

Instantly share code, notes, and snippets.

@rikless
rikless / alias.sh
Created Aug 16, 2016
List Files in Human Readable Format
View alias.sh
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'
View Eloquent relations parameters
hasMany : model remote local
BelongsTo: model local remote
hasOne : model remote local
View stripe_events_types
['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',
View perms
421 421 421
7 7 7
user group other
rwx rwx rwx
@rikless
rikless / ff-font-arch
Created Feb 15, 2014
fix firefox font issue on archlinux
View ff-font-arch
ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/
View restfulizer.js
/**
* 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:
View tip.sh
alias gundo='git reset HEAD~ && git clean -df'