News for hackers. Stuff that matters.

barbuk

Re:Ask HN: What apps have you created for your own use? on Wednesday December 13, 2023 @05:43AM (#38625420)
snippy: https://github.com/barbUk/snippy To manage snippets with rofi or fzf on linux.
you can pass the primary video card to a lxc guest, I used [1] successfully to do that.

[1] https://jellyfin.org/docs/general/administration/hardware-ac...

Re:Ask HN: Full-text browser history search forever? on Wednesday March 16, 2022 @10:33AM (#30699317)
Chromium and Firefox have all your history stored in a sqlite database.

I have a script to extract the last visited website from chrome for example: https://github.com/BarbUk/dotfiles/blob/master/bin/chrome_hi...

For firefox, you can use something like:

sqlite3 ~/.mozilla/firefox/.[dD]efault/places.sqlite "SELECT strftime('%d.%m.%Y %H:%M:%S', visit_date/1000000, 'unixepoch', 'localtime'),url FROM moz_places, moz_historyvisits WHERE moz_places.id = moz_historyvisits.place_id ORDER BY visit_date;"

Re:Useful sed scripts and patterns on Friday November 12, 2021 @12:26AM (#29196551)
I had the same craving.

My linux only snippet manager: https://github.com/barbuk/snippy

Re:Better Bash History (2012) on Friday May 31, 2019 @02:37AM (#20058688)
fzf is the most fun and productive tool added in my dotfiles in recent years.

Mix it with https://github.com/rupa/z or https://github.com/skywind3000/z.lua for fuzzysearch/cd

And you can do cool scripts, like:

- search your vim edited files with highlighted preview: https://github.com/BarbUk/dotfiles/blob/master/shell/complet...

- search and open your chrome history: https://github.com/BarbUk/dotfiles/blob/master/shell/complet...

Re:Ask HN: Favorite teachers on YouTube? on Sunday September 16, 2018 @07:04PM (#18001771)
For electricity: Mehdi Sadaghdar (electroboom).

His electoboom 101 are great: https://www.youtube.com/watch?v=vn4J8RcMGrM&list=PLr_CZLgMkH...