Jekyll

jekyll build --destination <destination>

Git/Github

Create github repo from command line:

curl -u 'username' https://api.github.com/user/repos -d '{"name":"repo-name"}'

This will prompt for password. Replace username and reponame.

R

Plotting

To create a plot with white backgroud:

p <- ggplot()
p <- p + theme_bw()

To create a without legend:

p <- p + theme(legend.position="none")

To add a error bar when given a standard error in the dataframe (say Normality is assumed):

limits<-aes(ymin=xbar - 1.96 * se, ymax= xbar + 1.96 * se)
p <- p + geom_errorbar(limits, width=.2, position=position_dodge(width=.9))

Sublime

To surround citation by square brackets (in the current file), press command-option-f and search for \cite{[a-z,A-Z,0-9]*} and replace by [$0].