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 June 26, 2024 06:22
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!

@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 December 15, 2023 13:56
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
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
h264_amf AVOptions:
-usage <int> E..V....... Encoder Usage (from 0 to 5) (default transcoding)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... ultra low latency trancoding
lowlatency 2 E..V....... low latency trancoding
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 August 10, 2023 03:33
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: