Skip to content

Instantly share code, notes, and snippets.

View hdznrrd's full-sized avatar
🙄

Gregor Jehle hdznrrd

🙄
  • Wartenberg, Germany
View GitHub Profile
@Snial
Snial / BootJacker.c
Last active May 18, 2022 05:08
BootJacker: The Amazing AVR Bootloader Hack!
#define SPIFbit 7
#define SPR (1<<0)
#define kSpmCsr 0x37
#define kSpmCsrMem (kSpmCsr+0x20)
#define IOAddrInsMask(aPort) (((aPort&0x30)<<5)|(aPort&7))
#define kBootloaderStart 0x7800
#define kMicroBootStart 0x7f80
#define kBootloaderEnd 0x8000
@bronsen
bronsen / feierabend.sh
Last active May 18, 2022 07:36
feierabend!
#!/usr/bin/zsh
echo 'Commencing Feierabend'
git stash
git switch main
git stash pop
git commit -a -m 'Feierabend'
git push --force origin main
/usr/bin/expect -c "spawn fab production deploy; expect 'out: sudo password:'; send 'dieRuthbacktsogut';"
echo 'Feierabend accomplished'
@Samuirai
Samuirai / captcha.md
Created June 14, 2012 20:59
G-WAN Captcha Decode

G-WAN is a new free web server. They seem to be very proud of it, or at least just want to make a lot of money. Well anyway, in almost every sentence they write, they claim that they are 20% cooler than anything else. It feels a bit arrogant. I have to admit, I don't know a lot about web servers, so I can't speak to how good they are.

However, then I saw their Captcha example. I also don't know much about machine learning algorithms, OCR, and stuff like that, but I do know how to read pixels. I also know how to compare values with python :P

demo

They say the following about their Captcha:

@tritonrc
tritonrc / ldap_admin.rb
Created January 17, 2011 19:55
Simple Sinatra based LDAP admin tool
require 'rubygems'
require 'sinatra'
require 'net-ldap'
require 'digest/sha1'
require 'base64'
require 'haml'
LDAP_HOST = 'localhost'
ADMIN_DN = 'cn=admin,dc=company,dc=com'