Skip to content

Instantly share code, notes, and snippets.

View biast12's full-sized avatar
๐Ÿ‘€

Tobias biast12

๐Ÿ‘€
View GitHub Profile
@biast12
biast12 / README.md
Last active May 20, 2025 21:11
Convert flat dot-separated JSON keys into nested objects

Nest dot-separated JSON keys into nested dictionaries

A Python script to nest dot-separated keys in JSON files. Useful for converting flat key structures (like "foo.bar.baz": "value") into nested dictionaries ({"foo": {"bar": {"baz": "value"}}}).

What does it do?

  • Without a prefix: Nests all dot-separated keys in one or more JSON files.
  • With a prefix: Only nests keys that start with the given prefix, leaving the rest untouched.

Usage

@biast12
biast12 / README.md
Last active March 21, 2025 00:21
Top YouTube Music Songs Processor

Top YouTube Music Songs Processor

This Python script processes your YouTube Music watch history (extracted via Google Takeout) to generate a list of your most-played songs. It supports both .json and .html files and includes options to export the top songs in multiple formats (txt, json, csv) and visualize the top 10 most played songs.

Features

  • Supports JSON and HTML files: Automatically detects whether the input file is in JSON or HTML format.
  • Counts song plays: Extracts song titles and the number of times they were played.
  • Exports top songs: Saves the list of top songs to a .txt, .json, or .csv file.
@biast12
biast12 / AutoDisableReplyPing.user.js
Last active September 21, 2024 12:14
Disable Reply Ping Automatically
// ==UserScript==
// @name Disable Reply Ping Automatically
// @author Doggybootsy, Biast12
// @description Disable reply ping automatically in your discord!
// @icon https://www.google.com/s2/favicons?domain=discord.com
// @version 1.0.1
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/17c6941206797dae126540dd4bc93805
// @supportURL https://gist.github.com/biast12/17c6941206797dae126540dd4bc93805
// @updateURL https://gist.github.com/biast12/17c6941206797dae126540dd4bc93805/raw/AutoDisableReplyPing.user.js
@biast12
biast12 / DisableDiscordProfileDecorationsandEffects.user.js
Last active April 18, 2024 20:06
Disable Discord Profile Decorations and Effects
// ==UserScript==
// @name Disable Discord Profile Decorations and Effects
// @author Biast12
// @description Disable Discord Profile Decorations and Effects By Biast12
// @icon https://www.google.com/s2/favicons?domain=discord.com
// @version 1.0.4
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/19c2b6d52e63570641cecc2ecdc0136d
// @supportURL https://gist.github.com/biast12/19c2b6d52e63570641cecc2ecdc0136d
// @updateURL https://gist.github.com/biast12/19c2b6d52e63570641cecc2ecdc0136d/raw/DisableDiscordProfileDecorationsandEffects.user.js
@biast12
biast12 / viking.theme.css
Last active February 22, 2025 19:16
Viking Discord Theme
/**
* @name Viking
* @author Biast12
* @description Viking Discord Theme By Biast12
* @version 2.0.1
* @authorId 648679147085889536
* @authorLink https://twitter.com/Biast12
* @donate https://www.paypal.com/donate/?hosted_button_id=RWB2QFK7CKUM2
* @patreon https://patreon.com/Biast12
* @website https://biast12.info
@biast12
biast12 / RemoveTwitterBlue.user.js
Last active May 8, 2024 21:50
Remove Twitter Blue
// ==UserScript==
// @name Remove Twitter Blue
// @author Biast12
// @description Remove the Twitter Blue by Biast12
// @icon https://abs.twimg.com/favicons/twitter.ico
// @version 1.0.9
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621
// @supportURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621
// @updateURL https://gist.github.com/biast12/ded54dc2cc24583a3ef6d01a93760621/raw/RemoveTwitterBlue.user.js
@biast12
biast12 / Replace-twitter-logo.user.js
Last active May 17, 2024 17:35
Replaces the X logo with the old Twitter logo
// ==UserScript==
// @name Replaces the X logo with the old Twitter logo
// @description Replaces the X logo with the old Twitter logo by Biast12
// @icon https://abs.twimg.com/favicons/twitter.ico
// @version 1.0.6
// @author Biast12
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @supportURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @updateURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286/raw/Replace-twitter-logo.user.js