Skip to content

Instantly share code, notes, and snippets.

@clach04
clach04 / notallyToQuillPad.py
Last active March 30, 2024 15:44 — forked from nWestie/notallyToQuillPad.py
Transforms a notally backup file into a quillPad one. use at your own risk, it worked for my backup, but I others may differ. Does not deal with note color
import sqlite3
import json
import shutil
import os
tags = []
joins = []
# Tested with Notally v5.2 and QuillPad v1.4.9
# will not preserve note color
@clach04
clach04 / psql-srv.py
Created July 21, 2022 17:28 — forked from Khalefa/psql-srv.py
python 3 (should works)
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---
@clach04
clach04 / psql-srv.py
Created July 21, 2022 17:28 — forked from matteobertozzi/psql-srv.py
postgres "server" wire protocol example
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---
@clach04
clach04 / psql-srv.py
Created July 21, 2022 17:27 — forked from eatonphil/psql-srv.py
postgres "server" wire protocol example (ported python3)
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---
@clach04
clach04 / README.md
Created July 21, 2022 17:10 — forked from fantix/README.md
Wire Protocol of PostgreSQL Queries in a Nutshell
@clach04
clach04 / sjcl_simple
Created March 20, 2022 00:15 — forked from g-p-g/sjcl_simple
SJCL encrypt / decrypt in Python
import os
from base64 import b64decode, b64encode
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.hazmat.backends import default_backend
_BACKEND = default_backend()
#!python
## sudo apt-get install python3-evdev
# Tested with `SC-8110-2D-B` 1d & 2d barcode scanner
#
# Inspired by https://github.com/julzhk/usb_barcode_scanner
# which was inspired by https://www.piddlerintheroot.com/barcode-scanner/
# https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=55100
# from 'brechmos' - thank-you!
#
#!/usr/bin/env python
"""Utility methods for Google Spreadsheets based on gspread library.
Used mostly for logging.
http://hakanu.net/2014/09/14/how-i-store-server-logs-in-google-spreadsheets/
Here are the dependecies:
sudo apt-get install python-pip python-dev build-essential
sudo easy_install gspread
"""
@clach04
clach04 / README.md
Last active February 5, 2020 07:40
pebble SDK 32-bit
@clach04
clach04 / README.md
Last active July 23, 2022 21:47 — forked from zeevro/README.md
Pebble SDK installation script

Based on https://gist.github.com/zeevro/ce20d0d74a869d73119e9d1522b7caa7 - a 64-bit downloader for Pebble SDK under Linux (or Windows WSL) - Ubuntu 18.04.2.

Picks up binaries from Rebble (AWS for some reason not from github) along with (updated) pebble tool from github.

This script downloads and installs everything needed to build projects and also run the emulator.

Tested on