Skip to content

Instantly share code, notes, and snippets.

View catb0t's full-sized avatar
💭
hmm

Cat Stevens catb0t

💭
hmm
View GitHub Profile
@catb0t
catb0t / cpulimit-apps
Last active September 4, 2025 16:30
automatically cpulimit heavy apps on battery power, like Floorp (Firefox) and Pulsar (Atom)
## as root, create mode 0644 /etc/acpi/events/cpulimit-apps
event=ac_adapter
action=/etc/acpi/actions/cpulimit-apps.bash %e
@catb0t
catb0t / launch-editor.bash
Last active September 3, 2025 20:49
Launch-editor - Launch your favourite editor in a saved directory, or type a new directory to be saved
#!/bin/bash
# Requires Python3 and `tput` from ncurses-bin
launch-editor () {
EDITOR="pulsar"
history_file="$HOME/.launch-editor_history"
have_history=0
number=1

factoring and symbolic algebra

factor gets its name from the fact that factor code is easy to factor. factoring is, like in elementary algebra, a compression scheme whereby common information is separated. consider the following:

lyrics from the hit dmx song, party up
y'all gonna make me lose my mind
up in here, up in here
y'all gonna make me act a fool
up in here, up in here

Additional settings for Tokyo Xtreme Racer, HDR, VSM, Streaming, Weather, Time of Day and more

This UE4SS script will allow you to adjust render settings in Tokyo Xtreme Racer.

This allows you to:

  • Enable 10 bit HDR Display Output, requires HDR enabled in Windows settings
  • Enable Virtual Shadow Maps, more crisp and accurate shadows
  • Disable textures streaming. Game will load all texture assets on level load to reduce CPU overhead at a cost of memory usage. Requires 8GB GPU or better.
  • Enable Lumen reflections
  • Enable lowest possible settings for a low end hardware, to improve compatbility with old hardware, run game with -dx11 launch argument.
@klange
klange / _.md
Last active September 9, 2025 10:11
12 Years of ToaruOS

12 Years of ToaruOS

This is a repost and update to an imgur album with screenshots of ToaruOS throughout its development, as imgur is no longer a viable platform for maintaining this collection.

Early Development

My first commit in the ToaruOS repository, ecd4fe2bc170b01ad700ff76c16da96993805355, was made on January 15th, 2011. This date has become ToaruOS's "birthday". It would be another six years and two weeks before ToaruOS's first real release, 1.0.

1 - eL4aHBZ - Humble Beginnings

interface val Auth
fun val apply[B: Auth val](): B ? =>
this as B
fun val add(that: Auth): AuthSet =>
AuthSet(this, that)
class val AuthSet is Auth
let _a: Auth
let _b: Auth
@jemc
jemc / comp-sci-notation.md
Last active January 17, 2022 18:42
An informal glossary of formal notation commonly used in academic papers relevant to computer science

Overview

Laypersons who are not trained in the relevant formal notation may sometimes feel lost when trying to read academic papers on computer science.

This gist is intended to be a short introductory "cheat sheet" for some of the symbols we may encounter in such papers, to help make the work more accessible to a broader audience, particularly those working in the software industry looking to gain a deeper understanding into formal computer science.

In addition to this introductory glossary of symbols, it may also be helpful to reference this glossary of terms so that the formal usage of certain words can be known to the reader.

One can also read a great bit more detail on this topic in The Formal Semantics of Programming Languages, a text introducing a lot of details in formal notation.

@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active September 19, 2025 10:04
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@kuasha420
kuasha420 / steam-apfs-case-sensitive.md
Last active April 8, 2025 14:58
Update `brew` command

Steam Client on APFS Case Sensitive Mac OS Drive

If you are using APFS Case Sensitive File system and trying to use Steam, it will flicker & silently fail or show the following error message:

steam requires that '~/library/application support/steam/steam.appbundle/steam/contents/macos' be on a case-insensitive filesystem.

To fix the issue, follow the instruction here.

Run from your user account, NOT ROOT!

@BenTheHokie
BenTheHokie / wordmap.csv
Created May 29, 2019 22:35
Phonetically correct word scrambler
I EIGH
J DGE
U OU
S ZE
T TTE
TH CHTH
R EUR
EW IEU
U OU
P PPE