Skip to content

Instantly share code, notes, and snippets.

Ledger Nano X : Bluetooth Low Energy Communication

1.0

  • Public release

About

@juzam
juzam / huff.sh
Last active August 27, 2018 00:23
huffduffer automator
#!/bin/bash
URL=$1
WORKDIR=/tmp
# puff.py helper location
PUFF=/usr/local/bin/puff.py
ID=`youtube-dl --get-id $URL`
@willurd
willurd / web-servers.md
Last active May 4, 2024 07:22
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@narfdotpl
narfdotpl / mysqldb.markdown
Created December 4, 2010 16:01
MySQLdb, Python 2.5 and OS X 10.6

MySQLdb, Python 2.5 and OS X 10.6

I wasted too much time trying to make MySQLdb work with Python 2.5 (mysteriously it worked fine with 2.7). I thought I'll share my experience.

I installed MySQLdb normally with pip install MySQL-python (yeah, ingenious name) and there were no problems. But every time I imported it, I got following error: