Skip to content

Instantly share code, notes, and snippets.

View taw420's full-sized avatar
🎗️
taw420

taw420 taw420

🎗️
taw420
View GitHub Profile
@DinoChiesa
DinoChiesa / delete-youtube-shorts-watch-history.user.js
Created April 14, 2024 17:05
Tampermonkey script that removes watch history of youtube shorts
// ==UserScript==
// @name autodelete-Youtube-watch-history-shorts - youtube.com
// @namespace youtube
// @description automatically deletes watch history of shorts.
// @match https://myactivity.google.com/product/youtube/
// @grant none
// @version 0.1.0
// @run-at document-end
// @license Apache 2.0
// ==/UserScript==
@DinoChiesa
DinoChiesa / delete-watch-history-shorts.console.js
Last active March 9, 2026 17:37
Remove video shorts from YT Watch History
// orig: https://gist.github.com/miketromba/334282421c4784d7d9a191ca25095c09
// Paste the script into your console on this page: https://myactivity.google.com/product/youtube
const ENABLED = true;
const MIN_DURATION_MS = 1000 * 60 * 1.5; // 1:30 mins
const CHECK_FOR_CONFIRM_INTERVAL = 2000;
let CYCLE_INTERVAL = 1800; // Amount of time in MS to wait between deletion (more likely to fail with a small number)
let wantCycling = true;
const VERY_LONG_DURATION = MIN_DURATION_MS * 10;
@techtute
techtute / install_minecraft_bedrock_server.sh
Last active July 27, 2024 14:31
Minecraft Bedrock Server Setup Script
#!/bin/bash
#Set some variables
port='19132'
portv6='19133'
server='bedrock-server'
user='minecraft_user'
installation_dir="/opt/$server"
# Check if the script is being run with sudo privileges.
@awalsh882
awalsh882 / deleteYoutubeWatchHistory.js
Created December 13, 2023 12:50 — forked from miketromba/deleteYoutubeWatchHistory.js
Delete YouTube watch history with filter
const ENABLED = false // Keep this false while testing to verify that it's working correctly
const DELETE_INTERVAL = 1000 // Amount of time in MS to wait between deletion (more likely to fail with a small number)
// This filter should return a boolean (true == delete video, false == keep video)
const MIN_DURATION_MS = 1000 * 60 * 1.5 // 1:30 mins
const SHOULD_DELETE = videoElement => {
try {
// Get the duration string
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@jakecyr
jakecyr / main.py
Created May 19, 2023 19:25
A Python script to load all videos from a YouTube playlist and delete them from the playlist. Requires OAuth client_secrets.json file from the console.
import google_auth_oauthlib.flow
import googleapiclient.discovery
import googleapiclient.errors
def get_authenticated_service():
scopes = ["https://www.googleapis.com/auth/youtube"]
flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_secrets_file(
"client_secrets.json", scopes
@vt0r
vt0r / 0000000000_README.md
Last active May 11, 2024 20:07
NextDNS catch-all for UDM (+IPv6)
@joshuatz
joshuatz / run_examples.js
Last active February 24, 2026 18:16
Script to clean up YouTube history and bulk-delete videos that mess up the recommendation algorithm
(() => {
// With default shorts filter - dry run mode
new YouTubeHistoryCleaner(undefined, true);
// dryRunMode = off (actually delete stuff)
new YouTubeHistoryCleaner(undefined, false);
// With custom filter, preserving history for certain accounts
const approvedAuthors = [
@3ayazaya
3ayazaya / starship.toml
Last active February 7, 2026 14:32
My Starship terminal configuration file
#format = """
#[╭─user───❯](bold blue) $username
#[┣─system─❯](bold yellow) $hostname
#[┣─project❯](bold red) $directory$rust$git_branch$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
#[╰─cmd────❯](bold green)
#"""
#format = '$all'
[localip]
ssh_only = false
@dungdm93
dungdm93 / starship.toml
Created November 19, 2021 10:40
starship config
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_status\
$git_state\
$kubernetes\
$golang\