Skip to content

Instantly share code, notes, and snippets.

View Coldblackice's full-sized avatar

Coldblackice

  • NYC
View GitHub Profile
@Coldblackice
Coldblackice / ksl.py
Created July 19, 2024 06:39 — forked from blakev/ksl.py
Command line application to search KSL Classifieds
import re
import argparse
import concurrent.futures
import string
from collections import namedtuple
from urllib.request import urlopen
from urllib.parse import urlencode
from bs4 import BeautifulSoup
tags:6QDsHYbi0pfKCIiwAzhpUt === ["jazz","fusion","[year:2023]","[artist:fox-capture-plan]"]
tags:48YF4IQfvdb676aMQeFTDi === ["pop","pop/city-pop","japan","[year:1992]","[artist:Anri]"]
tags:3XY69YtPf4qaqdAq7ugLA2 === ["anime","media","anime/studio/david-production","anime/jojo","jojo","[year:2019]","[artist:Yugo-Kanno]"]
tags:2dTMCCGpEDmRVB1BfA6CuZ === ["jazz","gypsy","[year:1956]","[artist:Django-Reinhardt]"]
tags:5EsBMVs7uhsyaqbuRNo8dV === ["media","game","game/company/square-enix","game/series/ff-final-fantasy","game/series/ff-final-fantasy/main","game/series/ff-final-fantasy/main/14","[year:2010]","[artist:Masayoshi-Soken]","[artist:Nobuo-Uematsu]","[artist:Naoshi-Mizuta]"]
tags:6Oi9GZyWYSnxh47e4zvM8S === ["media","game","game/company/sony","game/company/dev/naughty-dog","game/series/uncharted","[year:2011]","[artist:Greg-Edmonson]"]
tags:15EAWJhaIabtt58SPV6tqe === ["jazz","fusion","[year:1988]","[artist:CASIOPEA]","[by:Albertus-Cilliers]"]
tags:4bhaW9mc1J6eeCLV1ETX6i === ["media","game","game/indi
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-delaypageload - Enable early-out for known page loads
@Coldblackice
Coldblackice / Skins_Objects.json
Created May 15, 2024 15:48 — forked from segg21/Skins_Objects.json
300+ Array/Object list of Rust Skins Per Item. (Non Accepted Skins)
{
"fun.guitar": [
1287805625,
814874910,
1186248895,
1196457681,
937928933,
843572627,
877194688,
843693036,
@Coldblackice
Coldblackice / Skins.json
Created May 15, 2024 15:44 — forked from Krispywafers/Skins.json
All Rust skin ID's for Umod Skins plugin
{
"Command": "skin, skins, skinbox",
"Skins": [
{
"Item Shortname": "fun.guitar",
"Skins": [
0,
809801196,
826914904,
809938266,
@Coldblackice
Coldblackice / delete-likes-from-twitter.md
Created April 26, 2024 10:45 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@Coldblackice
Coldblackice / Delicious2Diigo.java
Created April 26, 2024 08:49 — forked from lindenb/Delicious2Diigo.java
Save bookmarks from delicious to Diigo.com using the Diigo API.
/**
* Delicious2Diigo
*
* Author:
* Pierre Lindenbaum
* http://plindenbaum.blogspot.com
*
* Motivation:
* save bookmarks from delicious to diigo using the Diigo API.
*
@Coldblackice
Coldblackice / diigo
Created April 26, 2024 08:38 — forked from xbourn/diigo
/* Mozilla Ubiquity Command for diigo, currently only support add bookmark.
* Some code from https://ubiquity.mozilla.com/standard-feeds/social.js
*/
var store = Application.storage;
const diigo_CUR_LOGIN = "ubiquity_diigo_cur_login";
var Choices = {"yes": "y", "no": "n"};
var noun_type_share = {
_name: "yes/no",
suggest: function( text, html ) {
@Coldblackice
Coldblackice / TkinterTemplate.py
Created April 25, 2024 00:12 — forked from RamonWill/TkinterTemplate.py
Tkinter GUI template
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
"""
Useful Links:
https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter Most useful in my opinion
https://www.tutorialspoint.com/python/python_gui_programming.htm
https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html
@Coldblackice
Coldblackice / offset.md
Created April 21, 2024 11:40 — forked from hexcowboy/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