Skip to content

Instantly share code, notes, and snippets.

@Zolmeister
Zolmeister / harder_serial.py
Created May 7, 2013 05:32
picoCTF - Harder Serial
#!/usr/bin/env python
# Looks like the serial number verification for space ships is similar to that
# of your robot. Try to find a serial that verifies for this space ship
import sys
def check_serial(serial):
if (not set(serial).issubset(set(map(str,range(10))))):
print ("only numbers allowed")
return False
@Zolmeister
Zolmeister / Evergreen.py
Created May 7, 2013 05:34
picoCTF - Evergreen
from itertools import product
from copy import copy
board = [[None for x in xrange(13)] for y in xrange(13)]
for i,x in enumerate(board):
for j,y in enumerate(board[0]):
if i>=6 or j>=13:
break
#board[i][j]=1
first = "01211212021202212011102122002201"
@Zolmeister
Zolmeister / zolmeister.zsh-theme
Created March 19, 2013 06:25
Zolmeister zsh theme
# vim:ft=zsh ts=2 sw=2 sts=2
# Zolmeister zsh theme
### Segment drawing
# A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE'
SEGMENT_SEPARATOR=''
# Begin a segment
@Zolmeister
Zolmeister / calc.coffee
Last active August 29, 2015 14:22
A/B test calculations
################################################################################
# A/B test calculations #
# #
# Based on Stats Engine #
# //pages.optimizely.com/rs/optimizely/images/stats_engine_technical_paper.pdf #
################################################################################
##################
# Helper Methods #
##################
@Zolmeister
Zolmeister / app.yml
Created March 19, 2015 22:32
Ansible Skeleton
---
# file: roles/app/tasks/main.yml
- name: ensure logging directory exists
file: path=/var/log/acme state=directory
tags:
- install
- name: ensure config directory exists
file: path=/etc/acme/app state=directory

Keybase proof

I hereby claim:

  • I am Zolmeister on github.
  • I am zolmeister (https://keybase.io/zolmeister) on keybase.
  • I have a public key whose fingerprint is 29B1 BB4C 362A 2C14 C19E 4C33 43AA D778 81AE 0EB0

To claim this, I am signing this object:

@Zolmeister
Zolmeister / config
Last active August 29, 2015 13:55
i3 config file
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!