Skip to content

Instantly share code, notes, and snippets.

@sedme0
sedme0 / Makefile
Created July 29, 2026 12:45
cc65 Apple II simple Makefile example (with hello world example) (modified from official cc65 samples)
ifdef CC65_HOME
AS = $(CC65_HOME)/bin/ca65
CC = $(CC65_HOME)/bin/cc65
CL = $(CC65_HOME)/bin/cl65
LD = $(CC65_HOME)/bin/ld65
GRC = $(CC65_HOME)/bin/grc65
else
AS := $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
CL := $(if $(wildcard ../bin/cl65*),../bin/cl65,cl65)
@sedme0
sedme0 / update.sh
Created May 28, 2026 16:18
Behind the Bastards archival script
#!/bin/sh
yt-dlp --download-archive downloaded-episodes.txt -o "%(upload_date>%Y-%m-%d)s %(title)s.%(ext)s" --playlist-reverse --windows-filenames https://www.iheart.com/podcast/105-behind-the-bastards-29236323/
@sedme0
sedme0 / config.el
Created October 19, 2021 17:32
Doom Emacs configuration
;; I'm only uploading this because I had to rebuild it after I accidentally deleted it.
;; This isn't my whole config.el file, just the stuff after the defaults (hence "END OF DEFAULTS")
;; This isn't the most well-commented or anything, it's only public because I don't see any
;; reason for it not to be, if I'm going to be uploading it anyway. Also, why doesn't github support 5-space indents?
;; 5 spaces is obviously the best number of spaces for an indent, if you're going to use them instead of tabs.
;; And tabs are obviously superior to spaces for indentation.
;; ----------------------------------------------------------------------------
;; | END OF DEFAULTS |
;; ----------------------------------------------------------------------------
@sedme0
sedme0 / mm1.sh
Created March 31, 2021 01:31
Might and Magic 1 Linux Install Script
#!/bin/sh
# Last modified 3/30/2020
# Prerequisites: wget winetricks lgogdownloader 7z libreoffice (used to convert WhereAreWe documentation to pdf)
# Wine doesn't need to be installed because it will automatically download the required version
# Usage: Put this script in an empty folder and run it. Running it once will install the game, after that running it will run the game.
WINEBASE=$HOME/.PlayOnLinux/wine/linux-amd64/5.11
export WINE=$WINEBASE/bin/wine
export WINESERVER=$WINEBASE/bin/wineserver
WINEDOWNLOAD=https://www.playonlinux.com/wine/binaries/phoenicis/upstream-linux-amd64/PlayOnLinux-wine-5.11-upstream-linux-amd64.tar.gz
export WINEPREFIX=$PWD/wineprefix
@sedme0
sedme0 / helloWorld.multi.sh
Created February 26, 2021 02:20
Multi-language Hello World
#!/bin/sh
# -----------------------------------------------------------------------------
# The purpose of this project is to create a Hello World program where each
# letter of "Hello world" is provided by a different programming language. This
# is achieved by writing a function in each language that returns the proper
# character. Each function is also to emit output of its own to stdout stating
# that it is responsible for its assigned letter. I have chosen to write the
# entire project in a shell script because I thought it would be interesting,
# which also happens to be the reason I chose to write the project at all.
# -----------------------------------------------------------------------------