Skip to content

Instantly share code, notes, and snippets.

View gidoBOSSftw5731's full-sized avatar
💭
Why have your head in the clouds when you can buy a humidifier

gido5731 gidoBOSSftw5731

💭
Why have your head in the clouds when you can buy a humidifier
View GitHub Profile
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active April 16, 2024 21:31
"What the heck is a Yubikey and why did I buy one?": A user guide

"What the heck is a Yubikey and why did I buy one?": A user guide

(EDIT: Besides Reddit, I've also put this up on Github Gist)

So while looking for information on security keys before getting one myself, I got very confused reading about all the different modes and advertised features of Yubikeys and other similar dongles. The official documentation tends to be surprisingly convoluted at times, weirdly organized and oddly shy about a few of the limitations of these keys (which I'm making a point of putting front and center). Now that I have one, I decided to write down everything I figured out in order to help myself (and hopefully some other people reading this) make sense of all this.

Since I'm partly writing these notes for myself, there might be some back and forth between "exp

@mdonkers
mdonkers / server.py
Last active April 30, 2024 23:26
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@sebastiengoddard
sebastiengoddard / bcbp_decode.py
Created March 31, 2016 16:38
Boarding pass barcode decoder
#!/usr/bin/python2
# based on bcbp_implementation_guidev4_jun2009.pdf
# and http://www.airlineinfo.com/ostpdf88/98.pdf
import sys
from datetime import date, timedelta
from binascii import hexlify, a2b_base64
from collections import OrderedDict as odict
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",