Skip to content

Instantly share code, notes, and snippets.

View audio-duration.sh
# You need two csv files with the links to the vendor wav files
# vendor1.csv should have urls in the 5th column
# vendor2.csv should have urls in the 13th column
rm vendor1.audios.txt
rm vendor2.audios.txt
mkdir -p audios
awk -F "\"*,\"*" '{print $5}' vendor1.csv | shuf -n20 >> vendor1.audios.txt
@nukeador
nukeador / fxaddon-report.md
Last active May 4, 2018
Fetch locales from a given list of Firefox addon urls
@nukeador
nukeador / vpn-off.sh
Last active Jul 6, 2017
Disconnects from VPN on Linux, killing apps first and reseting the firewall
View vpn-off.sh
#!/bin/bash
# Your VPN name on Network Manager, to list all connections you can use: nmcli con
VPN_NAME="your.vpn.name"
# List of apps you want to kill before disconnecting from the VPN, if you don't kill them, they will leak traffic
KILL_APPS="firefox thunderbird transmission-gtk"
# Killing apps
killall $KILL_APPS
@nukeador
nukeador / vpn-firewall.sh
Last active May 15, 2018
Connect to VPN and force all traffic to travel using it. Will monitor and reconnect if VPN drops.
View vpn-firewall.sh
#!/bin/bash
# Your VPN ip address, you can use: host yourvpnaddress.com
VPN_IP="X.X.X.X"
# Your VPN name on Network Manager, to list all connections you can use: nmcli con
VPN_NAME="your.vpn.name"
# Your network device, usually wlan0 for wifi and eth0 for cable, check with: ifconfig
NW_DEVICE="wlan0"
# Your local network range, change if different
LOCAL_NW="192.168.0.0/16"
View keybase.md

Keybase proof

I hereby claim:

  • I am nukeador on github.
  • I am nukeador (https://keybase.io/nukeador) on keybase.
  • I have a public key whose fingerprint is E5FF 384E C4AA 2E58 E6DC 9CD2 17E0 ABDB C6F4 23E6

To claim this, I am signing this object:

@nukeador
nukeador / phpbb2discourse.md
Last active Oct 19, 2020
phpBB to Discourse migration
View phpbb2discourse.md
@nukeador
nukeador / DNS tunneling with iodine.md
Last active Jun 28, 2020
How to install and use iodine for DNS tunneling.
View DNS tunneling with iodine.md

##Domain

We need some records on our domain (mydomain.com) DNS for connections. Add these records:

t1              IN      NS      t1ns.mydomain.com. ; note final the dot!
t1ns            IN      A       OUR_SERVER_IP

##Server

@nukeador
nukeador / Teambox v3 installation on Ubuntu Server 10.04
Last active Dec 16, 2015
Teambox v3 installation on Ubuntu Server 10.04
View Teambox v3 installation on Ubuntu Server 10.04
$ sudo apt-get install \
build-essential ruby ruby-dev irb libmysqlclient15-dev sqlite3 libsqlite3-dev \
libcurl4-openssl-dev libopenssl-ruby libpcre3-dev libxml2-dev libxslt-dev \
libreadline5-dev apache2 apache2-prefork-dev libapr1-dev imagemagick libpq-dev \
libmysql-ruby libmysqlclient-dev
$ sudo aptitude install ruby
$ sudo apt-add-repository ppa:maco.m/ruby
You can’t perform that action at this time.