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
| # Automaticlly install pptpd on Amazon EC2 Amazon Linux | |
| # | |
| # Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/ | |
| # pptpd source rpm packing by it's authors | |
| # | |
| # WARNING: | |
| # first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my | |
| # /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones. | |
| # | |
| # You need to adjust your "Security Groups" which you are using too. |
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
| # Automaticlly install pptpd on Amazon EC2 Amazon Linux | |
| # | |
| # Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/ | |
| # pptpd source rpm packing by it's authors | |
| # | |
| # WARNING: | |
| # first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my | |
| # /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones. | |
| # | |
| # You need to adjust your "Security Groups" which you are using too. |
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
| # Automaticlly install pptpd on Amazon EC2 Amazon Linux | |
| # | |
| # Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/ | |
| # pptpd source rpm packing by it's authors | |
| # | |
| # WARNING: | |
| # first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my | |
| # /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones. | |
| # | |
| # You need to adjust your "Security Groups" which you are using too. |
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
| # Automaticlly install pptpd on Amazon EC2 Amazon Linux | |
| # | |
| # Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/ | |
| # pptpd source rpm packing by it's authors | |
| # | |
| # WARNING: | |
| # first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my | |
| # /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones. | |
| # | |
| # You need to adjust your "Security Groups" which you are using too. |
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
| ipset -N tor iphash | |
| wget -q https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$MY_IP -O - | sed '/^#/d' |while read IP | |
| do | |
| ipset -q -A tor $IP | |
| done | |
| iptables -A INPUT -m set --match-set tor src -j DROP |
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
| #!/usr/bin/env osascript | |
| on run argv | |
| tell application "Viscosity" | |
| Connect argv | |
| end | |
| end |
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 | |
| # Create an encrypted dmg for Dropbox | |
| # Command notes: we echo the password to hdiutil and use the -stdinpass to recieve it via stdin | |
| echo -n "password" | hdiutil create -encryption AES-256 -size 5m -fs HFS+J -stdinpass -volname MountedVolumeName DiskImageName.dmg | |
| # attach and detach the dmg | |
| hdiutil attach /path/to/dmg/DiskImageName.dmg |
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
| #!/usr/bin/env python | |
| import plistlib | |
| from shutil import copy | |
| import subprocess | |
| import os | |
| from tempfile import gettempdir | |
| import sys | |
| import atexit | |
| BOOKMARKS_PLIST = '~/Library/Safari/Bookmarks.plist' |
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
| #!/usr/bin/env python | |
| import plistlib | |
| from shutil import copy | |
| import subprocess | |
| import os | |
| from tempfile import gettempdir | |
| import sys | |
| import atexit | |
| BOOKMARKS_PLIST = '~/Library/Safari/Bookmarks.plist' |
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
| -- Author: Michael Bianco <http://mabblog.com/> | |
| -- Some help from: http://discussions.info.apple.com/message.jspa?messageID=10363317 | |
| on create_vpn_service(vpn_name) | |
| tell application "System Preferences" | |
| reveal pane "Network" | |
| activate | |
| tell application "System Events" | |
| tell process "System Preferences" |