Notes

This is my microblog, containing short informal entries. See my blog for longer entries. An RSS feed contains the full text of all my notes.

Srijan Choudhary Srijan Choudhary

Using sysrq on my laptop - documenting mostly for myself.

My laptop has started freezing sometimes, not sure why. Usually, I can just force power off using the power button and start it again, but it has happened twice that I had to recover the system by booting via a USB drive, chrooting, and recovering the damaged files using fsck or pacman magic.

The linux kernel has:

a ‘magical’ key combo you can hit which the kernel will respond to regardless of whatever else it is doing, unless it is completely locked up.

(More details on archwiki and kernel doc)

To enable, I did:

echo "kernel.sysrq = 244" | sudo tee /etc/sysctl.d/sysreq.conf
sudo sysctl --system

However, to trigger this on my laptop, I was not able to find the right key combination for SysRq. I was able to make it work using an external keyboard that has a PrintScreen binding on a layer, by using the following:

Press Alt and keep it pressed for the whole sequence: PrintScreen - R - E - I - S - U - B

Currently, PrintScreen on my external keyboard is bound to Caps lock long press + Up arrow.

Srijan Choudhary Srijan Choudhary
> Reply to mkj: "Actually, more important than backups is restores…" - Mastodon

I reviewed this recently, and found that I needed at least one device where I was logged in to 1password to be able to restore everything. So, I've started keeping a paper key with the 1password secret key so that I can restore it as well.
One addition I wanted to do was to have some kind of manual encryption in the paper key so that I'm secure as well.

Srijan Choudhary Srijan Choudhary
> Reply to Missing exit signals for linked processes

I can think of two reasons:

  1. You're not setting trap_exit and the process is exiting with normal reason. But it seems you're setting this.
  2. The exit message is somehow getting "eaten" by some other receive -> _ in your gen_server process.

Also, I don't think live reload should affect this. It should work across reloads.
Can you share the full code of your gen_server?

Srijan Choudhary Srijan Choudhary

Found Samuel's nice post on capturing data for org via email.

This is very close to what I was looking for to be able to do GTD capture on-the-go either from phone apps like Braintoss or from any email app.

One addition I would like to make is handling attachments in the email by downloading them and attaching to the org entry.
This would be useful for voice notes from Braintoss - it does transcription of the audio and adds it to the email body, but sometimes it doesn't work so well and I have to fall back to listening to the audio. It will also be useful for forwarded emails containing attachments.

#GTD #Emacs #OrgMode

Srijan Choudhary Srijan Choudhary
> Reply to Issues: OblikStudio/kirby-git

Unable to install with Kirby v4 via composer

The composer.json in the current release requires "getkirby/cms": "^3.7",, which ^4.0.0 does not satisfy.

Full error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - oblik/kirby-git[1.0.0, ..., 1.1.0] require getkirby/cms ^3.3 -> found getkirby/cms[3.3.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.2.0 requires getkirby/cms ^3.4 -> found getkirby/cms[3.4.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.3.0 requires getkirby/cms ^3.6 -> found getkirby/cms[3.6.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.4.0 requires getkirby/cms ^3.7 -> found getkirby/cms[3.7.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - Root composer.json requires oblik/kirby-git * -> satisfiable by oblik/kirby-git[1.0.0, ..., 1.4.0].
Srijan Choudhary Srijan Choudhary
> Reply to Issues: ~delthas/senpai

Keybinding to jump to first unread message

Right now, there is an unread indicator bar that can be used to manually scroll up to the first unread / last read message. It would be nice if there is a keybinding to jump directly to it as well.

Also, (related to https://todo.sr.ht/~taiite/senpai/96), when we are not at the bottom of a buffer, it would be nice to have a count of messages below it.

Srijan Choudhary Srijan Choudhary

New #Coffee #BlueTokai

This new packaging from BlueTokai looks nice. And the coffee tastes amazing. Chocolatey flavour with very little bitterness.

Photo of a coffee pouch with a beautiful design containing roasted coffee from Sandalwood Estate Coorg India
Srijan Choudhary Srijan Choudhary

Test webmention + fed.brid.gy:

Two naked tags walk into a bar. The bartender exclaims, "Hey, you can't come in here without microformats, this is a classy joint!"