koozz

Joined 9 years ago

Karma
94
Submissions
8
Member since
Nov 1
[ my public key: https://keybase.io/koozz; my proof: https://keybase.io/koozz/sigs/2kr5llRuAMpreQTbl07GfU_C40JZDQ3u34Kd6sd40LY ]
View on Hacker News

Recent submissions

Comment · 8 months ago
> My Gmail inbox has 3,200 unread emails. I miss appointments because calendar invites get buried.

Rules and discipline is what you need :)

Comment · 1 year ago
Comment · 2 years ago
Very nice! I immediately created a fish shell function for this. Feel free to copy/modify/ignore.

Running `journal` quickly allows you to add a line to your journal. This will fallback to ~/.journal.log unless you have a .journal.log file in the current directory or any of its parents. Running `journal show` outputs the tail -5 of that journal. Running `journal init` creates a log in the current folder.

Adding .journal.log to your global gitignore is recommended.

$ cat ~/.config/fish/functions/journal.fish

function journal set -f journal ~/.journal.log

        if test "$argv[1]" = "init"
                set -f journal .journal.log
        else
                set -f journal ~/.journal.log
        end
        touch $journal

        set -l dirparts (string split "/" (pwd))
        set -l dircount (count $dirparts)
        for x in (seq $dircount -1 2)
                set -l dir (string join "/" $dirparts[1..$x])
                if test -f $dir/.journal.log
                        set -f journal $dir/.journal.log
                        break
                end
        end

        if test "$argv[1]" = "show"
                printf "Last journal entries from: %s\n" "$journal"
                tail -5 $journal
        else
                printf "Add to journal: %s\n" "$journal"
                read -P "Addition: " -l line
                if test -z $line
                        printf "Nothing added.\n"
                        return
                end
                printf "%s\n" "$line" >> $journal
        end
end
Comment · 6 years ago
Comment · 6 years ago
Comment · 7 years ago
"Reversing, Secrets of Reverse Engineering" by Eldad Eilam is a nice read. Interesting stuff!
Comment · 7 years ago
Reversing, Secrets of Reverse Engineering - by Eldad Eilam is a nice read. If you know how to reverse engineer something, you can really learn from anything.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton