Skip to content

Instantly share code, notes, and snippets.

@TheBrokenRail
TheBrokenRail / README.md
Last active Sep 17, 2022
Jailbreak Firefox!
View README.md

Jailbreak-Firefox

This script allows you to install unsigned extensions (ones that aren't approved by Mozilla) on normal Firefox builds and the official Snap! That's right, no "Firefox Developer Edition" nonsense required!

⚠️ Disclaimer ⚠️

This script is not well tested, like at all. This script might break things, possibly important things. You should probably take a backup of your Firefox profile before using it. You have been warned.

Dependencies

sudo apt install -y curl unzip zip
# Only needed when jailbreaking the Snap
@slimsag
slimsag / ramblings.md
Last active Sep 16, 2022
Because cross-compiling binaries for Windows is easier than building natively
View ramblings.md

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@mentha
mentha / flatpak-auto-update.py
Last active Sep 9, 2022
flatpak auto update timer
View flatpak-auto-update.py
#!/usr/bin/env python3
from argparse import ArgumentParser
from contextlib import suppress
from functools import cached_property
from sys import argv, exit, stderr
from time import time
import dbus
import os
import shlex
@AnomalRoil
AnomalRoil / go-switch-bash
Last active Jul 1, 2022
The `go switch` function allows you to easily switch you current Go version
View go-switch-bash
# to add to your ~/.bashrc or your ~/.zshrc file. Usage: $ go switch 1.18.1
function go() {
case $* in
switch* )
shift 1
gobindir=$(go env GOBIN)
# adapt to a valid directory at the beginning of your $PATH if you're not on systemd
homebindir=$(systemd-path user-binaries)
go install golang.org/dl/go"$@"@latest
$gobindir/go"$@" download
@sts10
sts10 / rust-command-line-utilities.markdown
Last active Oct 2, 2022
A curated list of command-line utilities written in Rust
View rust-command-line-utilities.markdown

A curated list of command-line utilities written in Rust

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, exa, fd, hyperfine, miniserve, ripgrep, just, zoxide and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
  • bat: A replacement for cat that provides syntax highlighting and other features.
  • bottom: Yet another cross-platform graphical process/system monitor.
View battery.asl
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "BATTERY", 0x00000001)
{
// TODO: declare area size here?
// Handle reconnects?
External (BPTR, IntObj)
Device (\_SB.BRES)
{
Name (_HID, "PNP0A06")
Name (_UID, "Battery resources")
View battery_helper.py
#!/usr/bin/env python3
import mmap
import struct
import array
import socket
import time
import os
import ctypes
from pprint import pprint
@Speedy37
Speedy37 / userChrome.css
Last active Jun 2, 2021
[Proton] button to tabs, sound icon, menu padding
View userChrome.css
/** Add small space at the top */
.tab-stack {
margin-top: 4px;
}
/** Make tabs looks like tabs not buttons */
/* attach tabs to the toolbar */
.tab-background {
margin: 0px !important;
border-bottom-left-radius: 0 !important;
@Obydux
Obydux / Fabric-Server-Optimization.md
Last active Oct 1, 2022
Fabric Server Optimization
View Fabric-Server-Optimization.md

Fabric Server Optimization

This gist is aimed at 1.18-19.2 and all the optimizations mentioned here do not affect vanilla behaviour.

Mods

Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.

Starlight - A mod that rewrites the light engine to fix lighting performance and lighting errors.

View performancemods.md

I do not maintain this list anymore:

Go to https://github.com/NordicGamerFE/usefulmods an updated version

Performance Mods

A list of performance-enhancing mods for most major-played versions.

Any suggestion/complaint?
~ Ping alkya#1273 in Modded Minecraft or use the gist comments.

Mods marked as "Dangerous" might be unstable, and cause some unexpected behaviour.