Skip to content

Instantly share code, notes, and snippets.

View ThatGuySam's full-sized avatar
Discovering the wonders of JAMStack

Sam Carlton ThatGuySam

Discovering the wonders of JAMStack
View GitHub Profile
ThatGuySam / settings.json
Last active June 1, 2024 22:37
Disable GitHub Copilot on dotenv files in VS Code
"files.associations": {
".env*": "dotenv",
".env.development": "dotenv",
".env.local": "dotenv",
".env.production": "dotenv"
"github.copilot.enable": {
"*": true,
ThatGuySam / prefilled-codepen.yaml
Created October 16, 2023 15:05
Prefilled CodePen Open API Schema
openapi: 3.0.0
title: CodePen Prefilled API
version: 1.0.0
description: API for generating CodePen Prefilled URLs using a single GET request with a JSON-encoded data parameter.
summary: Create a new Prefilled CodePen
ThatGuySam /
Created June 10, 2023 20:23 — forked from belgattitude/
Composite github action to improve CI time with pnpm


Although @setup/node as a built-in cache option, it lacks an opportunity regarding cache persistence. Depending on usage, the action below might give you faster installs and potentially reduce carbon emissions (♻️🌳❤️).


pnpm v7 or v8 (not using pnpm ? see the corresponding yarn action gist)


.NET Assemblies
.NET Development
.NET Framework
.NET Framework 1
.NET Framework 3
.NET Framework 4
.NET MAUI (Multi-Platform App UI)
.NET Reflector
.NET Remoting
.htaccess Files
ThatGuySam / skills.json
Created May 23, 2023 18:44
Lightcast Skills List May 2023
This file has been truncated, but you can view the full file.
"attributions": [
"name": "Wikipedia",
"text": "Wikipedia extracts are distributed under the CC BY-SA license ("
"data": [
"id": "KS126XS6CQCFGC3NG79X",
ThatGuySam / export-one-transactions-as-csv.js
Last active June 9, 2023 16:45
Chrome Source Script to export ONE transactions to a CSV for the 2023 Tax Season
// 🚨 Running random code on your bank website
// is a popular way to commit fraud. 🚨
// Although I wrote this with the intent
// to help people get their transactions
// out of their One accounts as CSV
// this script is given with no warranty
// and you should ask a developer that
// you trust to double check it to make
ThatGuySam / make-env-example.js
Last active December 16, 2022 21:22
Node script for securely keeping .env in sync with .env.example
// Can be used with Run on Save -
// Manually run with `npx tsx ./make-env-example.ts`
import { promises as fs } from 'node:fs'
( async () => {
// Read the .env file
const envContent = await fs.readFile( '.env', 'utf8' )
const cleanEnvContent = envContent.split( '\n' ).map( ( line ) => {
// If the line has no =, then return it as is
ThatGuySam /
Created June 28, 2022 19:59
Download YouTube Video Subtitles
youtube-dl --write-auto-sub --sub-lang en --sub-format best --skip-download ""
ThatGuySam / upload.xml
Created April 12, 2022 20:21
Youtube PubSub Non-live Upload Body Example
<?xml version='1.0' encoding='UTF-8'?>
<link rel="hub" href=""/>
<link rel="self" href=""/>
<title>YouTube video feed</title>
ThatGuySam /
Last active March 9, 2022 22:57
Techlahoma Presentation Checklist

Presentation Checklist

You can use these checklists to ensure as few technical difficulties as possible so all your hard work is presented in the best way and without any distractions.

In-Person Presentations

45 mins before event start