Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en-US"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en-US"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en-US"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en-US"><!--<![endif]-->
<!-- ____ ____ _ _ -->
<!-- | _ \ | _ \ | | | | -->
<!-- | |_) | ___ __ _ _ _ | |_) | ___ _ _ ___| |__ __ _ _ __ __| | -->
<!-- | _ < / _ \/ _` | | | | | _ < / _ \| | | |/ __| '_ \ / _` | '__/ _` | -->
@BeauBouchard
BeauBouchard / gist:5d9a79d778acc443123f
Last active August 29, 2015 14:13
default gitignore
# creds and libs #
######################
public_html/downloads/*
public_html/uploads/*
public_html/config/*
# OS generated files #
######################
*.DS_Store
*.DS_Store?
@BeauBouchard
BeauBouchard / canvasmouseinterface.js
Last active August 29, 2015 14:07
canvas on click handler
function canvasOnClickHandler(event) {
var hex = getCursorPosition(event);
//action
map.tilelist[hex.row][hex.column].whateverfunctionisinTILE();
};
function getCursorPosition(event) {
var x;
var y;
if (event.pageX || event.pageY) {
@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; }
@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
[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 / 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
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' ] }
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
/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