Skip to content

Instantly share code, notes, and snippets.

View Coldblackice's full-sized avatar

Coldblackice

  • NYC
View GitHub Profile
@Coldblackice
Coldblackice / Repair-ServicingError_800f082f.ps1
Created June 9, 2025 15:29 — forked from Ioan-Popovici/Repair-ServicingError_800f082f.ps1
Repairs error 0x800f082f~ encountered during offline servicing by setting the HKLM:\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending\Exclusive value to 0.
<#
.SYNOPSIS
Repairs error 0x800f082f~ encountered during offline servicing.
.DESCRIPTION
Repairs error 0x800f082f~ encountered during offline servicing by setting the
HKLM:\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending\Exclusive value to 0.
.INPUTS
None.
.OUTPUTS
None.
@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