(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # Problem: | |
| # | |
| # If you use git submodules linking two private github repos, you'll need to create a separate deploy key for each. | |
| # Multiple keys are not supported by Ansible, nor does ansible (when running git module) resort to your `.ssh/config` file. | |
| # This means your ansible playbook will hang in this case. | |
| # | |
| # You can however use the ansible git module to checkout your repo in multiple steps, like this: | |
| # | |
| - hosts: webserver | |
| vars: |
| num.iterations <- 1000 | |
| # Download South African heart disease data | |
| sa.heart <- read.table("http://www-stat.stanford.edu/~tibs/ElemStatLearn/datasets/SAheart.data", sep=",",head=T,row.names=1) | |
| x <- sa.heart[,c("age", "ldl")] | |
| y <- sa.heart$chd | |
| plot(x, pch=21, bg=c("red","green")[factor(y)]) | |
| # Function to standardize input values |
| The regex patterns in this gist are intended to match any URLs, | |
| including "mailto:[email protected]", "x-whatever://foo", etc. For a | |
| pattern that attempts only to match web URLs (http, https), see: | |
| https://gist.github.com/gruber/8891611 | |
| # Single-line version of pattern: | |
| (?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])) |