Posted as a comment in this stackexchange question
https://unix.stackexchange.com/questions/419761/webp-animation-to-gif-animation-cli
Usage:
- Make sure python3 is installed.
- Install
Pillowpackage
python3 -m pip install --upgrade Pillow
| #!/usr/bin/env osascript -l JavaScript | |
| // verify this logic using "Accessibility Inspector" of macOS if it's not working | |
| TARGET_NOTIFICATION_TITLE_AND_BODY = ["<Set title here>", "<Set description here>"]; | |
| // generic utility functions | |
| // ------------------------------------------------- | |
| // This function takes an element and returns a string array of all its immediate text children | |
| function findAllTextChildren(element) { |
| #!/usr/bin/env python3 | |
| import pysrt | |
| from sys import argv | |
| from collections import Counter | |
| import unicodedata as ud | |
| # Function that detects the dominant writing direction of a string | |
| # https://stackoverflow.com/a/75739782/10327858 | |
| def dominant_strong_direction(s): | |
| count = Counter([ud.bidirectional(c) for c in list(s)]) |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>dependencyBrowseTree</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/jstree.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> | |
| <script src="tree.data.js"></script> |
| #!/bin/bash | |
| # Description: Split an m4b into its chapters. No recoding is done, just splitting | |
| # Usage: m4b_split.sh $input_file $output_dir/ | |
| # Requires: ffmpeg, jq | |
| # Author: Hasan Arous, Nima Taheri | |
| # License: MIT | |
| in="$1" | |
| out="$2" | |
| splits="" |
| import sttp.client3._ | |
| import sttp.model.Uri | |
| import sttp.tapir._ | |
| import sttp.tapir.server.netty.{NettyFutureServer, NettyFutureServerOptions, NettyOptions} | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.concurrent.duration._ | |
| import scala.concurrent.{Await, Future, blocking} | |
| import scala.util.{Failure, Success} |
| <html> | |
| <script> | |
| async function upload() { | |
| let files = document.getElementsByName("file")[0].files; | |
| console.assert(files.length > 0) | |
| const content = files[0]; | |
| const res = fetch("/upload", { | |
| method: "PUT", | |
| body: content, | |
| duplex: 'half' |
| // ==UserScript== | |
| // @name Add Instagram Video Progressbar | |
| // @namespace https://greasyfork.org/en/users/85671-jcunews | |
| // @version 1.0.4 | |
| // @license GNU AGPLv3 | |
| // @author jcunews | |
| // @description Add a video playback progressbar at bottom of an Instagram video. This script also disables video looping. Both are configurable. | |
| // @match *://www.instagram.com/* | |
| // @exclude *://www.instagram.com/stories/* | |
| // @grant none |
| #!/bin/sh | |
| echo "Hello world!" | |
| echo "Nima's test script is running" |
Posted as a comment in this stackexchange question
https://unix.stackexchange.com/questions/419761/webp-animation-to-gif-animation-cli
Usage:
Pillow packagepython3 -m pip install --upgrade Pillow
| { | |
| "name": "nima-scripts", | |
| "version": "1.0.0", | |
| "@comment dependencies": [ | |
| "// argparse: powerful argument parser", | |
| "// https://github.com/nodeca/argparse", | |
| "// subtitle: subtitle parser", | |
| "// https://github.com/gsantiago/subtitle.js" | |
| ], | |
| "dependencies": { |