Skip to content

Instantly share code, notes, and snippets.

View petersjt014's full-sized avatar
🙃

Josh Peters petersjt014

🙃
View GitHub Profile
@nkh
nkh / tmsu_scim
Created October 25, 2022 12:31
tmsu sc-im interface for bash
L=({A..Z})
ToAA() { AA= ; local i=$1 ; (($i == 0)) && AA='@' ; while ((i)) ; do AA="${L[((--i % 26))]}$AA" ; ((i /= 26)) ; done ; }
st()
{
cat <<EOF
color "type=DEFAULT fg=WHITE bg=DEFAULT_COLOR"
color "type=HEADINGS fg=CYAN bg=BLACK bold=0"
color "type=HEADINGS_ODD fg=CYAN bg=BLACK bold=0"
#!/bin/bash
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
msgtype=m.text
homeserver=<homeserver>
room=<room id>

Get/set ID3 meta tags using ffmpeg

A quick guide on how to read/write/modify ID3 metadata tags for audio / media files using ffmpeg.

FFmpeg has a free-form command line option that allows the user to specify key-value-pairs for encoding metadata. Let's take a look.

1. Read ID3 metadata

To list all global metadata tags for a media file, just set an input but no output file.

@heimp
heimp / unordered_list_of_programming_languages.txt
Last active May 26, 2024 17:26
just names and urls of various programming languages that seem kind of interesting to me
Possibly Interesting Programming Languages
Possibly Unmanaged? (By This I Mean "Not Garbage Collected?")
--------------------------------------------
Rust https://www.rust-lang.org/
Pascal http://freepascal.org/
Ada http://www.adaic.org/
ParaSail http://parasail-lang.org/
BitC https://github.com/repos-bitc/bitc
Clay http://claylabs.com/clay
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"