o mv mispelled.txt
and it will make an interactive prompt that looks like:
mv mispelled.txt mispelled.txt_
but the last word is editable, so I can use the arrow keys to alter it in place
131–140 of 340 posts
o mv mispelled.txt
and it will make an interactive prompt that looks like:
mv mispelled.txt mispelled.txt_
but the last word is editable, so I can use the arrow keys to alter it in place
So certainly not impressive, and morally ambiguous, but when chatGPT first released, I worked with it to create a python script that crawled The New Yorker sitemaps, found articles with embedded audio versions, downloaded the mp3 by reconstructing the file url using the article ID in the page source, and then renamed the file to match the page title and saved it to a well structured Google Drive directory. Now when I…
Solution: I used Home Assistant and Frigate (local NVR) to detect if there are humans present in the room, if no humans for 10 mins, switch off everything. I actually use a combination of things to detect human presence, some of the things include motion sensor, PC active, user sleeping (10 PM to 8 AM), there’s also a switch I use to turn on sleep mode if I’m taking an afternoon nap (The switch automatically turns off after 3 hours). I also use a template to measure if the AC temperature is below 22, if it is, I set it to 22 degree Celsius. The automation above saved me 15-20% on electricity bill.
On any system I'm working on I add a stupid simple script named `can` that moves items to the trash can. I can't say how many times it has saved my bacon avoiding accidental permanent deletions over using `rm`.
So certainly not impressive, and morally ambiguous, but when chatGPT first released, I worked with it to create a python script that crawled The New Yorker sitemaps, found articles with embedded audio versions, downloaded the mp3 by reconstructing the file url using the article ID in the page source, and then renamed the file to match the page title and saved it to a well structured Google Drive directory. Now when I…
Problem: My kids and wife would start Air conditioner at lowest temperature (16 degrees Celsius) and forget to switch them off. At one point in time my electricity bill was 50% of my house rent. Solution: I used Home Assistant and Frigate (local NVR) to detect if there are humans present in the room, if no humans for 10 mins, switch off everything. I actually use a combination of things to detect human presence, some…