Skip to content

Instantly share code, notes, and snippets.

View farmerbb's full-sized avatar

Braden Farmer farmerbb

  • Somewhere, Utah
View GitHub Profile
@FreedomBen
FreedomBen / .bashrc
Created December 28, 2023 19:25
Bash functions for controlling a chromecast with google TV from the CLI
adbdevicecount()
{
adb devices | grep -P '\sdevice$' | sed -e 's/device//g' | wc -l
}
adbkeyevent()
{
if [ -z "${1}" ]; then
echo "oops! Pass one arg with button. example 'adbkeyevent ENTER'"
elif [ -z "${ANDROID_SERIAL}" ] && [ "$(adbdevicecount)" = '1' ]; then
@vanodevium
vanodevium / Caddyfile
Created December 8, 2023 11:20
Caddy server: enable CORS for any domain
(cors) {
@cors_preflight method OPTIONS
header {
Access-Control-Allow-Origin "{header.origin}"
Vary Origin
Access-Control-Expose-Headers "Authorization"
Access-Control-Allow-Credentials "true"
}
@Lucas-mother3
Lucas-mother3 / The System 0.97 Dilemma.md
Last active March 29, 2024 05:08
A detailed documentation for available copies of Macintosh System Software 1.0 (0.97) online

The System 0.97 Dilemma

A side project detailing available disk dumps of Macintosh System Software 0.97, Finder 1.0.

Overview tl;dr: I would find a clean disk dump or a near perfect replica of the original System Disk.

Skip to the comparison table

Overview

In January 24th, 1984, Apple Computer Corporation introduced the Macintosh 128K (originally known as just Macintosh).

Wonder Boy: The Dragon's Trap
-----------------------------
Quick Guide for programmers
Last updated October 2018
Contact: Omar Cornut <XXXXXX
===============================================
INDEX
===============================================

[This portion of call begins at 25:47]

Me: I could make it really easy on you, if you think Apollo is costing you $20 million per year, cut me a check for $10 million and we can both skip off into the sunset. Six months of use. We're good. That's mostly a joke.

Reddit: Six months of use? What do you mean? I know you said that was mostly a joke, but I want to take everything you're saying seriously just to make sure I'm not - what are you referring to?

Me: Okay, if Apollo's opportunity cost currently is $20 million dollars. At the 7 billion requests and API volume. If that's your yearly opportunity cost for Apollo, cut that in half, say for 6 months. Bob's your uncle.

Reddit: You cut out right at the end. I'm not asking you to repeat yourself for a third time, but you legit cut out right at the end. "If your opportunity cost is $10 million" and then I lost you.

@iscle
iscle / gist:66e946553e74a883b4494d3b6df0ee82
Last active May 14, 2025 00:01
Install python2.7 on Ubuntu 23.04 as "python"
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
cd Python-2.7.18
sudo ./configure --enable-optimizations
sudo make altinstall
sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python"
@shadowninja108
shadowninja108 / zak.cpp
Last active February 2, 2025 05:06
ZAK decryptor/extractor for Wonder Boy Anniversary Collection
#include <cstdio>
#include <bit>
#include <cstdlib>
#include <span>
#include <lz4.h>
#include <string_view>
#include <filesystem>
/* Buffers. */
namespace {
@Composable
fun PieChart(
data: Map<String, Int>,
radiusOuter: Dp = 140.dp,
chartBarWidth: Dp = 35.dp,
animDuration: Int = 1000,
) {
val totalSum = data.values.sum()
val floatValue = mutableListOf<Float>()
@WinterSnowfall
WinterSnowfall / atari502mame.js
Created December 11, 2022 22:59
An adaptation of https://gist.github.com/cxx/6d1d44ce4a6107ed80e0a6c8c5b887c4 for the Atari 50: The Anniversary Celebration
// atari502mame.js - convert some of the arcade game data in Atari 50: The Anniversary Celebration to older MAME ROM sets
//
// Usage:
// node atari502mame.js [ROM directory]
//
// Requirements:
// - Node.js v6 or later
// - [Microsoft Windows] .NET Framework 4.5 or later (included in Windows 8/10)
// - [Linux] /usr/bin/zip
//
@Jackcool476
Jackcool476 / guide.md
Last active September 24, 2023 18:20
Guide to build Sonic Mania decompilation on Windows

IMPORTANT NOTICE:

This guide is now outdated as newly built executables are incompatible with the 1.0.0 release Game.dlls. Go to my Gamebanana guide for an updated tutorial with new formatting and instructions to build a new Game.dll.