Skip to content

Instantly share code, notes, and snippets.

View olijf's full-sized avatar

Olaf olijf

View GitHub Profile
@mgd722
mgd722 / this-drove-me-slowly-insane-for-2-weeks.md
Last active December 8, 2025 01:39
Fix touchpad on Lenovo 100e running Ubuntu

Fix touchpad on Lenovo 100e running Ubuntu

So you bought a used Lenovo 100e with a stupid ELAN066C touchpad. It works in Windows just fine, other than being god-awful slow. You want to put Xubunutu on it to make it workable, except the touchpad stopped working. Ugh.

My brain is smooth, so this took me like 40+ hours to solve. I'm sure you would have solved it faster, but just in case you need help here are the steps I took to get it working. For reference, my exact computer is Lenovo 100e 2nd Gen (82GJ).


NOTE: secure boot must be disabled for this to work!

@kj800x
kj800x / Hacking the LG Monitor's EDID.md
Last active December 26, 2025 00:30
Hacking the LG Monitor's EDID

preface: Posting these online since it sounds like these notes are somewhat interesting based on a few folks I've shared with. These are semi-rough notes that I basically wrote for myself in case I ever needed to revisit this fix, so keep that in mind.

I recently bought an LG ULTRAGEAR monitor secondhand off of a coworker. I really love it and it's been great so far, but I ran into some minor issues with it in Linux. It works great on both Mac and Windows, but on Linux it displays just a black panel until I use the second monitor to go in and reduce the refresh rate down to 60 Hz.

This has worked decent so far but there's some issues:

  • It doesn't work while linux is booting up. The motherboards boot sequence is visible just fine, but as soon as control is handed over to Linux and I'd normally see a splash screen while I'm waiting for my login window, I see nothing.
  • It doesn't work on the login screen. This would be fine if login consistently worked on my second screen, but I need to manually switch
@orangecms
orangecms / coreboot-p34v2.md
Last active September 22, 2025 17:04
Porting guide for coreboot: GIGABYTE P34G v2 / Schenker XMG C404

Porting coreboot to a Haswell / Lynx Point laptop: GIGABYTE P34G v2

This mainboard was sold by Schenker XMG as C404, while the original model name by GIGABYTE is P34G v2.

The board schematics are not publicly available. However, from another laptop board's schematics, we can learn a bit about the components it should have: laptop mainboard schematics

autoport

@jkeuper
jkeuper / udp_packet.py
Created February 12, 2019 21:13
Hack the compound
#!/usr/bin/python
"""
Create UDP packet containing RESET.
"""
from scapy.all import *
from binascii import hexlify
packet = IP(src='192.168.0.5', dst='192.168.0.11')/UDP(dport=17861, sport=17861)/Raw('RESET')
@nico-lab
nico-lab / h264_amf
Last active May 2, 2025 12:20
ffmpeg -h encoder=h264_amf
Encoder h264_amf [AMD AMF H.264 Encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2 amf amf
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le amf bgr0 rgb0 bgra argb rgba x2bgr10le rgbaf16le
h264_amf AVOptions:
-usage <int> E..V....... Encoder Usage (from -1 to 5) (default -1)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... Ultra low latency usecase
lowlatency 2 E..V....... Low latency usecase
module analysis::learning::KMeans
import util::Math;
import List;
import Set;
import IO;
data Point = point(list[real] vec);
Point arbPoint(int d) = point([arbReal() | _ <- [0..d]]);
@stormpython
stormpython / how_to_set_up_ssh_keys.md
Last active June 9, 2025 06:16
Setting up ssh keys for remote server access

How to Set up SSH Keys

Create the RSA Key Pair

ssh-keygen -t rsa

Store the Keys and Passphrase

Once you have entered the Gen Key command, you will get a few more questions: