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
'use strict'; | |
function mastermind() { | |
// Requires | |
var fs = require('fs'); | |
var readline = require('readline'); | |
/// | |
// Members | |
var prompts = { | |
banner: function() { |
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
; Escape Key = {ESC} | |
; End Key = {END} | |
; Page Down = {PGDN} | |
; Page Up = {PGUP} | |
; For more: Google "Autoit Send" | |
[Hotkeys] | |
startKey={PGDN} | |
stopKey={PGUP} | |
[Duration] |
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 | |
# Returns latest measurement from a series | |
# $1 = Series name | |
__getMeasurement() { | |
curl "http://weatherspot.us/db/query.php?db=weather&q=SELECT+temperature+FROM+${1}+LIMIT+1" 2>/dev/null | |
} | |
# Returns latest timestamp from a series | |
# $1 = Series 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
# Generated by iptables-save v1.4.21 on Wed Jul 8 15:12:54 2015 | |
*nat | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:DOCKER - [0:0] | |
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER | |
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER | |
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE |
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 | |
__randomWithRange() { | |
# http://www.tldp.org/LDP/abs/html/randomvar.html | |
# USAGE: __randomWithRange FLOOR CEILING | |
local number=0 #initialize | |
while [ "$number" -le $1 ] | |
do | |
number=$RANDOM | |
let "number %= $2" # Scales $number down within $RANGE. |
NewerOlder