20221105

RipgrepCountMatches

 @elirnm I believe you could just use the tee command?


$ rg blah blah | tee >(wc -l)

match

match

match

    3

If you want to remove that tab before the output, you can do this:


$ rg blah blah | tee >(wc -l | xargs echo)


Way to report total count of matches? · Issue #411 · BurntSushi/ripgrep · GitHub https://github.com/BurntSushi/ripgrep/issues/411

Gboard delete Personal Dictionary


Why?

Kill imported Personal Dictionary

I tried to import a personal dictionary using the dictionary.txt method 

Unfortunately The dictionary file or rather zip file was imported under a Japanese dictionary and not English US. Thus I need it to delete the Japanese dictionary and start all over again. 

Here we go:

How?

Clear Storage and Cache from App info of Gboard

Go to settings and search for Gboard 

You're going to clear the storage and cache which contains the personal dictionary

Then select clear

20220926

Make it so: Linux Laptop for the rest of us


Breath of fresh air

ChromeOS intact

Developer Mode

Run off USB for isolation

Maybe the latest Frame.Work Chromebook does not look so bad after all?!

20220417

fortune

$ fortune | cowsay
 _________________________________________
/ I get up each morning, gather my wits.  \
| Pick up the paper, read the obits. If   |
| I'm not there I know I'm not dead. So I |
| eat a good breakfast and go back to     |
| bed.                                    |
|                                         |
| Oh, how do I know my youth is all       |
| spent? My get-up-and-go has             |
| got-up-and-went. But in spite of it     |
| all, I'm able to grin, And think of the |
| places my get-up has been.              |
|                                         |
\ -- Pete Seeger                          /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||



20220309

matched directories

ls -d ~/.*

climagic (@Command Line Magic) Tweeted: Sometimes I want to be able to see just the hidden files and directories under my home directory, so that I know what I need to transfer to a new host. The -d here prevents seeing the contents of matched directories
ls -d ~/.* https://twitter.com/climagic/status/1501625845340942337?s=27

20220305

Open PDF files in vim-nox under Crostini (Chromebook/ChromeOs Debian)

Method 1 - good for VimWiki or plain text Zettelkasten using pdftotext (pdf -> txt)

Procedure
Put one of the following mappings in your vimrc:

:command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> -

Run with 
:tabnew
:Rpdf example.pdf

Method 2 use chrome browser as default application but has side effect of error
Run :term 
$ xdg-open ./<filename>.pdf