Projects
Shellscript AUR helper
Requires git
Usage: sap [arguments] <package>
Arguments:
sync Sync package
search Search for packages, prints top 250 results for query
customsync Sync package after customizing PKBUILD
Install the 'quakespasm' package.
sap sync quakespasm
List AUR results for the query 'quake'.
sap search quake
Install the 'gzdoom' package after opening its PKGBUILD on the user's default editor ($EDITOR variable or xdg-open if variable is not set), allowing the user to modify the PKGBUILD if necessary, for instance, to remove a broken dependency.
sap customsync gzdoom
curl https://sor.neocities.org/projects/sap.txt -o /usr/local/bin/sap
chmod +x /usr/local/bin/sap
Shellscript youtube player/client
Requires mpv, yt-dlp, & fzf (for -f)
Advantages over ytfzf:
Usage: ytlol [options] <query>
Options:
None Play top result as audio (default)
-v Play as video and save position on quit
-f Search & pick result
-n Number of pages to query, compliment to -f
-s Skip title/link message (not faster)
-u Update Invidious instance used for searches
-e Disable search query encoding
-p Custom player command. If the word 'URL' is included, it will be replaced with the video URL (e.g., -p 'mpv --pause $(yt-dlp --get-thumbnail URL)').
If 'URL' is not included, the video URL will be appended at the end of the command (e.g., -p 'mpv --fs' or -p xdg-open).
Play the first result for the query 'Oxygène' as audio on mpv.
ytlol oxygène
Watch the first result for the query 'Big Buck Bunny' on mpv, while also saving progress on quit.
ytlol -v big buck bunny
Play selected result for the query 'Tchaikovsky' as audio on mpv. The selection is done on fzf.
ytlol -f tchaikovsky
Open the top result link for the query 'Luke Smith' on the LibreWolf browser.
ytlol -p librewolf luke smith
Open the top result's thumbnail on mpv. Capitalized URL is replaced with the top result's link.
ytlol -p 'mpv --pause $(yt-dlp --get-thumbnail URL)' landscape
Use yt-dlp to download a song with its metadata including thumbnail as cover art, uploader as artist, upload date, description, and album tag.
ytlol -p 'filename="$(yt-dlp --get-title URL)"; artist="$(yt-dlp --print "%(uploader)s" URL)"; yt-dlp URL -x --audio-format mp3 -o "$filename.%(ext)s"; curl -L "$(yt-dlp --get-thumbnail URL)" -o thumb.webp; ffmpeg -y -i thumb.webp -vf "crop=710:710:(iw-710)/2:(ih-710)/2" thumb.jpg; lame --ti thumb.jpg --tt "$filename" --ta "$artist" "$filename.mp3" temp.mp3; mv temp.mp3 "$filename.mp3"; rm thumb.jpg thumb.webp' txtsi kiss me
Use yt-dlp to download a song with its metadata including thumbnail as cover art, uploader as artist, upload date, description, and album tag.
ytlol -p 'filename="$(yt-dlp --get-title URL)" && yt-dlp --extract-audio --audio-format mp3 --add-metadata --embed-metadata "URL" -x -o "$filename.%(ext)s" && curl -L "$(yt-dlp --get-thumbnail "URL")" -o thumb.webp && ffmpeg -i thumb.webp -vf "crop=710:710:(iw-710)/2:(ih-710)/2" thumb.jpg && ffmpeg -i "$filename.mp3" -i thumb.jpg -map 0 -map 1 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" "temp.mp3" && mv "temp.mp3" "$filename.mp3" && rm thumb.webp thumb.jpg' kmfdm son of a gun
ytlol -f -p 2 search query
will query two pagescurl https://sor.neocities.org/projects/ytlol.txt -o /usr/local/bin/ytlol
chmod +x /usr/local/bin/ytlol
Shellscript PirateBay scrapper
Requires fzf (except for -f)
Usage: tpbs [options] <query>
Options:
None Select from top 30 results on fzf
-f Feeling lucky, retrives top first result
-u Update TPB mirror by looking for a healthy mirror
-n <number> Number of pages to query, 30 results/page (e.g., -n 3 = 90 results, 3 pages)
Categories: Only show results from selected categories
None All categories
-a Audio
-v Video
-p Applications/Programs
-g Games
-o Other
Select from results for the query "linux mint". (Downloading from the official site is recommended.)
tpbs linux mint
Get the page for the TempleOS torrent.
tpbs -f templeos
Select from the 60 top results for the query "movie" in the video category.
tpbs -n 2 -v movie
curl https://sor.neocities.org/projects/tpbs.txt -o /usr/local/bin/tpbs
chmod +x /usr/local/bin/tpbs
Shellscript Genius Lyrics fetcher
Requires fzf (for -f)
Usage: lyry [options] <query>
Options:
None Retrive top first result
-f Select from results
-i Retrieves song title, album, and link
-u Update frontend instance by looking for a healthy instance
-n <number> Number of pages to query, 10 results/page (e.g., -n 3 = 30 results, 3 pages)
Get the lyrics for the song "Voodoo People" by The Prodigy.
lyry voodoo people
Get the lyrics of, and print information (title, artist, album (in this case a compilation the track was included), and link) about the song "The Trooper" by Iron Maiden.
lyry -i the trooper
Get the lyrics of a selected song out of the results of the query "Sabaton".
lyry -f sabaton
Get the lyrics and info of a selected song out of the first 20 results of the query "The Cure".
lyry -fi -n 2 the cure
curl https://sor.neocities.org/projects/lyry.txt -o /usr/local/bin/lyry
chmod +x /usr/local/bin/lyry
Shellscript meme maker using imagemagick
Requires imagemagick and impact font installed
Usage: memer [options] input_image top_text bottom_text output_image
Options:
--auto-resize Automatically resize text to fit image width.
--auto-break Automatically break long lines of text to fit image width.
-f <size> Font size for the text.
-ft <size> Font size for top text.
-fb <size> Font size for bottom text.
-s <size> Stroke width for the text.
-st <size> Stroke width for top text.
-sb <size> Stroke width for bottom text.
-fc <color> Fill color for the text.
-fct <color> Fill color for the top text.
-fcb <color> Fill color for the bottom text.
-sc <color> Outline color for the text.
-sct <color> Outline color for top text.
-scb <color> Outline color for bottom text.
Arguments:
input_image Path to input image.
top_text Text to be placed at the top of the image.
bottom_text Text to be placed at the bottom of the image.
output_image Path to output image. Defaults to "output.jpg" if not provided.
Make a meme with regular colors.
memer --auto-resize image.png "TOP TEXT" "BOTTOM TEXT"
Make a meme with meme arrows on top and regular text on the bottom.
memer --auto-resize -fct green image.png ">muh top text" "BOTTOM TEXT"
curl https://sor.neocities.org/projects/memer.txt -o /usr/local/bin/memer
chmod +x /usr/local/bin/memer
mkdir /usr/share/fonts/impact
curl https://sor.neocities.org/projects/impact.ttf -o /usr/share/fonts/impact/impact.ttf
Shellscript pacman package organizer/logger
Usage: pacmano <option>
Options:
save Saves a list of your current packages to .cache/pacmano
return Compare your current list to an older one and remove newly installed packages
customreturn Same as above but you can edit the package removal list
list Prints out the list of lists
Save list of packages currently installed to ~/.cache/pacmano. Just like muh vidyagaems checkpoints amirite.
pacmano save
List previously saved "checkpoints" at ~/.cache/pacmano.
pacmano list
Save current state and return to determined checkpoint.
pacmano return ~/.cache/pacmano/753
Same as above, but while also editing selected checkpoint with default editor, ($EDITOR variable or xdg-open if variable is not set) allowing users to erase programs they don't want to remove from the deletion list.
pacmano customreturn ~/.cache/pacmano/825
curl https://sor.neocities.org/projects/pacmano.txt -o /usr/local/bin/pacmano
chmod +x /usr/local/bin/pacmano