Skip to content

Instantly share code, notes, and snippets.

@oxavelar
oxavelar / openwrt-aql-tweaks
Last active May 12, 2025 03:09
Linux AQL Adjustments
for phy in $(find /sys/kernel -name 'phy[0-9]'); do
(cd $phy
l=1500
h=5000
echo 0 $l $h > "$phy/aql_txq_limit"
echo 1 $l $h > "$phy/aql_txq_limit"
echo 2 $l $h > "$phy/aql_txq_limit"
echo 3 $l $h > "$phy/aql_txq_limit"
echo 8000 > "$phy/aql_threshold"
@jumpyvi
jumpyvi / tpm-unlock.sh
Created November 5, 2024 21:35
TPM-Autounlock (fedora)
#!/bin/bash
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others
## This is a backup version from Universal Blue
set -eou pipefail
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;}
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!"
echo "All AMD Zen2 and Zen3 Processors are known to be affected!"
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!"
@fsworld009
fsworld009 / 3.steam.md
Last active May 8, 2025 17:35
Aurora DX on Framework 16 note

disrobox

Used bazzite-arch image

To be able to use gamescope, use the options suggested in 89luca89/distrobox#451 (comment)

distrobox create -n bazzite -i ghcr.io/ublue-os/bazzite-arch:latest --init-hooks "install -o 1000 -g 1000 -d /tmp/.X11-unix-new; mount --bind /tmp/.X11-unix-new /tmp/.X11-unix"
@avrj
avrj / Creality Ender V3 SE KE tips for best results.txt
Last active September 27, 2024 21:27
Creality Ender V3 SE / KE tips for best results
* Tension X,Y,Z axis: https://www.youtube.com/watch?v=MV-rbU5Fpfc
* Check that the extruder screw has the right tension: https://www.youtube.com/watch?v=8bACUeH6WDs
* Check that all screws are tightened
* Level the X axis, use two glue sticks on both sides of print bed to determine if the X axis is leveled: https://www.youtube.com/watch?v=Cmwq9r5tePk
* Use the "paper test" to set the Z offset (run G1 Z0 F300 on the printer to position the hotend to the lowest position on the print bed)
* Use fine tuning to find the right Z offset
* Print the modified spool holder for added stability: https://www.thingiverse.com/thing:6631744
* Print the Z axis gantry support for added stability: https://www.thingiverse.com/thing:6516352
* Lubricate X,Y,Z axis with lithium grease
* Print first layer test.
@0atman
0atman / configuration.nix
Last active April 28, 2025 01:38
A rebuild script that commits on a successful build
{
config,
pkgs,
options,
...
}: let
hostname = "oatman-pc"; # to alllow per-machine config
in {
networking.hostName = hostname;
@alienboyxp
alienboyxp / readme.md
Last active September 27, 2024 21:25
README - 3DWORK Marlin Auto Builder

Currently Marlin Version - 2.1.2.2

Warning

Marlin binaries are created from official Marlin pre configuration repository, use at your own risk. Review compilation badge for succesfully build!!!
Suggested to take the config files and compile yourself, compilation guide.

Tip

From the next list of brand/printers/configurations:

  • the first part shows the complilation process status, if you see passing the compilation was ok... if you see failing the compilation had issues
@boomsya
boomsya / CreateV3KEThumbnail.py
Last active March 23, 2025 18:01
Enabling Ender 3 V3 KE Model Preview (Thumbnail) With Cura 5+
# Cura V3KE Thumbnail creator
# Kolio ([email protected])
#
# This only works with Cura 5.0+
import base64
from UM.Logger import Logger
from cura.Snapshot import Snapshot
from PyQt6.QtCore import QByteArray, QIODevice, QBuffer
@0xack13
0xack13 / arch_linux_installation.md
Created January 14, 2024 04:15 — forked from orhun/arch_linux_installation.md
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@vuori
vuori / openwrt-23-05-802-11r.md
Created November 19, 2023 20:15
OpenWRT 23.05 802.11r + EAP

Getting 802.11r Fast Transition working with WPA(2)-Enterprise is quite painful. There is information on the forums, but things have changed quite a bit during the last few years. These are notes mostly for my own benefit.

Tricky bits as of OpenWRT 23.05 (in Luci "WLAN roaming" tab of wireless network settings):

  • NAS Id should be set to something unique, like the name of the AP.
  • Mobility domain defaults to a sane value. Leave it empty.
  • Reassociation deadline's default of 1000 is bad. Apparently Cisco uses 20000 here, setting that appears to be helpful.
  • FT Protocol "Over the air" is the good setting.

If you're using WPA2-PSK, check "Generate PMK locally" and you're done. Save&apply and it should just work.