Skip to content

Instantly share code, notes, and snippets.

@serby
serby / setup.sh
Last active February 2, 2019 13:00
# Stop on error
set -e
# Is brew needed?
if [ -x "$(which brew)" ]; then
echo Skipping brew
else
echo Installing brew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
fi
@serby
serby / gist:3871573
Created October 11, 2012 10:44
Processing form checkboxes in ctrl
var formHelper = require('../../../lib/utils/formHelper');
...
formPostHelper: function(req, res, next) {
var proc = formHelper.processors;
formHelper.process(req, {
live: proc.boolean
});
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 05:34
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname