Skip to content

Instantly share code, notes, and snippets.

View itsjfx's full-sized avatar
🏠
do do do

Thomas itsjfx

🏠
do do do
View GitHub Profile
@itsjfx
itsjfx / pico-ground-pin-api.py
Created April 18, 2025 13:54
pico micropython HTTP server to ground a pin on request
import network
import socket
from picozero import pico_led
import machine
import utime
# GPIO2
switch_pin = machine.Pin(2, machine.Pin.OUT, value=1)
ssid = 'ssid'
password = ''
@itsjfx
itsjfx / uvs
Last active February 2, 2025 04:14
uv shell (uvs) command
#!/usr/bin/env python3
import os
import shlex
import subprocess
import sys
from itertools import chain
from pathlib import Path
def find_venv(path):
@itsjfx
itsjfx / python-fido2-webauthn-client.py
Last active December 24, 2024 13:38
an example of a python fido2 webauthn client wrapping webauthn.io. fork of https://github.com/Yubico/python-fido2/blob/main/examples/credential.py
#!/usr/bin/env python3
# Copyright (c) 2024 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
@itsjfx
itsjfx / azure_login_fido2_fix.user.js
Last active April 26, 2024 14:38
Fixes FIDO2 login on Firefox by patching variables on the Azure login page
// ==UserScript==
// @name Azure Firefox FIDO2 patch
// @namespace https://jfx.ac
// @version 0.1
// @description Fixes FIDO2 login on Firefox by patching variables on the Azure login page
// @author jfx
// @match https://login.microsoftonline.com/*
// @grant none
// ==/UserScript==
@itsjfx
itsjfx / keep-to-enex-jfx.py
Last active August 10, 2024 15:01
A modified version of the popular keep-to-enex script which allows you to choose a backup folder instead of parsing each file or * as an argument
# originally created and posted by user dgc on
# https://discussion.evernote.com/topic/97201-how-to-transfer-all-the-notes-from-google-keep-to-evernote/
# Modified by user charlescanato https://gitlab.com/charlescanato/google-keep-to-evernote-converter
# Modified by gokhan mete erturk to enable bulk operation of html files without any parameters and
# solves the character set problems on Windows
# Modified by Leonard777 to add importing of image data.
# Modified by itsjfx to read a folder and import HTML files
# until now, Google Takeout for Keep does NOT export:
# - correct order of lists notes (non-checked first, checked last)