Skip to content

Instantly share code, notes, and snippets.

Date.prototype.changeTime= function(currentUTM, switchtoUTM){
this.setHours(this.getHours()+inc_value);
return this;
}
// My current location: EST - USA East coast is UTM -5 hours
// The Location I want to get the Time of is CET – Central European Time UTM +1 hours
@BeauBouchard
BeauBouchard / menusystem.js
Created October 17, 2013 15:15
demo memo storage
var menuArray = [
["Main Menu","New Game", "Load Game","2:Help", "Exit"],
["World Map Menu","Something"],
["In Battle Menu","Something"]];
var subMenuArray = [
["submenu title 1","submenu option 1","submenu option 2","submenu option 3"],
["submenu title 2","submenu option 1","submenu option 2","submenu option 3"],
["Help Sub Menu","About Game", "Controls"]];
19 Jun 12:08:59 - SEND: PRIVMSG #general http://media0.giphy.com/media/VnDMVJylgXYY0/giphy.gif
19 Jun 12:09:26 - SEND: PRIVMSG #general http://media1.giphy.com/media/c4Niddu90G5KU/giphy.gif
19 Jun 12:14:29 - SEND: PONG wh.iterabb.it
19 Jun 12:16:06 - SEND: PRIVMSG #general http://media3.giphy.com/media/PjB6lT9TSXp4Y/giphy.gif
19 Jun 12:16:55 - SEND: PRIVMSG #general http://media0.giphy.com/media/mG1M7QlI9nDAk/giphy.gif
19 Jun 12:17:12 - SEND: PRIVMSG #general http://media1.giphy.com/media/SKfZPKO6oKQdW/giphy.gif
19 Jun 12:17:24 - SEND: PRIVMSG #general http://media3.giphy.com/media/Jso1nKkXPDskw/giphy.gif
19 Jun 12:17:56 - SEND: PRIVMSG #general http://media2.giphy.com/media/liNxJqq4qnFXG/giphy.gif
19 Jun 12:18:44 - SEND: PRIVMSG #general http://media0.giphy.com/media/MSTGPnN8BUCpa/giphy.gif
19 Jun 12:18:58 - SEND: PRIVMSG #general http://media2.giphy.com/media/6UKGcSESlBVzW/giphy.gif
/home/katelibby/node_modules/irc/lib/irc.js:672
throw err;
^
TypeError: undefined is not a function
at Client.<anonymous> (/home/katelibby/bot/src/bot.js:61:57)
at Client.emit (events.js:118:17)
at Client.<anonymous> (/home/katelibby/node_modules/irc/lib/irc.js:477:22)
at Client.emit (events.js:107:17)
at /home/katelibby/node_modules/irc/lib/irc.js:669:22
21 Jun 21:58:16 - SEND: PRIVMSG #general :searching ...
21 Jun 21:58:17 - SEND: PRIVMSG #general :GrubHub: Food Delivery | Restaurant Takeout | Order Food OnlineChicagoLos AngelesAtlantaSan Francisco RestaurantsPhiladelphia RestaurantsNew York - https://www.grubhub.com/
21 Jun 21:58:17 - SEND: PRIVMSG #general :Food delivery, menu and online ordering guide for Boston, Chicago and San
21 Jun 21:58:17 - SEND: PRIVMSG #general :Francisco. Search by address to find restaurants that deliver there."One of the best things to come to the internet." –Polly, Denver.Order online from Los Angeles delivery and pickup restaurants.Order online from Atlanta delivery and pickup restaurants.Order online from San Francisco delivery and pickup ...Order online from Philadelphia delivery and pickup restaurants.Queens Restaurant - Bronx - New York Pizza delivery - ...
events.js:85
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:41:10)
at Object.onlookup [as onc
Unhandled message: { prefix: 'wh.iterabb.it',
server: 'wh.iterabb.it',
command: '338',
rawCommand: '338',
commandType: 'normal',
args:
[ 'sevenOfnine',
'Beaumato',
'255.255.255.255',
'actually using host' ] }
@BeauBouchard
BeauBouchard / df-linux-v040.02.ini
Last active August 29, 2015 14:04 — forked from kiryl/df-linux-v040.01.ini
Dwarf therapist ini file for DF V0.40.02
[info]
checksum=0xcf269661
version_name=v0.40.02
complete=true
[addresses]
translation_vector=0x09a1f170
language_vector=0x09a1f158
creature_vector=0x0992560c
active_creature_vector=0x09925618
[info]
checksum=0xdd544df6
version_name=v0.40.03
complete=true
[addresses]
translation_vector=0x09a20170
language_vector=0x09a20158
creature_vector=0x0992660c
active_creature_vector=0x09926618
@BeauBouchard
BeauBouchard / iptablesv4.conf
Last active January 14, 2022 08:48
a list of ip v4 ranges to load into iptables to block
### These may work
### iptablesv4.conf
# Suspicious DOD IPs
29.70.208.81
# Miscellaneous badware, comment spam (including Zhou Pizhong and DataShack) and exploiting hosts and servers:
5.34.240.0/21
5.135.0.0/16
@BeauBouchard
BeauBouchard / firewallup.sh
Created September 24, 2014 16:00
a script to load in a list of IP addresses into uptables
#!/bin/bash
# Modify script as per your setup
# Usage: Sample firewall script
# ---------------------------
_input=/root/firewall/badips.db
_pub_if="eth1"
IPT=/sbin/iptables
# Die if file not found
[ ! -f "$_input" ] && { echo "$0: File $_input not found."; exit 1; }