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
Pillow
package
python3 -m pip install --upgrade Pillow
#!/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": { |
Open console and run this for 0px
width ads. (ads still working, adjust width size to suite your need)
document.querySelector("body > div.flexrow.app > div:nth-child(2)").setAttribute('style','position: fixed; top: 100vh')
document.querySelector("body > div.flexrow.app > div").setAttribute('style','width:100%')
document.querySelector("body > div.flexrow.app > div > div.flexrow > div.panelblock.mainblock").setAttribute('style','width:100%')
const style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.fixme { min-width:fit-content;overflow:unset; }';
document.querySelector("body > div.flexrow.app > div:nth-child(1) > div.flexrow").appendChild(style)