I hereby claim:
- I am grissess on github.
- I am grissess (https://keybase.io/grissess) on keybase.
- I have a public key whose fingerprint is B2EF 0643 0935 C7F1 1041 070C 031F F9C1 3AA4 EC54
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
all_poss = set("about after again below could every first found great house large learn never other place plant point right small sound spell still study their there these thing think three water where which world would write".split(' ')) | |
def poss_matches(poss, dial, dialpos): | |
return set([i for i in poss if i[dialpos] in dial]) | |
def interact(prompt): | |
curr = all_poss | |
for i in xrange(5): | |
while True: | |
try: |
print (lambda f, i, p, s, l: f(f, i, p, s, l))(lambda f, i, p, s, l: s if not i else f(f, i[1:], p, l(s, p('Dial %d: '%(i[0],)), i[0]), l), range(5), raw_input, set("about after again below could every first found great house large learn never other place plant point right small sound spell still study their there these thing think three water where which world would write".split(' ')), lambda s, d, p: set([i for i in s if i[p] in d])) |
def permute(choices): | |
if not choices: | |
yield () | |
else: | |
for item in choices[0]: |
Bundler could not find compatible versions for gem "bundler": | |
In Gemfile: | |
vagrant was resolved to 1.8.2.dev, which depends on | |
bundler (<= 1.10.6, >= 1.5.2) | |
Current Bundler version: | |
bundler (1.11.2) | |
This Gemfile requires a different version of Bundler. | |
Perhaps you need to update Bundler by running `gem install bundler`? |
import os | |
import shlex | |
import signal | |
import sys | |
import traceback | |
import readline | |
PROMPT = '(%(sh)s)%(user)s@%(host)s %(wd)s%(prch)s ' | |
def prompt(): |
pub enum ABI { | |
SysV, | |
HP_UX, | |
NetBSD, | |
Linux, | |
Solaris, | |
AIX, | |
IRIS, | |
FreeBSD, | |
OpenBSD, |
-- Simple package manager script | |
package = { | |
path = ['./', '/usr/share/sol/'], | |
extensions = ['.sol', ''], | |
loaded = {}, | |
loading = {}, | |
load = func(self, file) | |
result = try(io.open, file, io.MODE_READ) | |
if !result[0] then return None end |
import argparse, hashlib, json | |
from random import SystemRandom | |
from shcs.rsa.crypto import Cipher as RSA | |
from shcs.pad import LSBPadding | |
from shcs import modular | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-h', '--hash', dest='hash', default='sha512', help='Hash function to use for commitment') |
#!/bin/bash | |
# I sincerely recommend this is backed by ramfs/tmpfs, otherwise you will | |
# probably hit your disk rather hard--which is bad for SSDs :) | |
# Same goes for any file you redirect stdout to. | |
WORKDIR="${1:-/tmp/work}" | |
mkdir -p "$WORKDIR" || exit 1 | |
if [ ! -r ciphers.txt ]; then |