Skip to content

Instantly share code, notes, and snippets.

<form method="post"><p>Check to <label><input type="checkbox" name="remember"/> remember mois</label> <input type="submit" value="Submit"/>.</p></form>
// In a .h:
typedef struct {
unsigned short number;
unsigned short start_time;
unsigned short end_time;
char[32] name;
}period;
// Outside any function:
period *periods;
ResHandle config_file = resource_get_handle(RESOURCE_ID_CLASS_LIST);
size_t config_size = resource_size(config_file);
period_count = config_size / sizeof(period); // 38 = size of each period record
periods = malloc(period_size * period_count);
resource_load(config_file, periods, config_size);
$ ./p.py --lightblue --pair get_time
Process Process-2:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/Users/11rcombs/libs/libpebble/pebble/LightBluePebble.py", line 80, in run
from lightblue import pair, socket as lb_socket, finddevices, selectdevice
File "/usr/local/lib/python2.7/site-packages/lightblue/__init__.py", line 160, in <module>
Starting program: /problems/ROP_2_20f65dd0bcbe267d/rop2
Temporary breakpoint 1, 0x0804850d in main ()
(gdb) x/10a $esp
0xffffd708: 0x0 0xf7e444b3 0x1 0xffffd7a4
0xffffd718: 0xffffd7ac 0xf7fd2000 0x0 0xffffd71c
0xffffd728: 0xffffd7ac 0x0
import re
import string
regex_string = '.*(dark ?star|black ?hole|location|darkstar|php ?[1-4]|solution|core ?dump|spam ?carver|bitwise|get ?key|robomunication|format ?[1-2]|rop ?[1-4]|ever ?green|more ?evil|mildly ?evil|overflow ?[1-5]|clue|eval ?[1-5]).*'
good_guys = {}
def good_guy(willie, trigger):
global good_guys
if trigger.admin:
testing
[00:04:02] *** Quits: nisstyre_ (nisstyre@hide-FAF5BC70.netflash.net) (Connection reset by peer)
[02:03:03] *** Joins: hexium (hexium@AAD3D6B5.7D66EE88.2B23846C.IP)
[02:03:04] *** ChanServ sets mode: +o hexium
[02:10:40] *** Joins: Antior (Antior@hide-73F7A4B0.sshunet.nl)
[03:24:43] *** Joins: Stabby (~Knife__@hide-18BD7D22.cpe.net.cable.rogers.com)
[03:26:39] *** Quits: Knife (Knife__@hide-18BD7D22.cpe.net.cable.rogers.com) (Ping timeout)
[03:54:16] *** Quits: Antior (Antior@hide-73F7A4B0.sshunet.nl) (Ping timeout)
[04:22:37] *** Joins: Velociraptors (~Velocirap@hide-7FE46AB2.lns20.syd6.internode.on.net)
[04:51:45] *** Quits: Velociraptors (~Velocirap@hide-7FE46AB2.lns20.syd6.internode.on.net) (Quit: and *boom*)
[04:55:34] *** Joins: Velociraptors (Velocirapt@hide-7FE46AB2.lns20.syd6.internode.on.net)
#!/usr/bin/env python2.7
import argparse
from ConfigParser import ConfigParser
import os.path
import urllib2
import json
import sys
import base64
def main():