Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#cron job
#*/5 * * * /path/to/script
RCFILE_ARCHIVE=/path/to/rcfile/gzip
MORGUE_ARCHIVE=/path/to/morgue/gzip
# base is the parent directory of rcfiles/ or morgue/
# files is a newline separated list of rcfiles/neil.rc or morgue/neil.txt files
#!/bin/bash
# ARGUMENTS/VARIABLES
# <venv> (a virtualenv name) # this is required
src=$HOME/dev # old venv base path
dest=$HOME/.venv # new venv base path
if [[ $# != 1 ]]; then
script=$(echo $0 | grep -oE '[[:alnum:]]+\.[[:alnum:]]+$')
echo "Usage: $script <venv>"
#!/bin/bash
# ARGUMENTS
# <venv> (a virtualenv name) # this is required
src=$HOME/dev
dest=$HOME/.venv
# the virtualenv name is required
#!/usr/bin/env python
"""
markov chain string generator thing
"""
from collections import defaultdict
import itertools
import random
import sys
#!/usr/bin/env python
"""
markov chain string generator thing
"""
from collections import defaultdict
import itertools
import random
import sys
< Eronarn> fr: remove short blades
< heteroy> fr: quick halberds
< HangedMan> fr: shapeshifters start with mimic equipment
< Dixbert> fr: comprehensive refactoring
< Chousuke> fr: a pony :P
< ghallberg> fr: hell bros, humans living in hell, try to kill you with broken bottles
< HangedMan> fr: xom occasionally summons holies like uhhhh
< alefury> fr: make ghouls fast :D
< Zannick> fr: new branch xom's abyss
< hangedman_> fr: knowledge bots page accepts @? and @??
HangedMan: 677
[Hanged_Man]: 444
Blade-: 366
elliott: 337
Nomi: 290
Lightli: 231
minqmay: 227
eeviac: 126
Patashu: 117
ktgrey: 103
hangedman: 1538
blasthardcheese: 719
elliott: 665
blade: 557
hanged_man: 454
minqmay: 393
nomi: 381
crate: 279
lightli: 275
wensley: 272
#!/usr/bin/env python
from collections import defaultdict
from itertools import repeat
from pprint import pprint
from random import choice
def grid(height, width):
return [['0' for n in range(width)] for n in range(height)]
grid = grid(15, 15)
#!/usr/bin/env python
from collections import defaultdict
from itertools import repeat
from pprint import pprint
from random import choice
def grid(height, width):
return [['0' for n in range(width)] for n in range(height)]
def place_bombs(grid, n_bombs):