Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
@mrdaemon
mrdaemon / repl.py
Created December 11, 2014 12:37
more shit tokens
>>> for line in teststrings: print line
bob in 28 seconds to mow the lawn
jack and jill in 3 days to go fuck themselves
jack, jill and dr_seuss to eat a dick in 3 days
robert, mike and claire about that shovel in my trunk in 28 years
robert, mike, douche, and oxford_comma to write about lawns to mow in 30 minutes
something that's really fucked
me to huarghh nnngggghhh
me to huarghh nnngggghhh in fobbledeebob
@mrdaemon
mrdaemon / repl
Created December 11, 2014 11:03
Shit regex tokenizer
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import re
>>> a = "bob in 28 seconds to mow the lawn"
>>> b = "jack and jill in 3 days to go fuck themselves"
>>> c = "jack, jill and dr_seuss to eat a dick in 3 days"
>>> d = "robert, mike and claire about that shovel in my trunk in 28 years"
>>> e = "robert, mike, douche, and oxford_comma to write about lawns to mow in 30 minutes"
>>> teststrings = [a,b,c,d,e]
###
# Copyright (c) 2011, Rebecca Bettencourt
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# Dee's tmux configuration file
# start window indexing at one instead of zero
set -g base-index 1
# Bell in any window results in term bell
set -g bell-action any
# Home as default path
set -g default-path ~/
echo off
for %%i in (*) do if "%%~ni" == "%%i" del "%%i"
Starting Nmap 6.40 ( http://nmap.org ) at 2014-08-31 20:44 EDT
NSE: Loaded 110 scripts for scanning.
NSE: Script Pre-scanning.
NSE: Starting runlevel 1 (of 2) scan.
NSE: Starting runlevel 2 (of 2) scan.
Initiating System DNS resolution of 1 host. at 20:44
Completed System DNS resolution of 1 host. at 20:44, 0.00s elapsed
DNS resolution of 1 IPs took 0.00s. Mode: System [OK: 1, ??: 0]
Initiating SYN Stealth Scan at 20:44
#!/usr/bin/env bash
# HI CHANGE ME PLZ
SMOKEPING=/opt/smokeping/smokeping.fcgi
USER=www-data
PIDFILE=/var/run/smokeping-fcgid.pid
SOCKETF=/var/run/smokeping-fcgid.sock
# I'm sorry this is super barebones
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 13/06/14 8:56 PM
Description: Exception in server tick loop
java.lang.NullPointerException
at codechicken.lib.world.WorldExtensionManager.preTick(WorldExtensionManager.java:239)
at codechicken.lib.world.WorldExtensionManager.access$400(WorldExtensionManager.java:25)
at codechicken.lib.world.WorldExtensionManager$WorldExtensionServerTickHandler.tickStart(WorldExtensionManager.java:160)
---- Minecraft Crash Report ----
// Daisy, daisy...
Time: 12/06/14 10:31 PM
Description: Exception in server tick loop
java.lang.NullPointerException
at codechicken.lib.world.WorldExtensionManager.preTick(WorldExtensionManager.java:239)
at codechicken.lib.world.WorldExtensionManager.access$400(WorldExtensionManager.java:25)
at codechicken.lib.world.WorldExtensionManager$WorldExtensionServerTickHandler.tickStart(WorldExtensionManager.java:160)
begin
for ass in (SELECT 'DROP TABLE '||table_name||' CASCADE CONSTRAINTS' turd FROM user_tables)
loop
execute immediate ass.turd;
end loop;
end;