Skip to content

Instantly share code, notes, and snippets.

Avatar
🔴
Streaming coding sessions on Twitch!

Jaid

🔴
Streaming coding sessions on Twitch!
View GitHub Profile
@Jaid
Jaid / piaRegions.txt
Last active Nov 22, 2021
PrivateInternetAccess regions (Name, Region ID, IP address)
View piaRegions.txt
1 : 0.011374 212.102.57.1 de-frankfurt - DE Frankfurt
2 : 0.017354 212.102.37.107 swiss - Switzerland
3 : 0.017527 143.244.41.188 nl_amsterdam - Netherlands
4 : 0.020437 212.102.63.129 uk - UK London
5 : 0.020954 138.199.28.61 uk_2 - UK Streaming Optimized
6 : 0.021030 212.102.38.212 czech - Czech Republic
7 : 0.021284 46.246.106.34 denmark_2 - DK Streaming Optimized
8 : 0.021931 188.126.94.66 denmark - DK Copenhagen
9 : 0.022281 185.232.21.26 belgium - Belgium
10 : 0.022785 156.146.60.129 austria - Austria
@Jaid
Jaid / gross.js
Created Oct 6, 2021
Analyze streamer earnings in Twitch leak
View gross.js
import {globby} from "globby"
import fs from "node:fs/promises"
import path from "node:path"
import * as fflate from "fflate"
import csvParse from "csv-parse"
import lodash from "lodash-es"
const twitchPayoutsFolder = "C:/Users/Jaid/Desktop/twitch-payouts/all_revenues"
let allGross = 0
@Jaid
Jaid / readme.md
Last active Sep 28, 2021
Topaz Video Enhance AI command line snippets
View readme.md

Snippets

Upscale x4

"$ProgramW6432/Topaz Labs LLC/Topaz Video Enhance AI/veai.exe" --output-format mov_proreshq -m amq-12 --scale 4 --input "$input"

With output

"$ProgramW6432/Topaz Labs LLC/Topaz Video Enhance AI/veai.exe" --output-format mov_proreshq -m amq-12 --scale 2 --input "$input" --output "$output"
@Jaid
Jaid / copypasta.md
Last active Oct 2, 2021
Things to copy and paste
View copypasta.md

Common

Quote (U+2019)

Non-breaking narrow space (U+202F)

English

@Jaid
Jaid / migratingRules.md
Last active Nov 20, 2021
ESLint rules for migrating projects from CommonJS to ESM
View migratingRules.md

ESLint rules

The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.

ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.

  • .eslint.json
{
@Jaid
Jaid / searchQueries.md
Last active Sep 21, 2021
Windows Explorer - Advanced search query examples
View searchQueries.md

Windows Explorer - Advanced search query examples

All folders

kind:folder

⚠️ This also finds zip-compress folders. Can be excluded:

@Jaid
Jaid / migrateEsm.md
Last active Oct 5, 2021
Migrate from CommonJS projects to ESM
View migrateEsm.md

debug

From

const debug = require("debug")(process.env.REPLACE_PKG_NAME)

To

import createDebug from "debug"
@Jaid
Jaid / gitBash16.png
Last active May 1, 2021
My personal Windows Terminal preferences
@Jaid
Jaid / Disable Window Shaking.reg
Created Apr 29, 2021
Disable window shaking (minimize gesture) on Windows 10
View Disable Window Shaking.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisallowShaking"=dword:1