It's now located in an actual repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| // 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 = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| format = """ | |
| $username\ | |
| $hostname\ | |
| $directory\ | |
| $git_branch\ | |
| $git_commit\ | |
| $git_status\ | |
| $git_state\ | |
| $kubernetes\ | |
| $golang\ |
NewerOlder