I hereby claim:
- I am vi on github.
- I am vi0oss (https://keybase.io/vi0oss) on keybase.
- I have a public key whose fingerprint is 5CF2 87F9 4EE8 ECD6 B68A B0AC 0FF5 8BF9 3D7B 965F
To claim this, I am signing this object:
#!/usr/bin/env -S cargo +nightly -Zscript | |
//! Convert Twitch subtitles exported as CSV from https://www.twitchchatdownloader.com to srt format | |
//! | |
//! ```cargo | |
//! [package] | |
//! edition="2021" | |
//! [dependencies] | |
//! csv = "1" |
#!/usr/bin/env swift | |
// Based on https://github.com/chbrown/macos-pasteboard/issues/8#issuecomment-906537204 | |
import Cocoa | |
import Foundation | |
let pasteboard: NSPasteboard = .general | |
let dataTypeName : String = "public.html" |
[package] | |
name = "hackyws" | |
version = "0.1.1" | |
edition = "2021" | |
[dependencies] | |
anyhow = "1.0.66" | |
async-tungstenite = "0.18.0" | |
flume = "0.10.14" |
[package] | |
name = "hackyws" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
anyhow = "1.0.66" | |
async-executor = "1.5.0" | |
async-tungstenite = "0.18.0" |
#!/bin/bash | |
set -e | |
TOKEN=... | |
USERNAME=... | |
D=$(mktemp -d) | |
cd "$D" | |
P=1 |
I hereby claim:
To claim this, I am signing this object:
Let's list here crates that enhance Rust as a language.
It not "batteries" like in stdx, but Rust-specific crates for workarounds for various missing features and experimental ideals from non-accepted/postponed RFCs, or just hacky tricks.
The list is supposed to contain (mostly) crates that are internal to Rust, not ones for making Rust deal with "external world" like other languages bindings, file formats, protocols and so on.
Primary focus should be on crates that are not easy to find by conventional means (e.g. no algorithm name, format or protocol to search for).
Note that quality of the listed crates may vary from proof-of-concept to stable-and-widely-used.
#!/bin/bash | |
S=$(identify "$1" | cut -d' ' -f 3-3) | |
IFS=x SS=($S) | |
W=${SS[0]} | |
H=${SS[1]} | |
ffmpeg -v warning -i "$1" -pix_fmt yuva444p -f rawvideo - | ffmpeg -v warning -pix_fmt gray -s ${W}x$((H*4)) -f rawvideo -i - -y "$2" |
#!/bin/bash | |
if [[ -z "$1" || "$1" == --help || "$1" == "-?" ]]; then | |
echo "Usage: mvimg_play MVIMG_20190806_183324.jpg [other files]" | |
echo "Plays Google's Motion Photo using mpv. Depends on exiftool, mktemp, bash and mpv." | |
exit 0 | |
fi | |
FOUND=0 | |
ARGS=() |
#!/bin/bash | |
IN=$1 | |
OUT=$2 | |
true ${SD_PARAMS:="-55dB:d=0.3"}; | |
true ${MIN_FRAGMENT_DURATION:="20"}; | |
export MIN_FRAGMENT_DURATION | |
if [ -z "$OUT" ]; then |