Skip to content

Instantly share code, notes, and snippets.

View ctrlaltf2's full-sized avatar
🤠

Caleb ctrlaltf2

🤠
View GitHub Profile
@ctrlaltf2
ctrlaltf2 / alacritty.toml
Created October 27, 2025 17:41
Alacritty Config 2025-10-27
[colors.bright]
black = "0x475258"
blue = "0x7fbbb3"
cyan = "0x83c092"
green = "0xa7c080"
magenta = "0xd699b6"
red = "0xe67e80"
white = "0xd3c6aa"
yellow = "0xdbbc7f"
@ctrlaltf2
ctrlaltf2 / gradle-wrapper-hashes.csv
Created February 15, 2025 17:03
gradle-wrapper.jar hashes from the gradle repo mapped to the release version tag, because running random executables from random repos is cool and safe and nothing can go wrong
hash version
REL_0.9.2 0ef18269b369a2cd06f5046d3e8a7e47120f29be34415cbc2134c2942cb73605
REL_1.0 c7a517944204265047ee4c30463b5df826bc084126cda453af1caf2ba4cb168c
REL_1.0-milestone-1 0ef18269b369a2cd06f5046d3e8a7e47120f29be34415cbc2134c2942cb73605
REL_1.0-milestone-2 0ef18269b369a2cd06f5046d3e8a7e47120f29be34415cbc2134c2942cb73605
REL_1.0-milestone-3 bd878ca5a77c383f96510a16adbd79de8f074d056abcad994ddc2b950134bfee
REL_1.0-milestone-4 46a1522e7eda7eb3c44beb96305ff8076a77c330cb45c42782a8a14dde077178
REL_1.0-milestone-5 46a1522e7eda7eb3c44beb96305ff8076a77c330cb45c42782a8a14dde077178
REL_1.0-milestone-6 46a1522e7eda7eb3c44beb96305ff8076a77c330cb45c42782a8a14dde077178
REL_1.0-milestone-7 46a1522e7eda7eb3c44beb96305ff8076a77c330cb45c42782a8a14dde077178
@ctrlaltf2
ctrlaltf2 / gradlew-hashes.csv
Last active February 15, 2025 16:54
gradlew hashes mapped roughly to the gradle version they come from, based on tags in the gradle repo, because running random scripts from random repos is Very Cool and Very Safe
hash version
REL-0.1 3a8cb114d84c1e986fdb9805f609efb019c8a970c3bb29c71270c69981016f98
REL-0.1.1 3a8cb114d84c1e986fdb9805f609efb019c8a970c3bb29c71270c69981016f98
REL-0.1.2 22fd79597c7e58d935ce33a10f83e7a6372f59d6d6df2b5bb158e0e660f0cf4c
REL-0.1.3 75ccec12c2766f80ee8cdb864a34412dbd48282a47c5f3745db10b0d39f13eba
REL-0.1.4 0e34eeb1e0da5f00942e6484bfdb657916c8f9fa28bbfd51dbd7d8a2214991ea
REL-0.2 aeb5bbc903f7794223267de40d70be6814e37b16a5cff77273fe27cca08de3f3
REL-0.3 e6aef522506f4288d6bbf2f802f6979a6363547b7f659f5b7d0bd9fbaf4f049c
REL-0.4 e6aef522506f4288d6bbf2f802f6979a6363547b7f659f5b7d0bd9fbaf4f049c
REL-0.5 e6aef522506f4288d6bbf2f802f6979a6363547b7f659f5b7d0bd9fbaf4f049c
@ctrlaltf2
ctrlaltf2 / install.sh
Created December 29, 2024 22:44
Install NixOS 24.11 with encrypted BTRFS
#!/bin/bash
# Log [e]rrors and dump commands to stderr as they execute
set -ex
DISK=/dev/nvme0n1
export DISK
# Create GPT partition table
parted $DISK -- mklabel gpt
@ctrlaltf2
ctrlaltf2 / shell.nix
Created February 29, 2024 00:38
Shell.nix except it loads Nix' glibc correctly
{ pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
# Things that'll use Nix glibc here
];
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
}
@ctrlaltf2
ctrlaltf2 / filter.txt
Created March 29, 2022 15:18
YouTube Ublock Origin filter for removing buttons you'd never use while signed out
! 2022-03-29 https://www.youtube.com
www.youtube.com##button[aria-label*="like this video"]:upward(3)
www.youtube.com##button[aria-label*="Share"]:upward(2)
www.youtube.com###button[aria-label*="Subscribe"]:upward(2)
www.youtube.com##button[aria-label*="Save"]:upward(2)
www.youtube.com##yt-formatted-string:has-text(Add a comment...):upward(3)
www.youtube.com##button[aria-label*="Like this comment"]:upward(4)
www.youtube.com##a[href*="accounts.google.com"]
@ctrlaltf2
ctrlaltf2 / remarkable_tablet_get_update_machine_id.py
Last active March 18, 2021 23:58 — forked from AaronDavidSchneider/remarkable_tablet_get_update_machine_id.py
Generate random machine ids and send to reMarkable update server to find an ID that is approved for a firmware update.
#!/usr/bin/env python3
import time
import uuid
import random
import requests
# This script is tested and working as of March 2021.
# It is only a slightly modified version of leezu's script: https://gist.github.com/leezu/2efb1533d453b70db406b58eb6e3a2af
# leezu gets 99.9% of the credit
@ctrlaltf2
ctrlaltf2 / Scheduler.cpp
Created June 2, 2018 01:42
Scheduler thing
#include "Scheduler.h"
Task::Task() {}
void Task::update() {
nextRun = std::chrono::time_point_cast<task_precision>(
std::chrono::steady_clock::now()) +
period;
}