Jan 15, 2023
Script to write-
#!/bin/bash
# Get current date in the format of YYYY-MM-DD
current_date=$(date +"%Y-%m-%d")
# Get the day of the year
day_of_year=$(date +"%j")
# Create file path
file_path="/home/ag/coding/my-journal/_posts/$current_date-$day_of_year.markdown"
# Create file with the necessary front matter
echo "---
layout: post
title: \"$(date +"%b %d, %Y")\"
date: $(date +"%Y-%m-%d %T %z")
categories: jekyll update
---" > $file_path
# Open file with gnome-text-editor
gnome-text-editor $file_pathIs this changed ? yea
- I can write (run this script) only once in a day, else it will overwrite the prev script OwO
-
Lets implement some update command
- yea, update script is ready, and working fine.
#!/bin/bash
# Get current date in the format of YYYY-MM-DD
current_date=$(date +"%Y-%m-%d")
# Get the day of the year
day_of_year=$(date +"%j")
# Create file path
file_path="/home/ag/coding/my-journal/_posts/$current_date-$day_of_year.markdown"
# Create file with the necessary front matter
# Open file with gnome-text-editor
gnome-text-editor $file_path- Now time to implement github pages and auto git push in script
Done, prolly, lets see, what happens after closing it (gotta update the above scripts after that accordingly) wait new idea lets put some time entry before updating script, yes !!!
- update: fix git repo
-
cool working now lets add timestamp
- Added timestamp
Get current time in 12-hour format (HH:MM)
current_time=$(date +”%I:%M”)
Copy current time to clipboard
echo $current_time | xclip -selection clipboard
- edit: xclip doesnt work, use copyq
- edit: installed xclip, fk copyq
12:37 working uwu nice
edit: not 12hr, use 2hr edit: git add location, work outsde dir (test 2 from dir) test 3 outside dir
12:47 cool, added outside repo support (ig, it orks testing now anyway) 12:48 Working hurrah :) I can now safely go and take shower 🚿🚿
-
then study for tmrws exam 13:00 another test why not
-
16:11 Fuck my life, I should study else busy doing all useless stuff, coding, bug fixing, I gotta study pls pls
- 20:25 FINALLY DONE WITH AUTOMATED ACCOUNT, I AM SO HAPPY BRUHHHHH, I WANNNA CRY NOW< ANWYAY TIME TO STUDY
-
man, what to weite here,
- ok dont be dumb, lets write some real diary
- the good thing is you dont know me, so whatever Iwrite doesnt matter, this is my own place on internet, hurrah I am playing STUDI GHBLI music in bg, man it so soothing, I wanna just live sike that, you know what it is cool, my account is offline rn (yea I double checked)
- it will go online at 8.30pm, by itself I am just waiitng for it uwu