Skip to content

Instantly share code, notes, and snippets.

@FlaareZero
FlaareZero / KDE-Debian-Setup.sh
Last active January 26, 2024 16:14
Just a simple Debian post-installation script for KDE Plasma. Can be used as an example
#!/bin/bash
#minimal cleanup for KDE Plasma Debian 12
sudo apt purge -y gimp akregator juk libreoffice-* zutty xterm kmail imagemagick kontrast firefox-esr && sudo apt install -y git build-essential nala
#lets setup the fingerprint! (ONLY IF YOU HAVE A 04F3:0C00 DEVICE FOR NOW BECAUSE IS THE ONE I HAVE LOL):
wget https://github.com/Greek64/libfprint-elanmoc2-deb/archive/refs/heads/1.94.5-1.zip && unzip 1.94.5-1.zip
cd libfprint-elanmoc2-deb-1.94.5-1/ && sudo nala install -y ./libfprint-build-deps_1.94.5-1_all.deb
cd libfprint-1.94.5 && dpkg-buildpackage -b -uc -us && cd .. && sudo nala purge -y libfprint-build-deps && sudo nala autopurge
sudo nala install -y ./libfprint-2-2_1.94.5-1.1_amd64.deb && sudo apt-mark hold libfprint-2-2 && sudo nala install fprintd libpam-fprintd
@dangovorenefekt
dangovorenefekt / blockmetatwitter.md
Last active July 5, 2024 08:04
Block Meta and Twitter (nginx)
@jaxFF
jaxFF / patch_v7.40_5000.1337
Last active July 5, 2024 09:58
Reverse engineered HWiNFO 12-hour shared memory limit patch
>hwinfo64.exe
000000000022005C:3D->90
000000000022005D:00->90
000000000022005E:2E->90
000000000022005F:93->90
0000000000220060:02->90
0000000000220061:0F->E9
0000000000220062:86->81
0000000000220063:80->00
@kconner
kconner / macOS Internals.md
Last active July 7, 2024 19:42
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@ikr4-m
ikr4-m / install.sh
Created June 25, 2022 10:04
Hyper-V Enhanced Session for Debian
#!/bin/sh
# This script based on linux-vm-tools for Ubuntu 22.02.
# Thanks to https://github.com/Hinara/linux-vm-tools/ to script
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
@iosifnicolae2
iosifnicolae2 / Readme.md
Last active March 12, 2024 19:42
Youtube is Boring

How To Make Youtube Less Boring

Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):

(()=>{
    markAllVideosAsNotBeingInteresting({
        iterations: 1
    });
})();
@nitred
nitred / optimal_mtu.md
Last active July 16, 2024 11:51
Wireguard Optimal MTU

About

  • I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
  • I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
  • Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.

Testing

  • On WG server, I started an iperf3 server
  • On WG peer, I wrote a script that does the following:
    • wg-quick down wg0
  • Edit MTU in the /etc/wireguard/wg0.conf file