This file contains 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
from datetime import datetime | |
import os | |
import pickle | |
import sys | |
import markovify | |
import tweepy | |
CONFIG_KEYS = { |
This file contains 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
# wodim, 04/01/2016 -- public domain | |
import mimetypes | |
import os | |
import sys | |
import zlib | |
import magic | |
WORD_SIZE = 4 |
This file contains 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; | |
use warnings; | |
use LWP::UserAgent; | |
use HTTP::Request::Common; | |
use HTTP::Cookies; | |
use warnings; | |
use POSIX; | |
use HTML::Tree; | |
print "Not enough arguments (usage: $0 account password)\n" and exit unless ($#ARGV > 0); |
This file contains 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
LISTEN_PORT = 8085 | |
SERVER_PORT = 8085 | |
SERVER_ADDR = "37.187.171.215" | |
BIND_ADDR = ("10.14.88.15", 0) | |
from twisted.internet import protocol, reactor | |
import json | |
class RulesLoader(): |
This file contains 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 Irssi; | |
use vars qw($VERSION %IRSSI); | |
use strict; | |
use warnings; | |
use Capture::Tiny ':all'; | |
$VERSION = '1.2'; # :D | |
%IRSSI = ( | |
authors => 'Adolf Hitler', | |
contact => '', |
This file contains 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
# This is a Python script that runs as a daemon and will monitor and | |
# eventually kill queries that are taking too long. | |
import os | |
import time | |
import pymysql as mysql | |
timeout_min = 2 |
This file contains 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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
auto eth1 | |
iface eth1 inet static | |
address 192.168.4.103 |
This file contains 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
var seconds_to_hhmmss = function(seconds) { | |
if (seconds < 0 || isNaN(seconds)) { | |
return "--:--"; | |
} | |
var hh = (seconds / 3600); | |
hh = Math.floor(hh); | |
hh = hh < 10 ? "0" + hh : hh; | |
var mm = (seconds / 60) % 60; | |
mm = Math.floor(mm); |
This file contains 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
# -*- coding: utf-8 -*- | |
import sqlite3 | |
import MySQLdb | |
import os | |
import sys | |
import mimetypes | |
admin_nick = "wodim" | |
admin_email = "[email protected]" |
This file contains 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
# -*- coding: utf-8 -*- | |
import re | |
import requests | |
import sys | |
import md5 | |
import magic | |
import os | |
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler |