Skip to content

Instantly share code, notes, and snippets.

@scheffield
scheffield / rollback_iterm_nightly.sh
Created April 24, 2017 00:13
rollback iterm nightly
# get previous nightly from https://www.iterm2.com/downloads/nightly/#/section/home
cd /tmp
wget https://www.iterm2.com/downloads/nightly/iTerm2-3_1_20170419-nightly.zip
unzip iTerm2-3_1_20170419-nightly.zip -o -d ~/Users/scheffield/Applications/
@scheffield
scheffield / install_r.sh
Last active March 5, 2017 02:22
Install R on Mac
# http://apple.stackexchange.com/questions/121401/how-do-i-install-r-on-os-x
brew install r r-gui
brew link r-gui
open /Applications/R.app
mount
# apply /etc/fstab changes
sudo mount -a
# get disk information and UUIDs
bklid
sudo fdisk -l
diskutil verifyVolume /dev/disk2
# fill disk with zeros
sudo dd if=/dev/zero of=/dev/diskX
@scheffield
scheffield / share-vagrant-box.md
Last active June 26, 2017 12:01
How to share a vagrant box using https://atlas.hashicorp.com
  1. Sign Up and configure the box' meta data following the Atlas manual

  2. Provision your box as you like

  3. Find the name of your box

    $ VBoxManage list vms
  4. Package your box

@scheffield
scheffield / .gitconfig
Last active June 4, 2019 14:13
Setting up a dev mac
[user]
name = Max Scheffler
email = max@canva.com
[alias]
co = checkout
ci = commit
cia = !git add -A && git commit
ciad = !git add -A && git commit -m "."
st = status
br = branch

#Some links http://effectif.com/mac-os-x/installing-specific-version-of-homebrew-formula http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula/4158763#4158763 https://github.com/Homebrew/homebrew-versions

#How to install particular version of a formula

  1. finding the commit of the formula change for the version your looking for:
  • cd $(brew --repository)
  • git log -- Library/Formula/<formula_name>.rb or git log -S '<version>' -- Library/Formula/<formula_name>.rb
  1. unlink previous installed version

ansible all -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory -u vagrant --private-key .vagrant/machines/default/virtualbox/private_key -m ping