Thursday, February 27, 2025

Friday, February 21, 2025

Backup and save your google map's timeline

 

Google map's timeline is no longer available in desktop version.
It is available in Mobile though. ( I don't understand the rationale behind this.
Anyway)

Now, the problem here is, if for some reason your mobile is lost, the entire timeline is lost.


You can take backup of timeline using this link:
https://takeout.google.com/takeout/custom/local_actions,location_history,maps,mymaps 

(Always copy paste link - do not click on link directly)
 

For some reason, you cannot get this link directly from takeout.google.com.
(Why google why?)

  • You can schedule to take backup every 2 months. Download link will be sent to your email  id.
  • You can take immediate backup too. 

Thursday, January 30, 2025

Kubernetes playground

 

If you want a sample kubernetes environment where you want to try out some kubectl commands, go here:
https://killercoda.com/playgrounds/scenario/cka

 

It has some limitations but good for a playground :) 


Wednesday, January 29, 2025

cronjob schedule

 

How to remember cronjob:

 

📝 Mnemonic: "Mini-Hourly-Daily-Monthly-Weekly"

Think of it as:

👉 "Minute - Hour - Day - Month - Week"

🟢 5 stars (* * * * *) means "every minute"

🟢 */X means "every X unit" (e.g., */5 = every 5 minutes)

🟢 0 0 * * *At midnight every day

🟢 0 12 * * 1-5At 12 PM, Monday to Friday

🟢 30 14 1 * *At 2:30 PM on the 1st of every month

    // 30 14 1 * * => minutes 30, hour 14, day 1 only, every month, irrespective of day.

 

  

Friday, January 17, 2025

Access Windows drive in Linux(fedora)

Access Windows drive in Linux(fedora):

 

# install package necessary for ntfs

dnf install ntfs-3g

 

# create mount point

mkdir -p /mnt/windows/

 

# get the device name

sudo lsblk 

 

# mount drive

mount -t ntfs-3g /dev/<device>  /mnt/windows 


#  To make it permanent across reboots

tail -1 /proc/mounts >> /etc/fstab