Skip to content

Instantly share code, notes, and snippets.

Tiernan OToole tiernano

Block or report user

Report or block tiernano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dig.txt
; <<>> DiG 9.10.6 <<>> PTR
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42465
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
; EDNS: version: 0, flags:; udp: 1452
COOKIE=`curl -k --data "WEBVAR_USERNAME=$USER&WEBVAR_PASSWORD=$PASS" https://$HOST/rpc/WEBSES/create.asp 2> /dev/null | grep SESSION_COOKIE | cut -d\' -f 4`
curl -k --cookie Cookie=SessionCookie=$COOKIE https://$HOST/Java/jviewer.jnlp -o $HOST.jviewer.jnlp
javaws $HOST.jviewer.jnlp
View netdata ansible debian
- hosts: netdata
tmpdir: /tmp/netdata
ndbin: /usr/local/sbin/netdata
ndinstaller: ./ --dont-wait
remote_user: root
- name: install prereqs
View 1to1lat
iptables -t nat -A POSTROUTING -o eth0 -s <internalIP> -j SNAT --to-source <externalip>
iptables -t nat -A PREROUTING -i eth0 -d <externalip> -j DNAT --to-destination <internalip?
iptables -A FORWARD -s <externalip> -j ACCEPT
iptables -A FORWARD -d <internalip> -j ACCEPT
# Inserting routes in the adsl1 table
ip route add dev eth0 scope link table adsl1
ip route add default via dev eth0 table adsl1
# Inserting routes in the adsl2 table
ip route add dev eth0 scope link table adsl2
ip route add default via dev eth0 table adsl2
# ip rule is the source routing magic. This will redirect
# packets coming from source "X" to table "adsl1", "adsl2" or "default".

Keybase proof

I hereby claim:

  • I am tiernano on github.
  • I am tiernano ( on keybase.
  • I have a public key whose fingerprint is 21A3 589B D237 9DE0 4423 5381 2583 50A8 CE93 9AF5

To claim this, I am signing this object:

View IO test
tiernano@godboxv2-1 ~/Downloads $ dd if=/dev/zero of=slack bs=1024000 count=10240
10240+0 records in
10240+0 records out
10485760000 bytes (10 GB) copied, 17.0886 s, 614 MB/s
tiernano@godboxv2-1 ~/Downloads $ dd if=slack of=/dev/null bs=1024000
10240+0 records in
10240+0 records out
10485760000 bytes (10 GB) copied, 1.97896 s, 5.3 GB/s
tiernano / export.rb
Created May 7, 2015
export from Route53 to bind files
View export.rb
cli53 = '/usr/bin/cli53'
zones_on_aws = `#{cli53} list`{|e| e =~ /Name/ }.map{|e| e.split(":").last.strip.sub(/\.$/, '') }
zones_on_aws.each do | zone |
puts "#{zone}..."
system("#{cli53} export #{zone} > #{zone}.bind")
tiernano / gist:86ab2e08ba4e588a343a
Created Apr 1, 2015
hubic config for duplicity
View gist:86ab2e08ba4e588a343a
email = <hubicemailaddress>
password = <hubicpassword>
client_id = <hubicclientid>
client_secret = <hubicclientsecret>
redirect_uri = http://localhost/
tiernano / gist:9c061ae8d1312190f152
Last active Mar 29, 2018
Hubic, Swift and CURL
View gist:9c061ae8d1312190f152
Get Endpoint:
curl -H "Authorization: Bearer <AUTHCODE>"
Get List of files:
You can’t perform that action at this time.