Skip to content
cafebedouin.org

cafebedouin.org

The archive is the argument.

  • writing
    • pillow book
    • book reviews
    • github
    • comments
    • essays
    • poetry
    • stories
  • reading
    • key books
    • articles
    • blog post
    • books
    • poetry
    • quotes
  • media
    • art
    • books
      • goodreads
    • comics
    • film
      • letterboxd
    • games
    • images
    • interviews
    • music
    • podcasts
    • software
    • videos
  • life
    • open questions
    • lessons
    • educational
    • tools
    • recipes
    • bookmarks
    • biography
  • cafebedouin
    • about
    • favorite posts
    • favorite things
    • github
    • goodreads
    • key books
    • letterboxd
    • portfolio
    • reddit
    • twitter
  • RSS

Category: code

bash: TOTP From the Terminal With oathtool

September 23, 2021September 22, 2021 ~ cafebedouin

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

bash: Number of Days Between Today and Some Future Date

March 23, 2021March 21, 2021 ~ cafebedouin

#!/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

Posts navigation

Older posts
Newer posts

Search

On Method

Declared where seats decide.
Deterministic where facts decide.
Explicit about which is which.

Where to Start

Favorite Posts
On The Examined Life
Deferential Realism
About

Top Posts & Pages

  • Who Owns "Younger"?
  • My Old Ways by Tame Impala
  • The Robustness Is the Tell
  • The Commodity Speaks
  • key books

Archives

Enter your email address to follow this blog and receive notifications of new posts by email.

Translate

Site License

CC0 1.0 Universal
A WordPress.com Website.
cafebedouin.org
A WordPress.com Website.
  • Subscribe Subscribed
    • cafebedouin.org
    • Join 456 other subscribers
    • Already have a WordPress.com account? Log in now.
    • cafebedouin.org
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar

Loading Comments...