Skip to content

Instantly share code, notes, and snippets.

View rockwelln's full-sized avatar
🌟
wait?! what?

Norman Denayer rockwelln

🌟
wait?! what?
  • Bordeaux (France)
View GitHub Profile
import serial
import serial.threaded
import logging
import datetime
import re
linky_port = '/dev/ttyUSB0'
linky_baudrate = 1200
traces_file = 'linky_frames.txt'
@rockwelln
rockwelln / chrome_passwords.py
Created October 1, 2019 10:09
export Chrome passwords on MAC OS
import os
import sys
import sqlite3
import hashlib
import argparse
import subprocess
import glob
import collections
import base64
import binascii
from xml.etree import ElementTree as ET
from collections import defaultdict
import sys
STYLES = {
'end-state': '[shape=diamond style=filled fillcolor=yellow]',
'start-state': '[shape=diamond style=filled fillcolor=red]',
'state': '[shape=triangle style=filled fillcolor=lightcyan]',
}
"""Turn oldstyle parent class call into new style inheritance call (using super).
"""
import re
import os
import os.path
import logging
from argparse import ArgumentParser
import re
import os
import asyncio
import aiohttp
from argparse import ArgumentParser
EXPORT_URL = 'https://exp.draw.io/ImageExport4/export'
#!/usr/bin/perl
use IO::Uncompress::Inflate qw(inflate $InflateError);
use File::Path qw(make_path);
use LWP::UserAgent;
use File::Temp qw(tempfile tempdir);
open $indexfh, "<", $ARGV[0];
binmode($indexfh);