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 drizzle import libdrizzle as _libdrizzle | |
libdrizzle = _libdrizzle.Drizzle() | |
def connect(*args, **kwargs): | |
connection = Connection(*args, **kwargs) | |
connection._connect() | |
return connection | |
class Connection: |
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
import sys | |
import random | |
import re | |
import time | |
from twisted.words.protocols import irc | |
from twisted.internet import reactor, protocol, ssl | |
from twisted.python import log | |
try: |
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
import sys | |
import os.path | |
import socket | |
import subprocess | |
from urlparse import urlparse, ParseResult | |
from optparse import OptionParser | |
BUF_SIZE = 1024 | |
DEFAULT_IMCS_PORT = 3589 | |
VERBOSE = False |
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
import re | |
import string | |
import readline | |
import textwrap | |
from yahoo.search.web import WebSearch | |
APP_ID = "IRCTriviaHelper" | |
def bullet(lines): | |
return ["\n".join(textwrap.wrap(line, 77, initial_indent=" - ", subsequent_indent=" ")) for line in lines] |
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
function defaultdict(default) { | |
this._default = default; | |
}; | |
defaultdict.prototype = { | |
get: function(key) { | |
if (!key in this) { this[key] = this._default(key); } | |
return this[key]; | |
} | |
} | |
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 importExpr = /^(\s*)(import\s+[^=+*"'\r\n;\/]+|from\s+[^=+"'\r\n;\/]+)(;|\/|$)/gm; | |
function replaceImport(raw, p1, p2, p3) { | |
if (!/\/\//.test(p1)) { | |
return p1 + 'jsio(\'' + p2 + '\')' + p3; | |
} | |
return raw; | |
} | |
var requireExpr = /^(.*)require\(['"]([^=+*"'\r\n;]+)['"]\)(;|\/|$)/gm; |
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
# salt-ssh doesn't support sending pillar data, so we have to embed it in the state files... | |
/etc/openvpn/server.key: | |
file.managed: | |
- contents: | | |
{{ pillar['openvpn']['server_key'] | indent(8) }} | |
- user: root | |
- group: root | |
- mode: 600 |
NewerOlder