Skip to content

Instantly share code, notes, and snippets.

@snydergd
snydergd / calendar.css
Last active October 9, 2020 04:17
Minimal Calendar
.minCal {
display: inline-table;
padding: 0.5em;
text-align: center;
width: 100%;
border: 1px solid black;
padding: 0;
background-color:white;
color: black;
}
@snydergd
snydergd / nickelodeonuniverse.com-rides-scrape.py
Created June 21, 2021 16:39
Scrape ride information from Mall of America Nickelodeon Universe website, and put into a CSV using Selenium in python.
from selenium import webdriver
from selenium.common.exceptions import ElementNotInteractableException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.keys import Keys
import csv
driver = webdriver.Chrome()
@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
@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 / 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 / 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": "[email protected]",
"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 / 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 / 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 / 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 / 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)
#