BASH-SNIPPETS(1)
๐ NAME ๐
okay so bestie, first things first: this page is bash-snippets(1) โ a collection of small bash scripts for heavy terminal users. that's it, that's the whole vibe. a whole lil squad of tiny bash scripts for people who basically live in their terminal ๐ซถ
like, if you're the kind of person whose tmux has tabs, this is your page. slay. let's go โจ
๐ TOOLS ๐
๐ง Cheat
Description: cheatsheets for quick information about multiple programming languages, plus terminal commands. it's giving "I forgot the syntax but I refuse to open a browser" ๐
Usage: cheat [flags] [command] or cheat [flags] [programming language] [subject]
-sโ does a search for the last argument rather than looking for an exact match ๐-iโ case insensitive search (we love a forgiving queen)-bโ word boundaries in search-rโ recursive search-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ Special Pages
helloโ describes building the hello world program written in the languagelistโ lists all cheatsheets related to the previous arg; if there's none, it lists all cheatsheetslearnโ shows a learn-x-in-minutes language cheat sheet, perfect for getting started with the language (literally the icon of "just start" ๐)1lineโ a collection of one-liners in this languageweirdnessโ a collection of examples of weird things in this language ๐
๐ธ Examples
cheat rust hellocheat -r -b -i gocheat julia Functionscheat -i go operators
โ๏ธ Cloudup
Description: backs up a user's github repositories to your bitbucket account. with no flags, cloudup will guide you through backing up a single repository ๐ฆ
Usage: cloudup [flags] or cloudup [flags] [listOfGHRepoNamesSplitBySpaces]
-pโ upload the repositor(y)(ies) as private to bitbucket (you must have private repo ability on bitbucket for this one, no cap)-aโ backup all github repositories-sโ only backup repositories that you have created (no forks) โ heads up, this only works in conjunction with the-aflag-tโ backup the repository with a timestamp added to the repostiory name (this will always create a new unique bitbucket repo)-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
cloudupcloudup -p -acloudup -p nameOfRepo1 nameOf Repo2cloudup nameOfRep
๐ Crypt
Description: a wrapper around openssl that facilitates encrypting and decrypting files. keeping your secrets secret, periodt ๐คซ
Usage: crypt [flag] [inputFile] [outputFile]
-eโ encrypt theinputFileand store it in theoutputFil-dโ decrypt theinputFileand store it in theoutputFil-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
crypt -e mySecretFile.txt myEncryptedFile.jpg(change the filetype so the default program is incorrect ๐)crypt -d myEncryptedFile.jpg thisIsNowDecrypted.txt(change the filetype back so now the default program is correct โจ)
๐ช CryptoCurrency
Description: a realtime cryptocurrency converter. with no flags it will pull down the latest stats of the top 10 cryptos. main character energy for your portfolio ๐
Usage: cryptocurrency or cryptocurrency [flag] or cryptocurrency [flag] [arg]
-oโ utilize the old functionality of the tool-fโ fiat currency for conversions-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
cryptocurrency -ocryptocurrency -f eur
๐ฑ Currency
Description: a realtime currency converter. with no flags it will guide you through the currency exchange, hand-holding included ๐ซถ
Usage: currency or currency [flag] or currency [base] [exchangeTo] [amount]
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Supported Currencies
all 32 of them, iconically:
AUD BGN BRL CAD CHF CNY CZK DKK EUR GBP HKD HRK
HUF IDR ILS INR JPY KRW MXN MYR NOK NZD PHP PLN
RON RUB SEK SGD THB TRY USD ZAR
๐ธ Examples
currency EUR USD 12.35currency
๐ Geo
Description: provides quick access for wan, lan, router, dns, mac, and ip geolocation data. it knows where you are. always. ๐
Usage: geo [flag]
-wโ returns WAN IP-lโ returns LAN IP(s)-rโ returns Router IP-dโ returns DNS Nameserver-mโ returns MAC address for interface. ex.eth0-gโ returns Current IP Geodata
๐ธ Examples
geo -ggeo -wlrdgm eth0
Custom Geo Output => [all] [query] [city] [region] [country] [zip] [isp]
Example: geo -a 8.8.8.8 -o city,zip,isp
-o[options]โ returns specific geodata-a[address]โ for a specific ip in-s-vโ returns version-hโ returns help screen-uโ updates Bash-Snippets
๐ค Lyrics
Description: fetch lyrics for a certain song. karaoke night but make it terminal ๐ถ
Usage: lyrics [flags] or tool [-a] [arg] [-s] [arg]
-aโ artist of the song to fetch lyrics for-sโ song of the artist to fetch lyrics for-fโ export the lyrics to file rather than outputting to stdout-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
lyrics -a logic -s run itlyrics -a logic -s run it -f ~/runItLyrics.txt
๐น Meme
Description: a lightning fast meme generator. lightning. fast. โก
Usage: tool [flags] or tool [flags] [arguments]
-uโ update Bash-Snippet Tools-hโ show the help-fโ choose the output filename-vโ get the tool version
๐ธ Examples
meme -f dogeMeme
๐ฌ Movies
Description: provides relevant information about a certain movie. letterboxd could never ๐ฟ
Usage: movies [flag] or movies [movieToSearch]
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version-dโ show detailed information
๐ธ Examples
movies Argomovies Inception
๐ Newton
Description: performs numerical calculations all the way up to symbolic math parsing. math girlies rise ๐งฎโจ
Usage: newton [operation] [expression] or newton [flag]
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
Valid Symbols:
+add-subtract[left parenthesis (you must use brackets, bash has a bultin for parenthesis)]right parenthesis (you must use brackets, bash has a bultin for parenthesis)*multiply/divide^power:between the range of left and right side (only for area under curve)~parameter on right side (only for area, tangent line and log)
๐ธ Examples
newton simplify [[2x]+7]*[4x]movies derive x+2x
not me pointing out that the second example literally says movies ๐ that's what the page says, bestie, I don't make the rules.
๐ต๏ธ Pwned
Usage: pwned [email]
Description: checks where an email account has been breached. it's giving "your data is out there and we're gonna tell you where" ๐ญ
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
pwned emailtocheck@email.com
๐ณ Qrify
Usage: qrify [stringtoturnintoqrcode]
Description: converts strings or urls into a qr code. little squares, big power ๐
-uโ update Bash-Snippet Tools-mโ enable multiline support-fโ save the QRCode to a file-dโ decode the QR code from a PNG/GIF/JP(E)G file-hโ show the help-vโ get the tool version
๐ธ Examples
qrify this is a test stringqrify -m two \n linesqrify -f fileNameHere Insert what you want to encode hereqrify github.com # notice no http:// or https:// this will failqrify -d fileName.png
๐ Short
Description: unmasks shortended urls. detective mode: activated ๐๐
Usage: short [shortURL] or short [flag]
-eโ expand the following URL-sโ shorten the following URL-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Example
- Input:
short -e tinyurl.com/jhkj - Output:
http://possiblemaliciouswebsiteornot.com - Input:
short -s google.com - Output:
http://ki.tc/23sd1d
๐ Siteciphers
Description: checks the available ciphers for the SSL of an https site. cipher check, but make it cute ๐ฆ
Usage: siteciphers [flag] or siteciphers [optionalDFlag] [website]
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version-dโ set the delay between requests sent to the site (default is1sec)
๐ธ Examples
siteciphers github.comsiteciphers -d 0.75 google.com
๐ Stocks
Description: finds the latest information on a certain stock. finance bestie reporting for duty ๐๐
Usage: stocks [flag] or stocks [company/ticker]
-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
stocks AAPLstocks Tesla
๐จ Taste
Description: a recommendation engine that provides 3 similar items based on some input topic. Taste also has the ability to provide information on the item of interest. supports: shows, books, music, artists, movies, authors, games ๐ง๐
Usage: taste [flag] [item]
-iโ get more information on similar items-sโ get information on the item itself-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
taste -i Kendrick Lamartaste Catcher in the Rytaste -s Red Hot Chili Peppers
โ Todo
Description: a simplistic commandline todo list. productivity era ๐โจ
Usage: todo [flags] or todo [flags] [arguments]
-cโ clear all the current tasks-rโ remove the following task number-gโ get the current tasks-aโ add the following task-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
todo -a My very first tasktodo -r 1todo -gtodo -c
๐ค Transfer
Description: quickly transfer files from the command line. drop it and go ๐จ
Usage: transfer [flags] or transfer [flag] [args] or transfer [filePathToUpload]
-dโ download a single file- first arg: output file directory
- second arg: file url id
- third arg: file name
-oโ onetime file upload-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
๐ธ Examples
transfer ~/fileToTransfer.txttransfer ~/firstFileToTransfer.txt ~/secondFileToTransfer.txt # upload multiple files at oncetransfer -d ~/outputDirectory fileID fileNametransfer -o ~/fileToTransfer.txt
๐ฆ๏ธ Weather
Description: provides a 3 day forecast on your current location or a specified location. with no flags, Weather will default to your current location. checking the vibes, meteorologically ๐
Usage: weather or weather [flag] or weather [country] or weather [city] [state]
weather [optionalLocation] [i][M]โ get weather in imperial units, optionalMmeans windspeed in m/sweather [optionalLocation] [m][M]โ lowercasemgets weather in metric units, optionalMmeans windspeed in m/sweather [Moon]โ grabs the phase of the moon ๐-uโ update Bash-Snippet Tools-hโ show the help-vโ get the tool version
okay that's this batch of tools bestie โ and there's literally more where that came from, so keep reading ๐
Okay so, examples โ because seeing it in action is literally the whole vibe check:
weatherweather Paris mweather Tokyoweather Moonweather mM
๐ Ytview
Description: Search and play youtube videos right from the terminal. Yes bestie, your terminal is a media player now, we love a multitasking icon. ๐
Usage: ytview [flag] [string] or ytview [videoToSearch]
-sโ searches youtube for you ๐-cโ shows the latest videos of a channel, so you can stalk your faves (respectfully) ๐-uโ Update Bash-Snippet Tools-hโ Show the help-vโ Get the tool version
Examples:
ytview -s Family Guy Chicken Fightytview -c Numberphile
๐ Updating
Okay so here's the cute part: with any of the installed tools you can automate the update by running it with the -u option or passing in update as the arguments. Two ways to do the exact same slay:
stocks update
or
stocks -u
This will clone the repository and install the new versions of scripts that were installed. And here's the important bit โ if you didnยดt install a certain tool, this script will not install the new version of that tool. So no surprise guests in your $PATH, periodt. โจ
๐งน Uninstalling
If you donยดt have the Bash-Snippets folder anymore, clone the repository first:
git clone https://github.com/alexanderepstein/Bash-Snippets`
Then cd into the Bash-Snippets directory:
cd Bash-Snippets
Then, to go through a guided uninstall:
./uninstall.sh
It walks you through it, so you're not out here guessing. We love a guided moment. ๐ซถ
๐ AUTHOR
Alexander Epstein Github: https://github.com/alexanderepstein
๐ Contributors
- Jake Meyer Github:
https://github.com/jakewmeyer - Linyos Torovoltos Github:
https://gitbub.com/linyostorovovoltos
๐ License
MIT License
Copyright (c) 2017 Alex Epstein
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Fr fr, that's a wrap โ this whole page comes from the Bash-Snippets source, versionff, dated December 2017, in theBASH-SNIPPETS(1)manual. Go forth and be iconic with it ๐ฆ๐
๐ฆ where this page comes from
- nixos 26.05: bash-snippets 1.23.0
- nixpkgs unstable: bash-snippets 1.23.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms