from fractions import gcd
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
def egcd(a, b):
if a == 0:
return (b, 0, 1)
View yagni.go
package main
import (
MD5 (NessusAgent-6.10.2-es7.x86_64.rpm) = 0a42d5838aac2e468663463e1133a6e3
9cd362cd591eda8626ef96bdf9ece2220ee8a5c4 NessusAgent-6.10.2-es7.x86_64.rpm
View gist:23527adc5aae260d4207280946616d05
for i in `ls -d */`
(cd $i && pwd && git pull)
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
# only accepts ESC backslash for ST.
function print_osc() {
if [[ $TERM == screen* ]] ; then
printf "\033Ptmux;\033\033]"
printf "\033]"
View blink.sketch
View gist:68aecad6e7a84806ce6ab6b192be0936
Anti Hijack Feature
1. Turn on ignition until the dash lights come on but don't start engine!
2. Lock the door using the lever on the door handle and then unlock 3 Times
3. Turn off ignition
4. Repeat 2 but with ignition OFF
View Makefile
# Hey Emacs, this is a -*- makefile -*-
# AVR-GCC Makefile template, derived from the WinAVR template (which
# is public domain), believed to be neutral to any flavor of "make"
# (GNU make, BSD make, SysV make)
MCU = attiny85
FORMAT = ihex
TARGET = avrfid
View gist:ea53012ba7264d18271e013316a26fd2
openssl genrsa -out demo.rsa 1024
openssl rsa -in demo.rsa -pubout >
View nfc-mfclassic.patch
diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c
index 1242886..8d9c6f0 100644
--- a/utils/nfc-mfclassic.c
+++ b/utils/nfc-mfclassic.c
@@ -431,8 +431,8 @@ write_card(int write_block_zero)
} else {
// The first block 0x00 is read only, skip this
- if (uiBlock == 0 && ! write_block_zero && ! magic2)
- continue;