Skip to content

Instantly share code, notes, and snippets.

View weskerty's full-sized avatar
🤔
Nihilizando Cosas

laWiskaPY weskerty

🤔
Nihilizando Cosas
View GitHub Profile

Instructions for YouTube:

There is a small chance your account could be banned. DO NOT login with an important Google account (such as an account you use for Gmail)

If yt-dlp is asking you to log in, first try running --update-to nightly to see whether it fixes the issue!

Export cookies automatically (this works on MacOS and Linux, but it only works on Windows if you use Firefox):

  1. Log into YouTube in your browser
@Tarkiin
Tarkiin / silent.js
Last active April 12, 2025 16:36
silent.js
const { bot, isAdmin, jidToNum } = require("../lib/")
const mutedUsers = new Set()
// Comando para silenciar usuario
bot(
{
pattern: "silent ?(.*)",
fromMe: true,
desc: "Silencia a un usuario y elimina sus mensajes automáticamente",
@CraftedRO
CraftedRO / windows_activation.md
Created May 31, 2024 23:53
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@kairusds
kairusds / 1-termux-adb.md
Last active October 29, 2025 18:41
Instructions for connecting Termux's android-tools adb to the current device via Wireless debugging and fixing phantom process killing

Install android-tools if you haven't already:

pkg update ; pkg upgrade
pkg install android-tools

adb pair 127.0.0.1:port
@Ghostbird
Ghostbird / _obsolete.md
Last active August 15, 2025 05:20
Build FFMPEG with NVIDIA hardware accelleration libraries on Debian 12. Includes non-free libnpp!

Obsolete

It is no longer necessary to use this script to have hardware acceleration in ffmpeg on Debian. The default Debian ffmpeg and dependencies now support this out of the box.

See: #gistcomment-5095112

@eNV25
eNV25 / hp-bios-update.md
Last active October 13, 2025 07:50
Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.

On a Linux system, the ESP is typically mounted on /boot/efi or /efi. Whithin you should also find a EFI directory, e.g. /boot/efi/EFI or /efi/EFI. This article assumes that the ESP is mounted on /efi and that the /efi/EFI directory exists. You can replace that with the mount point your system uses.

The HP-specific files are located in /efi/EFI/HP or /efi/EFI/Hewlet-Packard. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.

@dlqqq
dlqqq / ryzen_bug.md
Last active October 23, 2025 21:52 — forked from wmealing/C-states.md
AMD Ryzen "Freezing" Bug on GNU/Linux Systems

Random "Freezing" with AMD Ryzen CPUs

It seems that numerous GNU/Linux users (including myself) have been having issues with the system randomly "freezing" during light usage. From journalctl output and anecdotal accounts, it is speculated that the AMD Ryzen CPUs do not support other C-states for power management very well (at least on GNU/Linux distributions), and the freezing may be resolved by limiting the C-state of the CPU.

Possible Solution

Limiting the C-state of the CPU can be done through the addition of the following kernel boot parameter.

processor.max_cstate=1
@Fuwn
Fuwn / Animated-Favicon.js
Last active September 23, 2025 07:02
A simple way to use a .gif as a favicon.
// Before attempting, use https://gifmaker.me/exploder/ to cut .gif into each frame.
var favicon_images = [
'http://website.com/img/tmp-0.gif',
'http://website.com/img/tmp-1.gif',
'http://website.com/img/tmp-2.gif',
'http://website.com/img/tmp-3.gif',
'http://website.com/img/tmp-4.gif',
'http://website.com/img/tmp-5.gif',
'http://website.com/img/tmp-6.gif'
@takase1121
takase1121 / readme.md
Last active October 18, 2025 12:14
Use adb functions with Nox Player

If you ever need to use adb with Nox Player, you would probably just do adb devices and realize Nox Player's VM is not there. Here is a really simple command you need to do to use ADB on a Nox Player's VM.

adb connect 127.0.0.1:62001

Thats it. Do that and you'll find the VM when doing adb devices.

I don't have adb yet! Should I download it now?

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active October 27, 2025 14:28
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \