Configures jail to forward external ports to a different loopback port within a given jail.
vi /etc/ipfw.rules # Add ipfw.rules from gist
chmod +x /etc/ipfw.rules # Enable script execution
crontab -e # Add crontab.conf from gist
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is chosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
#!/usr/bin/env python3 | |
# /opt/fakegps | |
""" | |
TL;DR: I have an OLD GPS receiver, and need to force it past the last gps 10 bit week rollover | |
TEST OUTPUT SITE: http://freenmea.net/decoder | |
WHY THIS IS A PROBLEM: https://gpsd.gitlab.io/gpsd/hacking.html#y2k1 | |
INFO: https://github.com/rnorris/gpsd/blob/master/www/gpsd-time-service-howto.txt | |
MAN PAGE: http://manpages.ubuntu.com/manpages/trusty/man8/gpsd.8.html |
# Uninstall un-needed packages | |
sudo apt remove \ | |
pi-bluetooth \ # cmon... | |
ed \ # worst text editor ever | |
nano \ # nvm, found a worse one | |
# ... more to come | |
sudo raspi-config | |
# localization: en_us.UTF8 UTF8 | |
# timezone: America / Winnipeg (CENTRAL TIME... yeah ... idk geography) |
*.so | |
*.o | |
Rplots.pdf |
out | |
*_m.* | |
.* | |
!.gitignore | |
CSCI_566_proj_1 | |
results |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
console.log('running'); | |
var child = require('child_process').spawn('python', ['./index.py']); | |
child.stdout.on('data', function(data) { | |
console.log('stdout: "' + data.toString().trim() + '"'); | |
}); | |
child.stderr.on('data', function(data) { | |
console.log('stderr: ' + data); | |
}); | |
child.on('close', function(code) { |