Skip to content

Instantly share code, notes, and snippets.

View rot256's full-sized avatar

Mathias Hall-Andersen rot256

View GitHub Profile
# setup & collect
from random import randrange
S = [
0xC, 0x5, 0x6, 0xB,
0x9, 0x0, 0xA, 0xD,
0x3, 0xE, 0xF, 0x8,
0x4, 0x7, 0x1, 0x2
]
@rot256
rot256 / wg_demo.go
Last active December 18, 2017 10:54
Quick, very dirty, wg ping demo
/* Copyright 2017 rot256
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
#!/usr/bin/env python2
import os
import sys
import qrcode
'''
Converts a file to a pdf filled with QR codes.
Depends on:
- qrcode

Keybase proof

I hereby claim:

  • I am rot256 on github.
  • I am rot256 (https://keybase.io/rot256) on keybase.
  • I have a public key ASDD002OULPZW4GpFo4akRDspdu391_Q3W7IQeVzW1FoHAo

To claim this, I am signing this object: