Skip to content

Instantly share code, notes, and snippets.

View Coldblackice's full-sized avatar

Coldblackice

  • NYC
View GitHub Profile
@Coldblackice
Coldblackice / fast_firefox.md
Created June 4, 2025 06:39 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@Coldblackice
Coldblackice / SteamRedeemKeys.js
Created June 2, 2025 09:21 — forked from makazeu/SteamRedeemKeys.js
Steam Batch Redeem Keys for Tampermonkey
// ==UserScript==
// @name SteamRedeemKeys
// @namespace https://gist.github.com/zyfworks/ccb12bd87f09cf49d0a3465d167bece9
// @version 1.5.0
// @description Steam网页激活 —— 批量激活
// @author Makazeu
// @match https://store.steampowered.com/account/registerkey
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==
@Coldblackice
Coldblackice / WindowsBoot.md
Created May 29, 2025 20:24 — forked from drodsou/WindowsBoot.md
Windows boot related commands

WINDOWS 10 BOOT TROUBLESHOOTING 😥

NO-HOPE WARNING: There is a HUGE probability that none of these things or the recovery options will bring back your Windows 10 to life. Also become aware that you CAN'T "reinstall preserving your data" from the installation DVD if your PC doesn't boot already. Great for you Microsoft...

Tips

  • Windows 10 has its small boot partition (which must be the "active" one -see diskpart or diskmgmt.msc- with a \boot\bcd file where the boot options of bcdedit are stored

  • Booting from installation DVD / recover usually c: and d: are swapped from normal boots (being c: the boot partition and d: where windows\system is, so don't freak out

@Coldblackice
Coldblackice / w10_bcd_error_0xc0000098.md
Created May 29, 2025 20:21 — forked from diffficult/w10_bcd_error_0xc0000098.md
Windows 10 Error: BCD missing - error 0xc0000098

Fixing Boot Error 0xc0000098 on Windows 10 (8 & 7)

Method 1: Run Automatic/Startup Repair

  1. Insert the Windows 10 bootable installation DVD and restart your PC.

  2. When prompted to Press any key to boot from CD or DVD, press any key to continue.

  3. Select your language preferences, and click Next. Click Repair your computer in the bottom-left.

@Coldblackice
Coldblackice / decryptchromecookies.py
Created May 24, 2025 11:19 — forked from GitHub30/decryptchromecookies.py
Simple Decrypt Chrome/Firefox Cookies File (Python 3) - Windows
import sqlite3
def get_chrome_cookies(db=None):
import json
from base64 import b64decode
from win32.win32crypt import CryptUnprotectData # pip install pywin32
# should use Cryptodome in windows instead of Crypto
# otherwise will raise an import error
from Cryptodome.Cipher.AES import new, MODE_GCM # pip install pycryptodomex
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <Shlobj.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
bool replaceAllInFile(const TCHAR* filePath)
import os
import time
import urllib.parse
import requests
import json
from slugify import slugify
import logging
from nltk.tokenize import sent_tokenize
@Coldblackice
Coldblackice / README.md
Created February 23, 2025 15:35 — forked from EchtkPvL/README.md
OBS Twitch Hype Train Overlay

OBS Twitch Hype Train Overlay

With these settings, you can show the status of your Hype Train in your livestream. Just add a browser source in OBS with the following settings:

URL: https://www.twitch.tv/popout/<channelname>/chat?darkpopout

With: min. 500

Height: min. 150

@Coldblackice
Coldblackice / AuthyToOtherAuthenticator.md
Created December 31, 2024 05:14 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.