Skip to content

Instantly share code, notes, and snippets.

@snydergd
snydergd / dokieli-save-enabler.user.js
Last active March 9, 2024 15:32
Enable Solid Save Button Userscript
// ==UserScript==
// @name Enable Dokieli Save
// @namespace http://tampermonkey.net/
// @version 2024-03-09
// @description Dokieli save button is currently disabled always with pods: https://github.com/linkeddata/dokieli/issues/390 -- this attempts to force it to be enabled.
// @author https://snydergd.solidcommunity.net/profile/card#me
// @match https://*.solidcommunity.net/*
// @match https://*.inrupt.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=solidcommunity.net
// @homepage https://gist.github.com/snydergd/ed530bc8ea20861628b1cfea3e58590c
@snydergd
snydergd / README.md
Created December 7, 2023 04:00
Unexpected Keyboard Thumb-Key Layout

Thumb-Key?

Yes, Thumb-Key - an open-source privacy-centered alternative to the better-known MessageEase input method.

For Unexpected Keyboard?

Unexpected Keyboard is another open source and privacy conscious keyboard, with a couple extra features. It also makes use of swipes to enable more keys to be quickly entered.

It also permits custom layouts.

@snydergd
snydergd / install-python.sh
Last active May 28, 2023 23:05
Python downloader/installer
#!/bin/bash
#
# Summary: Installs/upgrades python installations on your machine.
#
# Prerequisites:
# - jq and curl to be installed and in a folder on the PATH environment variable
# - PLATFORM and STORAGE_FOLDER variables below to be set correctly (did not take time to automatically pick)
#
@snydergd
snydergd / install-pwsh.sh
Created May 26, 2023 15:00
PowerShell installer Script for Linux - to make installation/upgrade easier
#!/bin/bash
usage() {
echo "Usage: $0 <version> # version example: 7.4.0-preview.3" >&2;
}
if [ "$1x" = "x" ]; then
usage;
echo "No version supplied - using default" >&2;
VERSION="7.4.0-preview.3";
@snydergd
snydergd / download-docker-info.ps1
Last active November 3, 2022 13:45
download-docker-info.ps1
param(
[Parameter(Mandatory=$true)]$image,
$tag = "latest",
$registry = "registry.hub.docker.com",
$outputFolder = "C:\temp\dockerStuff"
)
try {
invoke-restmethod "https://$registry/v2/$image/manifests/$tag"
} catch {
@snydergd
snydergd / raw-tcp-client.js
Created September 13, 2022 18:00
Single-file zero-dependency nodejs web-based TCP client
const http = require('http');
const tls = require('tls')
const net = require('net');
function setupTls({host, port}) {
return new Promise((resolve) => {
const socket = tls.connect(
{
port: port,
host: host,
@snydergd
snydergd / resume.json
Last active April 12, 2022 03:44
resume.json
{
"basics": {
"name": "George Snyder",
"label": "Software Engineer",
"image": "https://gravatar.com/avatar/9fadd19f49be4a105a33390a261e33d7?s=400&d=robohash&r=x",
"email": "snydergd91@gmail.com",
"phone": "507-353-0199",
"url": "https://snydergd.xyz",
"summary": "Software Engineer with experience in Java, Web, and DevOps with a passion for learning. I really enjoy understanding new ways of looking at problems. From developing new software to configuring existing software that's been around for several years, I'm excited to solve business challenges in the simplest and most future-proof way possible.",
"location": {
@snydergd
snydergd / stackoverflow_select_winners.py
Created January 18, 2022 23:28
StackOverflow Teams Reward Distribution Script
#!/bin/env python3
import argparse
import requests
import os
import json
from datetime import datetime, timedelta
import random
parser = argparse.ArgumentParser()
@snydergd
snydergd / keybase.md
Created December 24, 2021 17:08
keybase.md

Keybase proof

I hereby claim:

  • I am snydergd on github.
  • I am snydergd91 (https://keybase.io/snydergd91) on keybase.
  • I have a public key ASCcl7pOoGGTGcnsfL85zCqlUtuyI6_oL9VLMCvLiAvFrwo

To claim this, I am signing this object:

@snydergd
snydergd / paywallRemover.js
Last active July 8, 2023 20:28
Paywall Remover Script
/*
A quick and dirty javascript to paste in devtools (F12 in browser) console to remove client-side paywalls
After running, you'll have a "hide" button you can press to get rid of the currently displayed paywall/overlay.
You may need to press it several times.
You'll also have a "close" button to hide the buttons.
If you want to use on Android/Chrome, you can! Use the following abbreviated version. Add as a bookmark
(will have to manually re-add the "javascript: " at the front) then launch by typing the name of the bookmark
in the address bar and pressing on it (clicking from the bookmark section does not work). I named my bookmark