Skip to content

Instantly share code, notes, and snippets.

View Adhjie's full-sized avatar
🎯
Focusing

Adi Adhjie

🎯
Focusing
View GitHub Profile
@Adhjie
Adhjie / youtube_formats.md
Created December 31, 2024 13:30 — forked from MartinEesmaa/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Last updated: December 2024

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

@Adhjie
Adhjie / user.js
Created December 13, 2024 22:05 — forked from brainfucksec/user.js
user.js - brainfucksec
/*********************************************************************
*
* Name: user.js | brainfucksec
* Date: 2024-10-20
* Version: 0.23.0
* Descr.: Mozilla Firefox configuration file: `user.js`
* URL: https://gist.github.com/brainfucksec/68e79da1c965aeaa4782914afd8f7fa2
* Maintainer: brainf+ck
*
* INFO:
@Adhjie
Adhjie / user.js
Created December 13, 2024 10:55 — forked from AetherEternity/user.js
Silent firefox
// Mozilla User Preferences
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile (create it if it doesn't exist).
//
// Profile folder location on different systems:
// Windows: C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default
// Mac OS X: Users/<username>/Library/Application Support/Firefox/Profiles/xxxxxxxx.default
// Linux: /home/<username>/.mozilla/firefox/xxxxxxxx.default
@Adhjie
Adhjie / firefox-user.js
Created December 13, 2024 10:53 — forked from ryandaniels/firefox-user.js
Firefox user.js privacy and optimization settings
/*
* Open profile dir - find in about:support or about:profiles
* Copy this file into your profile directory.
* Add changes to this file. Save file.
* Restart Firefox. Below overrides will be loaded.
* Close Firefox and open prefs.js to confirm changes merged there.
* NOTE: only non-default values will be saved to prefs.js
*
*/
@Adhjie
Adhjie / Compile Mainline Kernel (5.15.0) from WSL2.md
Created December 13, 2024 10:51 — forked from oleksis/Compile Mainline Kernel (5.15.0) from WSL2.md
Steps for compile Mainline Kernel Linux using WSL2

Compile Mainline Kernel for WSL2

Steps for compile Kernel Linux 5.15.0

Actual Kernel

$ uname -a
Linux DESKTOP-ID 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux

Work Dir linux

@Adhjie
Adhjie / WSL2GUIWSLg-XWayland-en.md
Created December 13, 2024 10:48 — forked from tdcosta100/WSL2GUIWSLg-XWayland-en.md
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@Adhjie
Adhjie / docker-in-windows.md
Created December 13, 2024 10:42 — forked from gorshkov-leonid/docker-in-windows.md
Docker in Windows without Docker Desktop