###SSH into a remote machine###
ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| /* Sass Mixin that generates a Baseline Grid */ | |
| /* by: Mike Morrison, Soholaunch.com */ | |
| /* You don't have to leave this credit comment in, but it would be nice of you. */ | |
| // Set your grid dimensions here | |
| $body-width: 960px; | |
| $baseline: 22px; | |
| @mixin baseline-grid { | |
| $columns: 16; | |
| $column-color: rgba(200,0,0,.2); |
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
| sleep 1 | |
| done |
###SSH into a remote machine###
ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| # Was asked how I keep my zshrc config sync'd between my computers with Dropbox | |
| # Add a new directory in your Dropbox (or use an existing one) | |
| mkdir -p ~/Dropbox/ohmyzsh | |
| # move existing file to Dropbox | |
| mv ~/.zshrc ~/Dropbox/ohmyzsh/zshrc | |
| # symlink file back to your local directory | |
| ln -s ~/Dropbox/ohmyzsh/zshrc ~/.zshrc |
| $base-font-size: 16px; | |
| $base-line-height: 1.5; | |
| // this value may vary for each font | |
| // unitless value relative to 1em | |
| $cap-height: 0.68; | |
| @mixin baseline($font-size, $scale: 2) { |
| function getBgImageUrl($el) { | |
| var el = $el instanceof HTMLElement ? $el : ($el instanceof window.jQuery && $el.get(0)) | |
| if (!el) { | |
| return '' | |
| } | |
| var backgroundImage = getComputedStyle(el).backgroundImage | |
| if (!backgroundImage || backgroundImage === 'none') { |
| git config --global url."https://github.com/".insteadOf git@github.com: | |
| git config --global url."https://".insteadOf git:// | |
| More details here: https://github.com/npm/npm/issues/5257#issuecomment-60441477 |
| // declarations | |
| var positions = []; | |
| // Returns a random integer between min (included) and max (excluded) | |
| // Using Math.round() will give you a non-uniform distribution! | |
| function getRandomInt(min, max) { | |
| return Math.floor(Math.random() * (max - min)) + min; | |
| } | |
| // generate random positions |
| # Local Dates: | |
| git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt | |
| # ISO Dates: | |
| git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt |