git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/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 |
| #!/usr/bin/env python | |
| import sys, paramiko | |
| if len(sys.argv) < 5: | |
| print "args missing" | |
| sys.exit(1) | |
| hostname = sys.argv[1] | |
| password = sys.argv[2] |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
| Key-Type: 1 | |
| Key-Length: 2048 | |
| Subkey-Type: 1 | |
| Subkey-Length: 2048 | |
| Name-Real: Root Superuser | |
| Name-Email: [email protected] | |
| Expire-Date: 0 |
| #!/usr/bin/python | |
| # As written, this requires the following: | |
| # - OS X 10.6+ (may not work in 10.10, haven't tested) | |
| # - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
| # - pyObjC (as such, recommended to be used with native OS X python install) | |
| # Only tested and confirmed to work against 10.9.5 | |
| # Run with root |
| input { | |
| file { | |
| path => "/var/log/fail2ban.log" | |
| type => "fail2ban" | |
| } | |
| } | |
| filter { | |
| if [type] == "fail2ban" { | |
| grok { |
| #!/bin/bash | |
| # See http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line | |
| echo "Checking Xcode CLI tools" | |
| # Only run if the tools are not installed yet | |
| # To check that try to print the SDK path | |
| xcode-select -p &> /dev/null | |
| if [ $? -ne 0 ]; then | |
| echo "Xcode CLI tools not found. Installing them..." |
#Using nfdump
nfdump is a light-weight and simple netflow collector.
#Receive netflow
nfcapd -w -D -l /flows -p 2055
#Show basic stats
| qemu-img convert -O vdi gnome.qcow2 gnome.vdi | |
| #if its a raw image then: | |
| VBoxManage convertdd opnstk.raw VBox.vdi --format VDI |