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 ChatGPT Temporary Chat Toggle | |
| // @namespace https://chatgpt.com | |
| // @version 1.0 | |
| // @description Double-tap Shift to toggle the temporary chat | |
| // @match https://chatgpt.com/* | |
| // @run-at document-idle | |
| // @grant none | |
| // @icon https://chatgpt.com/favicon.ico | |
| // ==/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
| #!/usr/bin/env python3 | |
| """ | |
| wa-dlp.py - Download or convert videos to MP4 for WhatsApp compatibility. | |
| This script uses yt-dlp to download a video (either from a URL or local file) and | |
| automatically checks if the video is already in a WhatsApp-compatible format: | |
| MP4 container with H.264 video and AAC audio. If the video meets these criteria, | |
| it is copied without re-encoding. If not, the script converts the video to MP4. |
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 | |
| if [[ $# -lt 1 ]]; then | |
| echo "Usage: $0 <video_file> [language_code]" | |
| exit 1 | |
| fi | |
| video_file="$1" | |
| base_name="${video_file%.*}" | |
| output_file="${base_name}.txt" |
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
| from scenedetect import detect, ContentDetector | |
| import srt | |
| import sys | |
| from datetime import timedelta | |
| video_file = sys.argv[1] | |
| subtitle_file = sys.argv[2] | |
| MAX_DIFF = 0.2 | |
| scenes = detect(video_file, ContentDetector()) |
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
| var xpath_FACE = "//*[contains(@class, 'sx_e5fb20')]" | |
| var FACE = document.evaluate(xpath_FACE, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
| FACE.click() | |
| var xpath_LOVE = "//img[@src='https://static.xx.fbcdn.net/images/emoji.php/v9/t24/1.5/28/1f970.png']" | |
| var LOVE = document.evaluate(xpath_LOVE, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
| LOVE.click(); |
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
| var xpath_CHECK = "//*[text()[contains(., 'Move to done')]]" | |
| var CHECK = document.evaluate(xpath_CHECK, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
| CHECK.parentElement.children[1].click(); |
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 sys | |
| from openpyxl import load_workbook | |
| WHITE = '0.0' | |
| COLOR_LEVEL = { | |
| '0.3499862666707358' : 0, | |
| '0.499984740745262' : 1, | |
| '-0.499984740745262' : 1, | |
| '-0.3499862666707358' : 2, |
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/python | |
| # execute: | |
| # wl-paste -w ~/scripts/wl-clipboard-filter.py | |
| # | |
| # install, add to ~/.config/sway/config: | |
| # exec "wl-paste -w ~/scripts/wl-clipboard-filter.py" | |
| import sys | |
| import subprocess | |
| from urllib.parse import urlparse |
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
| var goalWidth = "500px"; | |
| function observeAutocomplete(node) { | |
| var observer = new MutationObserver(function(mutations, observer) { | |
| mutations.forEach(function(mutation) { | |
| if(mutation.target.style.width != goalWidth) | |
| mutation.target.style.width = goalWidth; | |
| }); | |
| }); |
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
| <link rel="import" href="../../bower_components/polymer/polymer.html"> | |
| <link rel="import" href="../../bower_components/google-apis/google-maps-api.html"> | |
| <link rel="import" href="../../bower_components/paper-input/paper-input.html"> | |
| <dom-module id="google-map-autocomplete"> | |
| <template> | |
| <style> | |
| :host {display: block;} | |
| </style> |
NewerOlder