Skip to content

Instantly share code, notes, and snippets.

View joeblackwaslike's full-sized avatar
馃挱
Working hard

Joe Black joeblackwaslike

馃挱
Working hard
View GitHub Profile
@joeblackwaslike
joeblackwaslike / How-to-Python-in-Cursor.md
Last active June 13, 2026 21:01
How to use python with the Cursor IDE

How to use python with the Cursor AI IDE

Cursor.app has a critical vulnerability that should be taken seriously!

Please see my post below on this as sooon as possible! https://gist.github.com/joeblackwaslike/752b26ce92e3699084e1ecfc790f74b2?permalink_comment_id=5716065#gistcomment-5716065

Steps to patch latest cursor

These instructions should work with the latest versions of cursor which requires a much different strategy than the older versions where you could simply point cursor to the MS extension marketplace and call it a day.

Version details

I am attesting that this GitHub handle joeblackwaslike is linked to the Ethereum Address 0xb142d4004Af1A9E8A5CE663d6dc34d53956dcFC1
0xdfd0016ea99cc7515d0c19c9db2182fa5f09bf25f5902cde7fff1942f0ea3810255d2244b9e07cef4e9cbd5862cdaa020dacf21447d255595740ccd581091afa1b

Usage is simple

import json

from joserf.jwk import KeySet

from idp import IdentityProvider

default_registry = JWSRegistry(algorithms=["RS256", "ES256"])
@joeblackwaslike
joeblackwaslike / pub_jwks_uri.json
Last active June 12, 2023 18:13
public jwkset
{
"keys": [
{
"kty": "RSA",
"kid": "2igMDCHA7k3PhPmP9KYP3uXSdc4IRlCzZiSo_Yr3xW8",
"n": "vy7XwKzb4uPQ1xpVSzF_zBsZSwYywzT1AQLmwbyhzgBC90w1wtunTaLPc1P0NBVxBgGKFeX9vb2SHP2DfDQE7jE5F2NduYNj4Ryf5PA-Y_pNpoCbSIDcma2zCV9WAWk817asI5lo9ncn3QqKjwrXbkrMIZ5I8E7NZ0VAE6bMgpeEki2dHr0M4n-OFPMJXZaIJGOvQyfbTZvmBumLnccpZ5cPqYzdYg3ncR0iNsaqNeu-Qo47ZdvpBkpj4tZqH7enhradZyaOHLsbrYej0fpLHZzLAOOkhmAc9ugKrpvTGXh-ehlOAT-In8flNuezh11UWzrwLb1uAT-g50hV1XpygQ",
"e": "AQAB"
}
]
}
#!/usr/bin/env bash
# Use this script to test if a given TCP host/port are available
WAITFORIT_cmdname=${0##*/}
echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
usage()
{
cat << USAGE >&2
I am attesting that this GitHub handle joeblackwaslike is linked to the Ethereum Address 0xb142d4004Af1A9E8A5CE663d6dc34d53956dcFC1
0xdfd0016ea99cc7515d0c19c9db2182fa5f09bf25f5902cde7fff1942f0ea3810255d2244b9e07cef4e9cbd5862cdaa020dacf21447d255595740ccd581091afa1b
I am attesting that this GitHub handle joeblackwaslike is linked to the Ethereum Address 0x89051F8fed6A0Ff650DCc55D74e8D58C61935D3e
0xa6d3efa3a7823b595ed9322dca09610306e9ec72e215f841723e7a5ed2196e582804820a16e4561bd4e006fe7c2728f31a49d192b84d309241582f292e70e0791c
{"version":1,"resource":"file:///Users/joeblack/projects/github/fortmatic/fortmatic/tests/unit/core/handlers/auth_passwordless_login_test.py","entries":[{"id":"rBCB.py","timestamp":1655751002580}]}
@joeblackwaslike
joeblackwaslike / 1-README.md
Created April 8, 2022 17:41
Quart Advanced Dependency Injection POC

Quart Advanced Dependency Injection POC

Instructions:

$ python -m venv venv
$ source venv/bin/activate
$ python -m pip install anyio di pydantic quart
$ python poc.py
@joeblackwaslike
joeblackwaslike / 1-README.md
Last active April 7, 2022 14:52
MacOS LaunchDaemon plist for TCP service thats launched on demand when socket is connected to

MacOS LaunchDaemon plist for TCP service thats launched on demand when socket is connected to

This service isn't started at launch, which is by design. The command being launched establishes a tunnel to a virtual machine running on the host using UTM.app. I created a LoginItem that launches the virtual machine at startup using UTM's registered URI handlers. By starting these tunnels lazily, we are able to connect at a time after the virtual machine has already booted and able to be reached on the network. Trying to do this at startup would result in a failure to connect.

Instructions

  1. Ensure ssh is configured on the remote machine, you've generated an ssh key and you've copied that ssh key to the remote host.
  2. Replace {{ path_to_public_key }} with the full path to the ssh key you generated in step 1.
  3. Replace {{ remote_user }} with your username on the remote machine.
  4. Replace {{ remote_host }} with the remote hostname or ip address (for virtual machines this will probably be an ip add