Skip to content

Instantly share code, notes, and snippets.

View amcolash's full-sized avatar

Andrew McOlash amcolash

View GitHub Profile
@amcolash
amcolash / convert.py
Last active May 19, 2021 15:11
Python script to convert images for "The World's Worst Video Card" by Ben Eater
from PIL import Image
import struct
# Options to set up
file = "iceland.jpg"
dither = True
showPreview = True
# Palette code based off of https://stackoverflow.com/a/29438149/2303432
@amcolash
amcolash / index.js
Created August 7, 2021 20:21
Tampermonkey script to copy colors from SchemeColor.com
// ==UserScript==
// @name SchemeColor.com Copy Button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description copy color palette from SchemeColor
// @author Andrew McOlash
// @match https://www.schemecolor.com/*
// @icon https://www.google.com/s2/favicons?domain=schemecolor.com
// @grant GM_setClipboard
// ==/UserScript==
@amcolash
amcolash / steam-deck-install.sh
Last active September 2, 2022 23:05
An install script to set up developer tools on steam deck
#!/bin/bash
### Steam Deck dev tools install script ###
# This script needs to be run as root
if [ "$EUID" -ne 0 ]
then echo "Please run this script as root (with sudo)"
exit
fi