Skip to content

Instantly share code, notes, and snippets.

View maulvi's full-sized avatar
🏠
Working from home

maulvi

🏠
Working from home
View GitHub Profile
@DavidAce
DavidAce / nvidia-tdp.service
Last active April 16, 2024 05:49
Nvidia power limit at boot
[Unit]
Description=Set NVIDIA power limit above default
[Service]
Type=oneshot
ExecStartPre=/usr/bin/nvidia-smi -pm 1
ExecStart=/usr/bin/nvidia-smi -pl 275
@DevTrunk
DevTrunk / linux.bash
Created June 5, 2021 04:36
Two scripts for Windows and Linux to install aseprite
#!/bin/bash
(
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
echo "Download and install all necesarry things"
sudo apt-get install -y curl g++ cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
curl -L -o skia.zip https://github.com/aseprite/skia/releases/download/m81-b607b32047/Skia-Linux-Release-x64.zip
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active April 19, 2024 15:27
Files for PlayStation BIOS Files NA-EU-JP
@probonopd
probonopd / Wayland.md
Last active April 20, 2024 02:14
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

@simonwep
simonwep / blockadblock-blocker.tapermonkey.js
Last active September 30, 2023 14:32
Blocks BlockAdBlock scripts
// ==UserScript==
// @name BlockAdblock Blocker
// @version 1.0
// @namespace http://tampermonkey.net/
// @description Blocks block-adblock
// @match *://**/*
// @grant none
// @run-at document-start
// ==/UserScript==
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active April 8, 2024 23:18
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@epyonavenger
epyonavenger / arch_enable_bbr.md
Last active February 10, 2024 14:31 — forked from sendya/ArchLinux_Kernel4.13_enable_BBR.sh
Arch Linux - Enable BBR

Enabling BBR On Arch Linux 6.5.5+

Become Root
  • sudo su
Set Up sysctl Config File
  • echo "net.core.default_qdisc=fq_codel" >> /etc/sysctl.d/bbr.conf
  • echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.d/bbr.conf
Load Module
@softmoth
softmoth / README.md
Last active July 6, 2023 07:51
Using a proxy to avoid tether throttling

Using a proxy to avoid tether throttling

I use used to use my mobile phone for internet access. My provider's Unlimited data plan discouragesd tethering (using the phone as a hotspot), though, by throttling traffic it sees coming from other devices.

A fairly simple and robust solution is was to run a proxy server on the phone, and then set up the router to send all traffic through the proxy.

Bit rot warning

@logiclrd
logiclrd / ffmpeg film grain
Last active May 26, 2023 06:06
FFmpeg: Ultimate film grain
ffmpeg -i "HD Splice 1080p No Grain.mkv" -i "HD Splice 1080p No Grain.mkv" -filter_complex "
color=black:d=3006.57:s=3840x2160:r=24000/1001,
geq=lum_expr=random(1)*256:cb=128:cr=128,
deflate=threshold0=15,
dilation=threshold0=10,
eq=contrast=3,
scale=1920x1080 [n];
[0] eq=saturation=0,geq=lum='0.15*(182-abs(75-lum(X,Y)))':cb=128:cr=128 [o];
[n][o] blend=c0_mode=multiply,negate [a];
color=c=black:d=3006.57:s=1920x1080:r=24000/1001 [b];