I hereby claim:
- I am mmattice on github.
- I am mmattice (https://keybase.io/mmattice) on keybase.
- I have a public key whose fingerprint is B148 B5B8 B7E9 10CF 6150 442A 655F E1FE 88E6 0DDD
To claim this, I am signing this object:
import informixdb | |
class TransactionInformixDict: | |
"""A lightweight wrapper for a DB-API 'cursor' object. | |
Relays attribute access to the DB cursor. That is, you can call | |
execute(), fetchall(), etc., and they will be called on the |
import re | |
from BeautifulSoup import BeautifulSoup | |
import requests | |
url = 'http://emojicons.com/e/flipping-tables' | |
r = requests.get(url) | |
soup = BeautifulSoup(r.text) | |
print soup.title.string.encode('ascii', 'ignore') | |
print re.search( '^.*?(?=::)', soup.title.string ).group() |
check process puppet with pidfile /var/run/puppet/agent.pid | |
start program = "/etc/init.d/puppet start" | |
stop program = "/etc/init.d/puppet stop" | |
check file puppetdlock with path /var/lib/puppet/state/puppetdlock | |
if timestamp > 1 hour | |
then exec "/bin/bash -c '/etc/init.d/puppet stop ; rm -f /var/lib/puppet/state/puppetdlock'" | |
check file agent_catalog_run.lock with path /var/lib/puppet/state/agent_catalog_run.lock | |
if timestamp > 1 hour |
#!/bin/bash | |
count=$1 | |
if [[ $count = "" ]]; then count=2 ; fi | |
shuf -n $count /usr/share/dict/american-english | tr "\n" " "; echo |
from twisted.web import client | |
class _HTTP11ClientFactory(client._HTTP11ClientFactory): | |
noisy = False | |
class HTTPConnectionPool(client.HTTPConnectionPool): | |
_factory = _HTTP11ClientFactory |
from twisted.protocols.amp import AMP | |
from twisted.internet import reactor | |
from twisted.internet.protocol import Factory | |
from twisted.internet.endpoints import TCP4ServerEndpoint | |
from twisted.application.service import Application | |
from twisted.application.internet import StreamServerEndpointService | |
class Count(amp.Command): | |
arguments = [('n', amp.Integer())] | |
response = [('ok', amp.Boolean())] |
#!/usr/bin/python | |
import email | |
import sys | |
import json | |
import requests | |
url = 'https://hooks.slack.com/services/{{{PUT YOUR URL MAGIC HERE}}}' | |
payload={"channel": "#general", "username": "ContestBot", "icon_emoji": ":ghost:"} |
I hereby claim:
To claim this, I am signing this object:
# Test on delivery | |
def register(key): | |
def decorator(method): | |
method.response = key | |
return method | |
return decorator | |
@register('$') |
#!/usr/bin/python | |
from binascii import hexlify, unhexlify | |
frombank = unhexlify('723a860e84da00cc090014c10390b39d7d79861384da00c80e00000000000001ef1d534991a069861384da00c90e00000000000057d981ff69f29ba7') | |
working = unhexlify('723c303a860e84da00cc090014c10390b39d7d79861384da00c80e00000000000001ef1d534991a069861384da00c90e00000000000057d981ff69f29ba7') | |
from pyasn1.type import tag, tagmap, univ, namedtype | |
from pyasn1 import debug | |
#debug.setLogger(debug.Debug('all')) |