Skip to content

kedepot/ke_sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ke_sh : KE Bash Exercise Collection

Various shell scripts made for Linux.
Tip: Add script folder to ENV in your .bashrc (or similar) and run the scripts anywhere!

kesplash

Bash Splash! From neofetch to pfetch...to just a little bit more up-time stats:

kesplash

Info

  • Uses 'last reboot' data to gather "approximate" data
  • "Good enough" for my desktop use, as terminal splash screen trivia
  • Only runs when called. (when I launch a Terminal window. No daemons or anything.)
  • Customize directly in the script.
  • Made for Arch Linux
  • Uses 'day' & 'day-se' by default, unless optional argument is passed (see below)

Use

Run kesplash from the top of your .bashrc (or similar).
or, Use/Modify as you see fit.

Optional Arguments:
nod (no 'day'+'day-se') or
do ('day' only) or
seo ('day-se' only))
ex: kesplash nod (for no 'day' / 'day-se') - if you also have those scripts (from this depot)

NOTE: If you (or your distro) has /etc/logrotate.conf or something that clear your logs regularly, kesplash probably won't be useful.
( For more advanced up-time statistics, check out: https://github.com/rfmoz/tuptime )


datecount

Calculate days + other units of time between input dates

image

Format: datecount 1989-10-03 2023-10-03
FROM-DATE TO-DATE using Year-Month-Day.
Not tested with non-ISO8601 locales - may or may not work

  • Hyphens are not required
  • If only a single date is provided, today is used as TO-DATE
  • Only using the last 2 year-digits = "closest guess" for either 1900s or 2000s (by date cmd)
  • Try your birthdate (and despair)

ketz

List Time Zones, in Shell script.

image


zipseparate

Zip each selected folder or file separately

  • Using zip
  • When used for Custom Action for Thunar : Use %N (or %F)

mp423

Convert MP4 Audio to MP3

Usage example: mp423 *.mp4 (converts all mp4s audio streams to new mp3 files)

  • optional flag: -v converts MP3 to "visualized mp4"
  • When used for Custom Action for Thunar : Use %N
  • Has notifications for file(s) progress when used in Thunar (or other app - not terminal)
  • Requires ffmpeg

day

International UN days.

2024-11-24_11-33

  • Some days may be moving dates (based on UN2024 dates - close enough! To-do: Support moving dates...)
  • Use as-is (or as variable for other programs, like your terminal splash!)
  • No webscraping - just a big associative array

day-se

Similar to 'day' but only (mostly) Swedish theme-days. In swedish!

  • Use as-is (or as variable for other programs, like your terminal splash!)
  • "Mostly", as some "special interest" (and joke-y) days are also included
  • Does not include UN days or days with moving dates
  • No religious holidays/Moving dates. To-do: Support moving dates...

antiscrape

2024-11-25_10-09

Converts input text to html-code mixed with regular characters and commentes

  • Should work reasonably well against the dumbest scrapers
  • No other conversions/efforts are needed, just paste into html document
  • Remember to quote the input if there are spaces!
  • There are many simliar online tools (if you don't mind giving random online sites your email address)

Releases

No releases published

Languages