View manr.sh
#!/bin/bash
ls /usr/share/man/man* | cut -d '.' -f1 | sort -u | shuf -n1 | xargs man
View protocol-fix.txt
$ tmux attach
protocol version mismatch (client 7, server 6)
$ pgrep tmux
3429
$ /proc/3429/exe attach
View custom-naming
%SN/S%0S/%S.N-S%0SE%0E-%E.N
Sample:
Show Name/S02/Show.Name-S02E03-Ep.Name.ext
View keybase.md

Keybase proof

I hereby claim:

  • I am eculver on github.
  • I am eculver (https://keybase.io/eculver) on keybase.
  • I have a public key whose fingerprint is 0A08 44A8 D6ED CCDD 4929 9BCD B530 10D9 1726 B005

To claim this, I am signing this object:

View command_t.sh
# in .vimrc install w/ Vundle/Pathogen/etc
# Bundle "command-t"
# build the extension
cd ~/.vimrc/bundle/command-t/ruby/command-t
ruby extconf.rb
make
# restart vim
View eeek.php
if ($parentId) {
$parentCondition = "node-closure.ancestor = $parentId";
$parentCondition = "node-closure.depth = 1";
} else if ($rootId) {
$parentCondition = "node-closure.ancestor = $rootId";
}
$clientCondition = "node.clientId = $clientId";
$assetCrit->addExpr('where', $parentCondition)
View wd-grid-view-overrides.js
// create timeout to make sure it runs last
setTimeout(function () {
$(".wd-thumbnail").css('background-image', 'none').css({'width': 238, 'height': 144});
$(".wd-thumbnail img").css({'width': 238, 'height': 144}).show();
}, 200);
View randhash
alias randhash='python -c "import md5; from datetime import datetime; print md5.new(datetime.now().strftime(\"%s\")).hexdigest()"'
View gist:8791514
/**
* Example Module in RequireJS
define([
'common/js/models/user',
'common/js/models/event',
'myapp/js/player'
], function () {
Ember.Application.initializer(ret = {
View sample_asset.json
{
"thumb": {
"href": "http://cache.mycdn.com/path/to/asset/a0324d3.jpg",
"width": 80,
"height": 80,
},
"asset": {
"id": 342393,
"title": "Client Commercial",
"filename": "mycommercial.m4v",