Skip to content

Instantly share code, notes, and snippets.

@A-xis
A-xis / keybase.md
Last active August 29, 2015 14:07
keybase.md

Keybase proof

I hereby claim:

  • I am A-xis on github.
  • I am axis (https://keybase.io/axis) on keybase.
  • I have a public key whose fingerprint is 726D 92E1 2920 78AE 0B9E 547B 0006 EDB0 7EDD C5E0

To claim this, I am signing this object:

#!/bin/bash
function startFw {
#Some ban
function banFw {
/sbin/iptables -A INPUT -s $1 -j DROP
}
banFw 41.228.12.228 #brute force ssh
banFw 220.247.238.16 #brute force ssh
banFw 218.85.135.29 #brute force ssh
@A-xis
A-xis / mixmaster
Last active November 26, 2015 03:25
Init script for mixmaster
#!/bin/bash
#
# /etc/rc.d/init.d/mixmaster
#
# Start/Stop mixmaster server
#
# chkconfig: 2345 80 20
# description: mixmaster is a game server
# processname: 1
# processname: 2
@A-xis
A-xis / uri.js
Created April 3, 2017 14:17 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"