As configured in my dotfiles.
start new:
tmux
start new with session name:
worker_processes 1; | |
error_log logs/error.log; | |
events { | |
worker_connections 1024; | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
(function($){ | |
ListFilterCollapsePrototype = { | |
bindToggle: function(){ | |
var that = this; | |
this.$filterTitle.click(function(){ | |
that.$filterContent.slideToggle(); | |
that.$list.toggleClass('filtered'); | |
}); | |
}, | |
init: function(filterEl) { |
Date.prototype.toLocalISOString = function(){ | |
// ISO 8601 | |
var d = this | |
, pad = function (n){return n<10 ? '0'+n : n} | |
, tz = d.getTimezoneOffset() //mins | |
, tzs = (tz>0?"-":"+") + pad(parseInt(tz/60)) | |
if (tz%60 != 0) | |
tzs += pad(tz%60) | |
# | |
# mkcd command | |
# This is an improvised version of the mkcd command at http://superuser.com/questions/152794/is-there-a-shortcut-to-mkdir-foo-and-immediately-cd-into-it | |
# This function has to be added to the ~/.bashrc file | |
# After that you can run command like: mkdir abc, mkdir -p one/two/three | |
# | |
function mkcd { | |
last=$(eval "echo \$$#") | |
if [ ! -n "$last" ]; then | |
echo "Enter a directory name" |