This file contains 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
# A list of available STUN server. | |
stun.l.google.com:19302 | |
stun1.l.google.com:19302 | |
stun2.l.google.com:19302 | |
stun3.l.google.com:19302 | |
stun4.l.google.com:19302 | |
stun.ekiga.net | |
stun.ideasip.com | |
stun.iptel.org |
This file contains 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 bash | |
sudo apt-get install gcc dpkg-dev cdbs automake autoconf libtool make libssl-dev libsasl2-dev git python-lxml pkg-config | |
git clone git://github.com/mongodb/mongo-c-driver.git | |
cd mongo-c-driver | |
./build/mci.sh --notest --enable-ssl | |
cd .. | |
sudo dpkg --install libmongoc-*.deb libbson-*.deb |
This file contains 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
var moment = require('moment'), | |
crypto = require('crypto'); | |
function getICEServerJSON(username) { | |
var ttl = 86400; | |
var expiry = moment().add(ttl, 'seconds').unix(); | |
var usernameToken = expiry + ":" + username; | |
var secret = "mysupersecret"; | |
var nonce = crypto.createHmac("sha1", secret).update(usernameToken).digest("base64"); |
This file contains 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/bash | |
IP_ADDRESS=`ifconfig eth1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` | |
sed -i "s/bind 127.0.0.1/bind ${IP_ADDRESS} 127.0.0.1/g" /etc/redis/redis.conf |
This file contains 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/bash | |
### BEGIN INIT INFO | |
# Provides: YOUR_NAME_HERE | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/stop the forever nodejs application | |
### END INIT INFO |
This file contains 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
sudo apt-get -y install openjdk-8-jre-headless mediainfo libchromaprint-tools | |
#Bug in ca-certificates-java | |
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure | |
sudo mkdir -p /usr/share/filebot/bin | |
sudo mkdir -p /usr/share/filebot/data | |
sudo wget http://sourceforge.net/projects/filebot/files/filebot/HEAD/FileBot.jar/download -O /usr/share/filebot/FileBot.jar | |
sudo bash -c "cat <<EOT > /usr/share/filebot/bin/filebot.sh | |
#!/bin/sh | |
java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dapplication.analytics=true -Duser.home=/usr/share/filebot/data -Dapplication.dir=/usr/share/filebot/data -Djava.io.tmpdir=/usr/share/filebot/data/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dnet.sourceforge.filebot.AcoustID.fpcalc=/usr/bin/fpcalc -jar -Xmx400M /usr/share/filebot/FileBot.jar \"\\\$@\" | |
EOT" |
This file contains 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/bash | |
# | |
# AUTHOR: Andy Savage <[email protected]> | |
# GITHUB: https://gist.github.com/hongkongkiwi/cfef6910c5c644eaebc9 | |
# PURPOSE: After building one or more packages in OpenWRT this script signs them with a key file | |
# this can then be easily used in opkg to verify signatures. | |
# | |
KEY_DIR="$HOME/signify-keys" |
This file contains 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/bash | |
# INSTRUCTIONS | |
# After generating the OpenVPN server certificates, download and unzip then run this script in the same directory. | |
# Don't forget to chmod +x fastest-server.sh after downloading | |
# | |
# To test all servers with UK in the name | |
# sudo ./fastest-server.sh UK | |
# To test all servers with USA in the name | |
# sudo ./fastest-server.sh USA |
This file contains 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
# Do not pull default route | |
route-nopull | |
This file contains 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/bash | |
USERNAME=$1 | |
if [[ "$USERNAME" == "" ]]; then | |
echo "ERROR: No username specified!" | |
echo "USAGE: $0 <username>" | |
exit 1 | |
fi |
OlderNewer