Skip to content

Instantly share code, notes, and snippets.

View sjain882's full-sized avatar

sjain sjain882

  • United Kingdom
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@Atulin
Atulin / README.md
Last active November 10, 2024 19:34
FxTwitter Copy

Twitter Copy Fx Link

image

This script adds a new button to Twitter posts. Clicking it, copies a TwitFix link to your clipboard, and strips any trancking data from it because might as well.

@goyuix
goyuix / HDR-to-SDR.txt
Created July 16, 2021 23:22
How to use FFMPEG to convert HDR video to SDR (standard dynamic range) while (mostly) retaining the same depth and intensity of colors, without washed-out colors, as the original HDR10+ video.
ffmpeg -i video-input.mp4 -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v libx265 -crf 22 -preset medium -tune fastdecode video-output.mp4
@isovel
isovel / example_rpc.py
Last active September 5, 2023 06:47
Simple Python RPC Script
__authors__ = 'isovel'
## Don't forget to install the dependency!
from pypresence import Presence # pip install pypresence
import time
client_id = "832598829810581534" # Replace with the client ID of your application
RPC = Presence(client_id) # Create the presence object with our client ID
RPC.connect() # Init the RPC connection
@valinet
valinet / README.md
Last active June 10, 2026 22:53
Get dark command windows all the time in Windows

Case study: Get dark command windows all the time in Windows

TL;DR

  1. Make a copy conhost.exe from System32.
  2. Open it with a hex editor (I use HxD).
  3. In HxD, go to Search - Find - Hex-values.
  4. Search for 881d9e530a004885c07477ff15b32e08009084c0.
  5. In Windows 10 version 2004, replace ff15b32e0800 with 909090909090. If using Windows 10 version 20H2, replace ff15b32e08009084 with 9090909090909090.
  6. Save file and copy it back to System32 (take ownership of original conhost.exe in order to replace it).
  7. Profit!
@tcartwright
tcartwright / Start-ProcessEx.ps1
Last active July 19, 2025 19:22
POWERSHELL: Start Process, capturing output events
function Run-Process {
param(
[Parameter(Mandatory=$true)]
[string]$Exe,
[string]$ExeArgs,
[switch]$DoNotWriteLog,
[string]$LogFormat = "yyyy-MM-dd HH:mm:ss.ffff"
)
Write-Verbose "From powershell running: $exe $exeArgs"
@C-Duv
C-Duv / steamdb-bookmarklet.js
Created June 10, 2019 17:22
Bookmarklet to open Steam Database (steamdb.info) page from Steam Store (store.steampowered.com) page
/**
How to use:
1/ Use the following line as the "URL" of a bookmark in your web browser.
2/ Place the bookmark in the bookmark bar for easy access.
3/ When on a steampowered.com page, click on the bookmark and the corresponding steamdb.info page will open.
*/
javascript:(function(){if (window.location.hostname == 'store.steampowered.com') {var pathMatch = window.location.pathname.match(/^\/(?<appType>(app|bundle|sub))\/(?<appId>\d+)\//);pathMatch && window.open('https://steamdb.info/' + pathMatch.groups.appType + '/' + pathMatch.groups.appId + '/?source=bookmarklet','_blank');}})();
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 2, 2026 08:14
Conventional Commits Cheatsheet
@Yousha
Yousha / .gitignore
Last active April 10, 2026 18:34
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump