Skip to content

Instantly share code, notes, and snippets.

Verifying that +aidanskinner is my blockchain ID. https://onename.com/aidanskinner
from celery.decorators import periodic_task
from celery.schedules import crontab
@periodic_task(
run_every=crontab(minute='*/10'),
)
def hello_world():
print "hello"
@aidan
aidan / cleanup.sh
Created March 26, 2012 11:19
Malware cleanup
#!/bin/bash
for i in `find $1 -name "*.php"`; do sed 's/^.*aWYoZn.*\?>//' < $i > $i.clean ; mv $i.clean $i; done;
@aidan
aidan / test-mongoengine.py
Created December 7, 2011 11:40
mongoengine test script
#!/usr/bin/python
from mongoengine import *
class Noddy(Document):
fields = DictField()
def main():
connect("test", port=27019)
Noddy.drop_collection()