Skip to content

Instantly share code, notes, and snippets.

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 Jan 18, 2022
Fabric Server Optimisation
View Fabric-Server-Optimization.md

Fabric Server Optimization

This tutorial is aimed at 1.17+ but may also work on 1.16.5.

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.

@nrubin29
nrubin29 / homebrew_m1.sh
Last active Dec 20, 2021
Install Native Homebrew on Apple Silicon M1
View homebrew_m1.sh
# We'll be installing Homebrew in the /opt directory.
cd /opt
# Create a directory for Homebrew. This requires root permissions.
sudo mkdir homebrew
# Make us the owner of the directory so that we no longer require root permissions.
sudo chown -R $(whoami) /opt/homebrew
# Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation.
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active Jan 27, 2022
Recommended OptiFine alternatives on Fabric
View optifine_alternatives_fabric.md

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@Clindbergh
Clindbergh / iotcam.py
Last active Jan 21, 2021 — forked from loleg/iotcam.py
Detects barcodes from a webcam stream using Python, zbarlight and CV2
View iotcam.py
#####################################
# This version works on python 3 #
# Install pillow, zbarlight and cv2 #
#####################################
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import sys
import cv2
@John-Paul-R
John-Paul-R / FabricModList.md
Last active Jan 18, 2022
A list of (almost all) mods for Fabric
View FabricModList.md

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active Jan 26, 2022
Use a Git commit message template to write better commit messages
View git-commit-template.md

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the