This file contains hidden or 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 -e | |
router_ip="192.168.1.1" | |
user="admin" | |
password="<check_your_password_in_the_sticker_behind_your_router>" | |
cookie_jar="$(mktemp)" | |
cleanup() { rm -f "$cookie_jar"; } | |
trap cleanup QUIT |
This file contains hidden or 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
cd "$(dirname "$0")" | |
DB_USER="${DB_USER:-root}" | |
DB_PASS="${DB_PASS}" | |
DB_HOST="${DB_HOST:-localhost}" | |
DB_NAME="${DB_NAME}" | |
mysql_run() { | |
mysql -u"$DB_USER" -p"$DB_PASS" -h"$DB_HOST" "$DB_NAME" "$@" | |
} |
This file contains hidden or 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 | |
set -e | |
# http://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/ | |
openssl genrsa -des3 -out ca.key 2048 | |
openssl req -x509 -new -nodes -key ca.key -days 1024 -out ca.pem |
This file contains hidden or 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 | |
set -e | |
# http://www.akadia.com/services/ssh_test_certificate.html | |
# Step 1: Generate a Private Key | |
openssl genrsa -des3 -out server.key 1024 | |
# Step 2: Generate a CSR (Certificate Signing Request) | |
openssl req -new -key server.key -out server.csr |
This file contains hidden or 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 | |
# https://meteorhacks.com/introduction-to-ddp.html | |
# https://meteorhacks.com/discover-meteor-ddp-in-realtime.html | |
if which ddp-analyzer-proxy 2>/dev/null; then | |
echo "ddp-analyzer-proxy found in $(which ddp-analyzer-proxy)" | |
elif [ -f $(npm root)/.bin/ddp-analyzer-proxy ]; then | |
echo "ddp-analyzer-proxy found in $(npm root)/.bin/ddp-analyzer-proxy" | |
export PATH="$(npm root)/.bin/:$PATH" |
This file contains hidden or 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
# Inspiration: | |
# http://zurb.com/forrst/posts/Add_color_to_console_warn_and_console_error_outp-Go0 | |
# https://gist.github.com/spmason/1670196 | |
try { | |
var colors = require('colors'); | |
var util = require('util'); | |
var makeColorConsole = function(fct, color){ | |
return function() { | |
var args = [util.format.apply(util.format, Array.prototype.slice.call(arguments))]; |
This file contains hidden or 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
rootfs_files_after.txt | |
rootfs_files_before.txt | |
libiconv-*.* | |
mariadb_client-*-src* | |
qtbase-opensource-src-* | |
openssl-* |