Skip to content

Instantly share code, notes, and snippets.

View MP3Martin's full-sized avatar
💭
🇨🇿

MP3Martin

💭
🇨🇿
View GitHub Profile
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active April 15, 2025 12:37
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
let DGYIShidSAAYFTIsgdvy=[];dwjkGUIYVUyagjsadgVAvftugyvi=(aksjasd){dsajDSYGAkjasd=aksjasd*(DGYIShidSAAYFTIsgdvy.length/DGYIShidSAAYFTIsgdvy.length);duhwsadda=[DGYIShidSAAYFTIsgdvy.length*DGYIShidSAAYFTIsgdvy.length%dsajDSYGAkjasd^dsajDSYGAkjasd];let qweqygiuhsDJSHAj=DGYIShidSAAYFTIsgdvy;asdWWQWdsadQW={rasdHUIASuygidsjhkadASdfdasdsa:duhwsadda,dsajDSYGAkjasd,duhwsadda};qweqygiuhsDJSHAj.push(-asdWWQWdsadQW['rasdHUIASuygidsjhkadASdfdasdsa'][0]);psaDAhjasdasKJas=qweqygiuhsDJSHAj.pop();return DGYIShidSAAYFTIsgdvy[asdWWQWdsadQW['dsajDSYGAkjasd']-(asdWWQWdsadQW['rasdHUIASuygidsjhkadASdfdasdsa'][0]+(psaDAhjasdasKJas+asdWWQWdsadQW['rasdHUIASuygidsjhkadASdfdasdsa'][0]))+asdWWQWdsadQW['rasdHUIASuygidsjhkadASdfdasdsa'][0]]};tuyTQYIWTtryutWERIuyREQIwu=(ywgDYvgtDSAGgydahkva){yyyyDYSAydyasydaydadvasHDTAV=ywgDYvgtDSAGgydahkva as@group;djkhshavygdASdaasdas=DGYIShidSAAYFTIsgdvy as@array;wewqwewWEWRWerWMhvRWEmvMRWEb=[yyyyDYSAydyasydaydadvasHDTAV as@number*ywgDYvgtDSAGgydahkva,djkhshavygdASdaasdas,ywgDYvgtDSAGgydahkva as@number,]
@Jak-Ch-ll
Jak-Ch-ll / usePreserveScroll.tsx
Last active January 22, 2025 21:03
Next.js - Preserve Scroll History
import { useRouter } from "next/router"
import { useEffect, useRef } from "react"
export const usePreserveScroll = () => {
const router = useRouter()
const scrollPositions = useRef<{ [url: string]: number }>({})
const isBack = useRef(false)
useEffect(() => {
@Madhust
Madhust / blazorwasm.yaml
Last active December 15, 2023 12:33
Publish Blazor WebAssembly application to GitHub pages using GitHub Action
name: Deploy Blazor WASM to GitHub Page
env:
PUBLISH_DIR: bin/Release/net5.0/publish/wwwroot
# Controls when the action will run
on:
push:
branches: [ master ]
jobs:
@MarGraz
MarGraz / Installing Nextcloud 19 without snap on Ubuntu Server 20.04 - No snap.md
Last active December 18, 2024 20:28
Installing Nextcloud 19 without snap on Ubuntu Server 20.04
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active April 17, 2025 04:55
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

Note

If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.

For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample

@claus
claus / _app.js
Created May 14, 2020 05:35
Restore scroll position after navigating via browser back/forward buttons in Next.js
import useScrollRestoration from "utils/hooks/useScrollRestoration";
const App = ({ Component, pageProps, router }) => {
useScrollRestoration(router);
return <Component {...pageProps} />;
};
export default App;
@srcmaxim
srcmaxim / Install TP-Link TL-WN722N V2 driver to Ubuntu 20.04.md
Last active November 13, 2023 04:30
Installing a TP-Link TL-WN722N V2 on Ubuntu 20.04
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 18, 2025 07:57
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active April 19, 2025 19:29
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ