Skip to content

Instantly share code, notes, and snippets.

View essencesh's full-sized avatar

Essence essencesh

  • Istanbul, Turkey
  • 00:49 (UTC +03:00)
View GitHub Profile
@SerStars
SerStars / EnableDiscordHiddenThemes.md
Last active February 27, 2025 01:32
Enable Discords Hidden Darker and/or Midnight Themes

Enable Discords Hidden Darker and/or Midnight Themes

Note

There are 2 methods that allow you to enable these themes.
Options: Enabling the Experiment or using a script.

Experiments

This is one of the easiest methods but you'll need [Vencord][vclink] and install the [Experiments Plugin][vcpluginlink] or paste the script below to enable and view the "Experiments" tab.

Vencord
  1. Install [Vencord][vclink].
@Digital39999
Digital39999 / kickPusherTypes.ts
Last active July 1, 2025 04:10
Keep in mind that some of those might also be partial.
export type PusherEvents = {
// 'channel.id';
channel: {
FollowersUpdated: {
followersCount: string | number
channel_id: number
username: unknown
created_at: number
followed: boolean
}
@mimukit
mimukit / block_youtube_shots.md
Created December 6, 2022 18:33
Disable youtube shots on browser using ublock origin

How to block youtube shorts using ublock origin

  • Add the following script to your ad blocker. I used Ublock Origin (Dashboard > My Filters). It may work with other add-ons.
www.youtube.com##:xpath(//ytd-grid-video-renderer[descendant::a[contains(@href,"shorts")] and not(contains(@class,"shelf"))])
  • Click on Apply changes.
@intabulas
intabulas / deploy.md
Last active June 3, 2023 01:10
Deploying SurrealDB to Fly.io

These are the rough steps for getting a surrealdb instance running on fly.io and connecting to it. This is heavily based off of steps posted in the surrealdb discord by rvdende. View Origional Post.

These steps work just fine for the hobby (pay as you go) plan.

HEADS UP By default this will create an instance on a single shared cpu with 256m memory. This is pretty darn small to do anything but experiment, but its free. You can scale your instance to something more useable by visiting the https://fly.io/apps/<appname>/scale. Obviously scaling to larger instances will incur higher costs, please refer to fly.io pricing

Installing fly.io client

source: fly.io docs

@me-cafebabe
me-cafebabe / twrp-11-fastboot
Last active August 7, 2024 06:06
TWRP-11: Make fastboot (not fastbootd!) available to recovery (system/core/fastboot/Android.bp)
// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@sgarciav
sgarciav / pass.md
Last active October 21, 2025 19:57
Initialize your password store

About

Summarizing the instructions of the pass tool (as seen on its website).

Getting Started

Installation

Execute: $ sudo apt install pass

@FreddieOliveira
FreddieOliveira / docker.md
Last active October 25, 2025 08:17
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@wllmsash
wllmsash / assigning-static-ip-addresses-in-wsl2.md
Last active August 28, 2025 20:50
Assigning Static IP Addresses in WSL2

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@DesktopECHO
DesktopECHO / WSL2-PortForward.cmd
Created November 10, 2020 15:18
A simple CMD file to expose an open port in WSL2 to your entire LAN
@ECHO OFF
SET LXDISTRO=MyWSL2vm & SET WSL2PORT=3399 & SET HOSTPORT=3398
NETSH INTERFACE PORTPROXY RESET & NETSH AdvFirewall Firewall delete rule name="%LXDISTRO% Port Forward" > NUL
WSL -d %LXDISTRO% -- ip addr show eth0 ^| grep -oP '(?^<=inet\s)\d+(\.\d+){3}' > IP.TMP
SET /p IP=<IP.TMP
NETSH INTERFACE PORTPROXY ADD v4tov4 listenport=%HOSTPORT% listenaddress=0.0.0.0 connectport=%WSL2PORT% connectaddress=%IP%
NETSH AdvFirewall Firewall add rule name="%LXDISTRO% Port Forward" dir=in action=allow protocol=TCP localport=%HOSTPORT% > NUL
ECHO WSL2 Virtual Machine %IP%:%WSL2PORT%now accepting traffic on %COMPUTERNAME%:%HOSTPORT%
@mrintrepide
mrintrepide / AV1 Encode.md
Last active September 3, 2025 02:33
AV1 quick encode with SVT-AV1

SVT-AV1 is the fastest multithreaded AV1 encoder
You can download up to date BtbN ffmpeg build with latest STV-AV1 code.

Aom-av1 is the official av1 decoder/encoder but it's the slowest and lacks of a real massive multithreading.
Rav1e is a xiph encoder project. It's also very slow but you can use multithreading with tiles.
Dav1d is a veryfast AV1 VLC decoder project.

Svt-av1 is an heavy multithreading intel decoder and encoder. It produce good quality but bigger file size.
It can produce 8 and 10 bit video with CRF (default), CQP, VBR and CBR (test).
Two pass are also available with standalone SvtAv1EncApp but not in ffmpeg.