Skip to content

Instantly share code, notes, and snippets.

View Coldblackice's full-sized avatar

Coldblackice

  • NYC
View GitHub Profile
@Coldblackice
Coldblackice / twitch_react_native.js
Created August 28, 2025 08:14 — forked from maxgfr/twitch_react_native.js
Twitch library using react-native (expo)
import { AsyncStorage } from 'react-native';
import { WebBrowser, AuthSession } from 'expo';
import {
TWITCH_CLIENT_ID,
TWITCH_SECRET_ID
} from 'react-native-dotenv'
const TWITCH_REDIRECT_URI= AuthSession.getRedirectUrl();
const TWITCH_BASE_URL="https://api.twitch.tv/kraken/";
@Coldblackice
Coldblackice / wmp_h.265_hevc.md
Created August 28, 2025 01:48 — forked from Aldaviva/wmp_h.265_hevc.md
Play H.265/HEVC videos in Windows Media Player (Classic) without a third-party codec pack or media player. Tested using Microsoft.HEVCVideoExtension_2.0.60091.0_x64__8wekyb3d8bbwe with WMP 12.0.20348.1311 on Windows Server 2022 21H2 and 12.0.22621.1105 on Windows 11 22H2.

Download

  1. Go to https://store.rg-adguard.net.
  2. Search for the HEVC Video Extensions from Device Manufacturer (Microsoft.HEVCVideoExtension) app by entering the following store URL into the search box and clicking the button.
    https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    
    • Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
  3. Download the AppxBundle file.
    • You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
  • If it tries to save as a filename that's just a GUID, you may copy the correct .AppxBundle filename and save it as that instead.
@Coldblackice
Coldblackice / offset.md
Created August 19, 2025 12:17 — forked from diousk/offset.md
Twitch Helix API - Get Video/VOD Offset and Comments from Clip ID

Since Twitch decomissioned API V5, there's no correct way to get the VOD offset for a clip. So I just inspected what the Twitch web app was doing and came up with a super cool hack.

I know this looks really complicated but really it just does two things. First it gets the clip information from the official API, then it uses Twitch GraphQL API to get the offset.

kimne78kx3ncx6brgo4mv6wki5h1ko is the Client ID that the Twitch web app uses. It can be used to access Twitch's GraphQL API (undocumented & not for public use). The postData variable contains a request and a sha256Hash. The sha256Hash is basically a job ID and may change in the future, but I added the current hash which should work for all clips as of posting this.

const clientId = "" // Put your Twitch Client ID here
const clientSecret = "" // Put your Twitch Client Secret here
@echo off
cls
dir
echo yolo
::exclude
::exit
@Coldblackice
Coldblackice / README.md
Created July 24, 2025 13:28 — forked from MichaelCurrin/README.md
Jekyll - how to build a REST API

Jekyll - how to build a REST API

Serve your data as static JSON

How to make a read-only JSON REST API using Jekyll.

This doesn't need any Ruby plugins - you just use some built-in templating features in Jekyll 3 or 4.

You will end up with a single JSON file contains data for all pages on the site, and another JSON file of just posts. Alternatively, you can replace every HTML page and post with a JSON version.

@Coldblackice
Coldblackice / twitchtest.txt
Created July 16, 2025 05:52 — forked from lazarusjames/twitchtest.txt
CSS Chatbox Full Username
@import url(https://fonts.googleapis.com/css?family=Martel:700);
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
@Coldblackice
Coldblackice / enable-shadowplay-task.xml
Created July 2, 2025 12:45 — forked from schlarpc/enable-shadowplay-task.xml
Enable ShadowPlay on computer unlock (RDP fix)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2021-01-08T12:52:30.0596384</Date>
<Author>MUFFIN\User</Author>
<URI>\Enable ShadowPlay</URI>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Enabled>true</Enabled>
@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==