Skip to content

Instantly share code, notes, and snippets.

View rollback_iterm_nightly.sh
# 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 Mar 5, 2017
Install R on Mac
View install_r.sh
# 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
View disk.md
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
View git-repo-cleanup.md
View share-vagrant-box.md
  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 Jun 4, 2019
Setting up a dev mac
View .gitconfig
[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
View homebrew_version.md

#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
View vagrant-ansible.md

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

You can’t perform that action at this time.