This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textmate 2 compile | |
#-----------------------------------------------# | |
# autoconf | |
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz | |
tar xzf autoconf-2.68.tar.gz | |
cd autoconf-2.68 | |
./configure | |
make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# terminal-notifier # | |
#----------------------------------------------------------------------------------------# | |
# Installing Terminal Notifier | |
sudo gem install terminal-notifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|------------------------------------------------------------------------------ | |
| Telephone and sipgate for phone on the mac with voice mail | |
|------------------------------------------------------------------------------ | |
*/ | |
Sipgate UK | |
www.sipgate.co.uk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https check if site supports ssl | |
openssl s_client -connect www.somesite:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -f -q -L 5900:localhost:5900 192.168.1.9 sleep 10 && open vnc://127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tar cvpzf -/ | ssh user@host ""cat > /backup.tar.gz"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# socks over ssh tunnel | |
#----------------------------------------------------------------------------------------# | |
# ssh server set up # | |
#----------------------------------------------------------------------------------------# | |
# edit the sshd_config with nano as root | |
# sudo su |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ====================== | |
# = ssh scp copy files = | |
# ====================== | |
# scp file | |
scp ~/Desktop/filename.mysql [email protected]:/home/username/filename.mysql | |
# recursive scp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#----------------------------------------------------------------------------------------# | |
# ssh remote forward # | |
#----------------------------------------------------------------------------------------# | |
# bind local port 80 to remote port 8080 | |
# so you can go to the server on port 8080 down the tunnel to port 80 and the webserver | |
ssh -R 8080:localhost:80 -p 30000 username@sshserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# self closing ssh tunnel for afp file sharing | |
SSHSERVER=192.168.1.2 | |
ssh -f -q -L 1548:localhost:548 $SSHSERVER sleep 60 && open afp://localhost:1548 |