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
ThatGuySam / prefilled-codepen.yaml
Created October 16, 2023 15:05
Prefilled CodePen Open API Schema
openapi: 3.0.0
info:
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.
paths:
/define:
get:
summary: Create a new Prefilled CodePen
@ThatGuySam
ThatGuySam / ci-pnpm-install.md
Created June 10, 2023 20:23 — forked from belgattitude/ci-pnpm-install.md
Composite github action to improve CI time with pnpm

Why

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 (♻️🌳❤️).

Requirements

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

Bench

.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
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 (https://creativecommons.org/licenses/by-sa/3.0/)"
}
],
"data": [
{
"id": "KS126XS6CQCFGC3NG79X",
@ThatGuySam
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
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 - https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave
// 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
ThatGuySam / subs.md
Created June 28, 2022 19:59
Download YouTube Video Subtitles
youtube-dl --write-auto-sub --sub-lang en --sub-format best --skip-download "https://www.youtube.com/watch?v=-qU6w9jqk94"
@ThatGuySam
ThatGuySam / upload.xml
Created April 12, 2022 20:21
Youtube PubSub Non-live Upload Body Example
<?xml version='1.0' encoding='UTF-8'?>
<feed
xmlns:yt="http://www.youtube.com/xml/schemas/2015"
xmlns="http://www.w3.org/2005/Atom">
<link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<link rel="self" href="https://www.youtube.com/xml/feeds/videos.xml?channel_id=UCB3jOb5QVjX7lYecvyCoTqQ"/>
<title>YouTube video feed</title>
<updated>2022-04-12T20:18:12.634792044+00:00</updated>
<entry>
<id>yt:video:UTVZ7IQ2Ggg</id>
@ThatGuySam
ThatGuySam / Presentation-Checklist.md
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

@ThatGuySam
ThatGuySam / styleguide.js
Last active February 7, 2022 16:42
Tailwind Style Guide Template
module.exports = {
purge: false,
theme: {
extend: {
colors: {
// The Words - Medium Black
medium_black: 'rgb(38, 38, 38)',
// The Canvas - White,
white: 'rgb(255, 255, 255)',