Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Batch processor for assorted media yielding web playback compatible mp4s
#basic summary of args
#batch-ffmpegger.sh tuningparameter [FILES]... [trimstring]
#tuningparameter - ffmpeg's x264 tuning parameter. should be "film" or "animation" most likely.
# (googlit for the other options which you probably don't need)
#FILES - however many files you want. Doesn't do directories, use a wildcard/*.mkv etc
#trimstring - an optional custom string to trim the torrent-name and resolution stuff off the end
# of the file. a regex down below catches most of it though
# if the last argument isn't an existing file, it will be treated as the trimstring
@Eltiech
Eltiech / fireview
Last active August 29, 2015 14:09
fireview
#!/bin/bash
#Author: Malsententia <[email protected]>
#Purpose: Uses a chromeless firefox window as an image viewer.
# Inferior to most other image viewers, but good for APNGs
# Opens kinda fast if you already have firefox running, I guess?
#Usage: fireview image.ext
#Requires: file - gets the resolution
# firefox - duh
# xrandr - determines monitor resolution for max window size
# xdotool - figures out which monitor your mouse is on, for above
@Eltiech
Eltiech / .mancolor.sh
Last active April 2, 2025 16:53
Procedurally generated man pages; each man page gets its own color scheme.
#Author: Malsententia <[email protected]>
#Purpose: Colorized man pages, with random themes seeded by
# the command and/or section. That is, every man page
# has its own consistent color scheme. For example
# man tar is always yellow, green, and blue, man less
# is always pink, blue, and yellow, etc.(on zsh, anyway)
#Note: Colorization will differ between bash and zsh, since their
# RNGs are different
#Requires: bash or zsh(may support others), and perl
#Setup: Name it .mancolor.sh, source it in your bashrc/zshrc,