Skip to content

Instantly share code, notes, and snippets.

@GeroVanMi
GeroVanMi / shell.nix
Created April 6, 2024 06:32
A simple nix shell with unstable pkgs
let
nixpkgs_unstable = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
pkgs_unstable = import nixpkgs_unstable { config = {}; overlays = []; };
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShellNoCC {
packages = [
@SimonEast
SimonEast / .8XP Binary File Format.md
Last active May 10, 2026 17:31
8XP Binary File Format & Structure Documentation

8XP File Format

The following KSY file shows the binary structure of 8XP files. These files are programs used on Texas TI-83 Plus and TI-84 Plus calculators.

As a basic summary, each 8XP file contains:

  • 55 byte header
  • 19 byte meta data section
  • body (variable length)
  • 2 byte checksum at the end
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active August 16, 2026 10:52
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@ichisadashioko
ichisadashioko / qemu_usb.txt
Created April 22, 2021 12:29
QEMU USB passthrough user guide
USB Quick Start
===============
XHCI controller support
-----------------------
QEMU has XHCI host adapter support. The XHCI hardware design is much
more virtualization-friendly when compared to EHCI and UHCI, thus XHCI
emulation uses less resources (especially cpu). So if your guest
@lucypero
lucypero / menu-emoji.sh
Created March 1, 2021 06:23
Emoji Picker
#!/bin/sh
#Emoji picker using rofi. Copies selected emoji to clipboard, and it pastes it.
#Deps: rofi, xdotool, xclip
set -e
case "$1" in
"list")
@ivanbrennan
ivanbrennan / premium-xcursor-theme.nix
Created February 13, 2021 21:43 — forked from ottidmes/premium-xcursor-theme.nix
Custom X cursor in NixOS
{ stdenv, lib, fetchurl, variants ? [ "Premium" "Premium-left" ] }:
with lib;
stdenv.mkDerivation rec {
name = "${package-name}-${version}";
package-name = "premium-xcursor-theme";
version = "0.3";
src = fetchurl {
@joelotz
joelotz / cue2labels.py
Last active September 6, 2025 04:28
Convert a music .cue file into a label file. This module will accept an optional string attribute that specifies the input .cue file. If this file is not provided in the call then file-select box will be presented to the user. Output is a .txt file of labels that can be input into Audacity.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Convert a music .cue file into a label file.
This module will accept an optional string attribute that specifies the input
.cue file. If this file is not provided in the call then file-select box will
be presented to the user. Output is a .txt file of labels that can be input
into Audacity.
Examples:
@Athari
Athari / ReadMe.md
Last active December 2, 2024 03:26
[User Style] e621.net — Tricksta Esix

[![Screenshot]][Screenshot]

[![Install directly with Stylus][Shield Stylus]][CSS]

Features

  1. Tricksta's Esix on the front page of e621.net as a mascot.
  2. Restyled controls on the front page to match the image.
  3. Small Esix at the bottom of each page.
@Nanquitas
Nanquitas / ActionReplayCodeTypes.txt
Last active August 17, 2026 22:18
CTRPF-Action Replay Code Types
###############################
# Action Replay #
# Code Types supported by #
# CTRPluginFramework #
# v0.5.0 #
###############################
==============
INFO
==============
@vivkin
vivkin / 16-color-table.sh
Created May 26, 2017 07:11
Terminal color test scripts
#!/bin/bash
#
# This file echoes a bunch of color codes to the terminal to demonstrate
# what's available. Each line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a test use of that color
# on all nine background colors (default + 8 escapes).
#
T='gYw' # The test text
echo -e "\n 40m 41m 42m 43m 44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' ' 36m' '1;36m' ' 37m' '1;37m';