20221226

Bundle that ToolForThoughts

2022-12-27T13:51:29-XXXX Tue HackerNewsComments  Great article and highlights the cyclical hype of PKMS. I use FountainPens and Paper. RandyPausch was/is a TimeManagement guru and inspires. https://www.cs.cmu.edu/~pausch/ KeepItSimple.  PaidFor SubscribedTo literally every MajorPkms DigitalGarden Wiki MindMap GewGaw aka ToolsForThought out there. But thoughts are cheap along with storage (SdCard) and backup (RsyncBackupScript) There is simply no reason not to enjoy ExternalizeThinking with DigitalTools (and have it centralized) Now for the last 9 years feel like I am making my own language and talking to itself.

Literally my Year2022Review sans redaction of personal nodes and most of B-Z [1]: 

010Editor 2022-09-21 2022-12-23 2022-12-24 2022-12-25 21stCenturyHomeHealth 432Hz ABBA ANeuroscientistReflectsOnDeath AboutObsidian AcceptingOldAge Activism Add2Dict AdviceFromSmartPeople AirmeshVsAlphaDirect AjahnSumedho AlbertoMarino AllYouNeedIsLinks AlsiaCrochetSweater AmadeusMozart AmazonOrder AmazonOrders AmericanAirlines Amphora AnInkGuy AndeanTextileArts AndreasScholl Anki AnsiOsc52 Anthropic AntinetZettelkasten AntonioMachado AníbalTroilo AppImage Appelboom AppendOutputToFile AptCacheSearch AptList ArchLinux ArtOfLisp ArtOfPlainText ArtOfTheCommandLine AsahiLinux AsciiArtCodeDiagrams AssamTea AsusC523NLog AttentionToDetail AutoHotKey Awk AwkAndCsv BackupScripts BackupWithRsyncNet BagdadCafe BashAliases BashExportVariables BashHistory BashPatternMatching BashRc BashRcAlternativeBashHistoryLogging BashRcHistoryLogging BashScriptingTemplate BatCat BayesRules BayesianProbabilityWorksheet BearMeetings  ... Be\+

WuWei is the way.

Live in the terminal both in DayJob and Personal; UseVim; no FileExtensions; CamelCase = thought = node; ISO8601 DateTimeStamp every node; Mimimal DataStructure or VimOutliner prn; F*ck Markup MarkDown, PlainText is LazyGenius; FrictionlessSystem, ZeroMaintenance

Capture in GuiBrowser

CaptureBookmark DataUrl

javascript:(function(){let text=""; if(window.getSelection()!=''){text=window.getSelection().toString()+"\n";}prompt("Press Ctrl+C, Escape", text+"\n"+document.title+" "+location.href);})()

[1] Year2022Review Method in local ./.exrc in 128G sd card

Have cursor on 2022 then ,b in NormalMode

where nmap ,b :r !. ./backlinks.sh <C-R><C-W><CR>

and ./backlinks.sh is 

#!/usr/bin/sh

term=$1

for file in $term

do

echo $file

rg -l -i $file -g '!*.*' | sed 's/^/\t/g'

done

20221224

Most forgettable vim lesson of 2022

Most forgettable vim lesson of 2022

running aliases are efficient as in 
alias zk='cd ~/zk&&vim -S zk.vim'
BUT
when calling local .exrc as in set exrc in .vimrc
RECREATE the session with 
:mks! zk.vim
EVERY time .exrc is edited else
no new mapping or config works (in the running old session)!!!

20221223

Memory aid: programs installed with sudo apt-get and persistent history with logs


What did I install again? 

$ cat /var/log/apt/history.log |grep '^Commandline' | sort -u


Persistent History with Logs 

# running bash history https://spin.atomicobject.com/2016/05/28/log-bash-history/

export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'

# must check ~/.logs for full history of all commands since enabling

AND 

https://askubuntu.com/questions/67283/is-it-possible-to-make-writing-to-bash-history-immediate/67306#67306

shopt -s histappend PROMPT_COMMAND='history -a;history -n'

But so many options...?!

20221210

Moka Pot Coffee


Purpose

Increase capacity over 1 single serve Aeropress but with espresso-like depth

Background


Choice

Steel > Aluminum for induction burner

Health

Venus Bialetti to reduce 4x Al intake



Methods

  • Consistent flow
  • Lower heat
  • No Sputter
  • Preheat water
  • 1:3-4 ratio of coffee to water
  • Leaving water in boiling basket is ok
  • No tampering or leveling just stamp, stamp
  • The usual burr grinder, filtered water applies

Reviewed videos

Basic method


Advanced methods


Hoffman nice voice


Get complicated isolating variables: temp, water, etc



Shop

  • BedBathBeyond - nope
  • Amazon - ugh, they have it

Must buy: Induction plate for non-induction compatible cookware








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

20220208

Tiny Core Linux 13 Released: Needs Just 46MB of RAM, 50MB of Disk

Drink tea and coffee

Get Rusted

"The Rust Programming Language
by Steve Klabnik and Carol Nichols, with contributions from the Rust Community

This version of the text assumes you're using Rust 1.55 or later with edition="2018" in Cargo.toml of all projects to use Rust 2018 Edition idioms. See the "Installation" section of Chapter 1 to install or update Rust, and see the new Appendix E for information on editions."

20220129

Turning back time with epigenetic clocks

The finding that injury recapitulates ageing in epigenetic clock assays, Sinclair says, "points to a universal stress response that is beneficial because it tries to help the cells survive, but ultimately leads to ageing".

eh, I'll skip the growth hormone and diabetes meds and stay on plant based calorie restriction and TaiChi 

https://www.nature.com/articles/d41586-022-00077-8