(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:
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| #!/bin/bash | |
| #### This script is published by Philipp Klaus <philipp.l.klaus@web.de> | |
| #### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/> | |
| #### It is originally by freese60 and modified by limemonkey. | |
| #### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0> | |
| ### Uncomment this line to debug the script: | |
| #set -x |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| # 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 |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
note: I converted this script into the much easier to install joinopenwifi module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
When VPNs Just Work™, they're a fantastic way of allowing access to a private network from remote locations. When they don't work it can be an experience in frustration. I've had situations where I can connect to a VPN from my Mac, but various networking situations cause routing conflicts. Here are a couple of cases and how I've been able to get around them.
In this example the VPN we are connecting to has a subnet that does not conflict with our local IP, but has additional routes that conflict in some way with our local network's routing. In my example the remote subnet is 10.0.x.0/24, my local subnet is 10.0.y.0/24, and the conflicting route is 10.0.0.0/8. Without the later route, I can't access all hosts on the VPN without manually adding the route after connecting to the VPN:
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000