Skip to content

Instantly share code, notes, and snippets.

View norpol's full-sized avatar

Phileas Lebada norpol

View GitHub Profile
@MohrJonas
MohrJonas / PreForm.md
Created October 15, 2026 17:29
Run FormLab's PreForm under Linux

!!! These steps work as of 10/15/2026 and will likely change in the future. !!!

I use Bottles installed natively under NixOS, but this should work no matter the OS.

Step 1: icuuc.dll

PreForm requires icuuc.dll. This does not ship with wine or PreForm.
Therefore, I extracted it from a Windows 10 ISO.

Steps:

@supermar1010
supermar1010 / README.md
Last active October 14, 2026 07:02
Xiaomi Mi Curved Gaming Monitor 34" (2020): OSD goes black after using a DDC tool. Fix

Xiaomi Mi Curved Gaming Monitor 34" (2020): OSD goes black after using a DDC tool. Fix

Use at your own risk. This worked on my monitor, but there is no guarantee it works on yours. It writes to the monitor's settings EEPROM. See the disclaimer at the bottom.

Symptom

  • Pressing the joystick to open the on-screen menu (OSD) turns the screen black for ~2 seconds. Then the picture comes back, but no menu.
  • Happens on every input (DP, HDMI) and every source device.
  • It typically starts after a DDC/CI tool was used, for example a brightness app like Monitorian, Twinkle Tray, ClickMonitorDDC, ddcutil, or anything with a "turn display off" function.
  • Factory reset isn't possible because you can't reach the menu. Power-cycling doesn't help.
@espired
espired / spotify.ino
Created June 18, 2024 08:33
ESP32-S3 Spotify Remote Controller
#include <LilyGo_AMOLED.h>
#include <LV_Helper.h>
#include <WiFiClientSecure.h>
#include <WiFi.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
#include <esp_wifi.h>
// WiFi credentials
const char* ssid = "WIFI_SSID";
@imogenkinsman
imogenkinsman / pacman-cheat-sheet.md
Last active October 1, 2020 23:28
How To Use Pacman

This is my first Arch install and I keep forgetting or using unsafe pacman commands, so I made a thing.

Arch's philosophy is to be modular, give you control over everything, and allow you to shoot yourself in the foot every other day until you run out of toes.

This guide is meant to be used as a quick reference and prioritizes safe, sane defaults, but you should read the pacman docs first. They're a quick read, and will save you some pain later.

Pacman and Aur

Pacman only works with official repos - unofficial repos are listed in aur, the Arch Linux Repository. It's common to use yay, a wrapper that allows you to easily use both aur and the official repository:

@chrisdlangton
chrisdlangton / syscall2seccomp.py
Last active May 30, 2025 14:41
Automatically generate seccomp profile json by learning from container activity using sysdig
#!/usr/bin/env python3
import fileinput
import json
import argparse
SECCOMP_PROFILE = ('{"defaultAction": "SCMP_ACT_ERRNO",'
'"architectures": ['
'"SCMP_ARCH_X86_64",'
'"SCMP_ARCH_X86",'
@rixx
rixx / comparison.md
Last active March 13, 2026 13:25
Online man pages comparison

Man page browser comparison

There are a bunch of man page browsers available online. They have different data sources, feature sets, and disadvantages, so here is a short comparison table:

Name ls man page No Trackers/Ads Clickable Headings Links² ToC¹ Local Search Noteworthy
Arch manual pages ls
@IanColdwater
IanColdwater / twittermute.txt
Last active October 22, 2026 02:30
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
let
privateZeroTierInterfaces = [ "ztbso1b6n3" ]; # ZT NET INTERFACE
in {
system.stateVersion = "19.03";
services.openssh.enable = true;
services.openssh.openFirewall = false; # SSH ONLY ON VPN
services.openssh.passwordAuthentication = false;
networking.firewall.enable = true;
@klingtnet
klingtnet / how-to-upgrade-nvmw-ssd-firmware-on-linux.md
Last active August 4, 2026 02:21
How to upgrade [Lenovo] NVMe SSD firmware on Linux

The instructions were tested on a Lenovo X1 Carbon 5th Gen (X1C5) on Arch Linux but should be applicable to other Lenovo models and Linux distributions.

BACKUP YOUR DATA! I created a bootable Ubuntu Image like this:

$ sudo sh -c 'curl --location --silent --fail "http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso" | pv > /dev/<your-usb-drive>'
# note that pv is only there to show progress, it is perfectly fine to redirect curl to the usb drive directly.

then I booted from this drive by pressing F12 on reboot and dumped my NVMe disk to an external hard drive like this:

@pigeonhill
pigeonhill / 4m.lua
Created May 12, 2018 13:50
EOSM script 4 (ND)
--Neutral Density Script (NDS) Release 0.9M
--[[
********************************************************************************************
This script creates a bracket set for post processing, allowing you to simulate an ND filter.
Also you can use the script to create brackets to 'remove people' ;-)
Change the number of brackets or the time delay (s) between brackets using the MENU and PLAY keys (Green text)
Toggle between these changes with the UP key.