Definitions bash: This is the command line, where you can run relatively simple scripted programs, available on all three major computing platforms.SPARQL: On the Internet, there are repositories of information. Some of these repositories are in a format called RDF, or Resource Description Framework. Users of these repositories typically need a subset of the information … Continue reading bash: Last Day, The People Who Lived As Many Days as You
Tag: bash
bash: TOTP From the Terminal With oathtool
TOTP is Time-based One Time Password. Most people use applications on their phone for TOTP, such as andOTP, Google Authenticator, and related apps. But, as we move from using a phone as a second factor for what we are doing on a computer to a phone being the primary way we interact with the Internet, … Continue reading bash: TOTP From the Terminal With oathtool
Mutt: Viewing Attachments / HTML via .mailcap and a Custom Fortune as a Signature in Mutt
It's funny how small, trivial things can lead you to make radical changes in the tools you use. As regular readers of this blog know, I collect sayings that I publish every month. I then compile these sayings into a custom fortune file that displays one saying every time I login to my computer or … Continue reading Mutt: Viewing Attachments / HTML via .mailcap and a Custom Fortune as a Signature in Mutt
bash: Cryptocurrency Prices From the Linux Terminal
#!/bin/bash printf -v coin '%s' -1 # crypto.sh bitcoin price() { # A function that pulls cryptocurrency price data from coingecko curl -X 'GET' 'https://api.coingecko.com/api/v3/simple/price?ids='"$1"'&vs_currencies=usd' \ -H 'accept: application/json' 2> /dev/null | # sends download data to /dev/null sed 's/.*usd"://' | # Removes everything before the price sed 's/..$//' | # Removes back two }} … Continue reading bash: Cryptocurrency Prices From the Linux Terminal
bash: Number of Days Between Today and Some Future Date
#!/bin/bash printf -v date '%(%Y-%m-%d)T\n' -1 echo $(( ($(date -d $1 +%s) - $(date -d $date +%s)) / 86400 )) days Above is a bash script to output the number of days between today and some future date. Copy it into a file, e.g., diffdate.sh, into a directory, e.g., ~/bin/scripts. Then, enter the directory you … Continue reading bash: Number of Days Between Today and Some Future Date
Easiest Guide to .bashrc
"Digesting the syntax and logic of how a bash program is structured has always been an issue. I hope this will make people’s lives a bit easier and make bash a bit more straight forward."-Olafur Palsson, "Easiest Guide to .bashrc" itnext.io. February 7, 2021.
Bash One-Liners :: bashoneliners.com
Collection of practical, well-explained Bash one-liners. http://www.bashoneliners.com/
