Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: fxn/dotfiles
base: 606e96e419
head fork: fxn/dotfiles
compare: fca5775066
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 65 additions and 0 deletions.
  1. +3 −0  cheat-sheets/
  2. +62 −0 cheat-sheets/
3  cheat-sheets/
@@ -19,6 +19,9 @@ git remote add rails git://
git fetch rails
git rebase rails/master
+# publish a local branch to the origin remote
+git push origin newfeature
# defaults
git config --global push.default matching
git config --global "Xavier Noria"
62 cheat-sheets/
@@ -0,0 +1,62 @@
+# VMware Fusion: One IP to Rule Them All
+## DHCP configuration of VMware for Fixed IPs
+Open the configuration file _/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf_
+and add one entry like this per each virtual machine:
+ host rails {
+ hardware ethernet 00:0c:29:73:dc:78;
+ fixed-address;
+ }
+below the comment banner
+ ####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######
+The fixed IP must lie **outside** the range you can see in the `subnet` block:
+ subnet netmask {
+ range;
+ ...
+ }
+In the example above we are setting, which is correctly out of
+the range.
+The configuration file is reset after a VMware upgrade, but the process leaves
+a backup called _/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf.bak_.
+Just restore the `host` blocks from there.
+## /etc/hosts
+Edit _/etc/hosts_ to assign a name to the fixed IP:
+ vm
+## Mounting Virtual Machines via SSH
+You need first to install `sshfs`. It is available both via MacPorts and
+Then put this script in your `$PATH`:
+ #!/bin/bash
+ user=${1:-fxn}
+ host=${2:-vm}
+ exec sshfs -o StrictHostKeyChecking=no -o reconnect -o workaround=rename $user
+The `StrictHostKeyChecking` is needed because we want to connect via SSH to
+different machines that share the same IP. The `reconnect` option is to have
+the filesystem mounted for a long period of time without cuts, and the
+`workaround=rename` is related to Git.
+To umount the filesystem:
+ #!/bin/bash
+ diskutil umount /Users/fxn/vm 2>/dev/null

No commit comments for this range

Something went wrong with that request. Please try again.