home.social

#100dasyofcode — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #100dasyofcode, aggregated by home.social.

  1. 100 days of code BASH edition

    💻 Day 4 created my own system variable, made persistent within the .bashrc file.

    [export hoy="$((date +"%H") | awk '{if ($1 < 12) print "morning"; else if ($1 >= 12 && 1 < 17) print "afternoon"; else if ($1 >= 17 && $1 < 20) print "evening"; else print "night";}')"] (OpenAI GPT-3 script with few corrections) Displays the time of day in morning/afternoon/evening/and night format!

    #BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #bashrc

  2. 100 days of code BASH edition! :linux:

    Day 3, expanding on the previous script adding more statements to display more system variables dealing with time formats and calendars.

    #BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #TimeZones

  3. 100 days of code - BASH edition!

    Day 2, using what I got from Open AI GTP-3, I expanded the script and made a few other statements to display additional system variables.

    #BASH #Linux #Kali #WSLg #100DasyOfCode #OpenAi #GTP3 #BashScript