Skip to content

Instantly share code, notes, and snippets.

@continuityapp
continuityapp / ssh-copy-id
Created April 24, 2011 10:37
ssh-copy-id for OSX
#!/bin/sh
KEY="$HOME/.ssh/id_rsa.pub"
if [ ! -f ~/.ssh/id_rsa.pub ];then
echo "private key not found at $KEY"
echo "* please create it with "ssh-keygen -t rsa" *"
echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *"
exit
fi
@continuityapp
continuityapp / nginx
Created April 23, 2011 14:30
Ubuntu 10.04 LTS Nginx startup script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon