Categories
Bitcoin Cryptocurrency Mastering Development

LSAT – stateless proof of payment through specific form of preimage

I am aware LSAT consists of macaroon and preimage. Preimage is part of the HTLC construction to route payments in lightning. It is generated by the receiver and eventually known by all participants on the path (if all goes well). And point of a macaroon is that anybody having one can add caveats w/o asking […]

Categories
Bitcoin Cryptocurrency Mastering Development

Bitcoin Explorer CSV Export Spinning for 24 hrs

I’m trying to export a CSV file from https://explorer.bitcoin.com/btc/address/**** and it’s been spinning for nearly 24hrs. I’ve read it could take a few minutes to several days to produce the CSV on other sites. I haven’t found any clear statement about bitcoin explorer on this issue. And, I’ve noticed that if you close the page […]

Categories
Linux Mastering Development

how to run `find -exec` inside bash function — problem escaping characters and unexpected end of file

I want to make it easier to run this kind of command: find . -type f -exec sed -i ‘s|wpp-splash|wpp_splash|g’ {} \; so I created a function in my .bashrc to shorten it: function sedall() { find . -type f -exec sed -i ‘s|$1|g’ {} \; } this way I can do sedall wpp-splash|wpp_splash But […]

Categories
Linux Mastering Development

Debian Extending Primary (root) partition without data loss

I have a VM with Debian installed on it. I want to extend the primary partition without losing data. Here is output of sudo fdisk -l: Disk /dev/sda: 34.2 GiB, 36700160000 bytes, 71680000 sectors Disk model: VBOX HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes […]

Categories
Linux Mastering Development

Suspend-to-RAM breaks ACPI thermals

Sometimes after waking from suspend-to-RAM, my ACPI thermal sensor is "frozen" on a fixed, mostly higher temperature. The rest of the sensors are working fine, but since the fan speed is apparently controlled from the ACPI temperature reading, it is kinda annoying and might be bad if it ever freezes at a lower temperature. Output […]

Categories
Linux Mastering Development

Tilix: Running a different command on every terminal of my session

Let’s say I have a Tilix session, and I load it like tilix -s grid.session -e "vim" This splits a session in 4 terminals, and open vim in all of them. My question is: It is possible to run a different command on every terminal of my session? Thank you.

Categories
Linux Mastering Development

Do you recommend to switch to the Intel DDX driver?

I am using bspwm+urxvt and I am getting some screen tearing when I close windows..I am using the intel modesetting driver… Unfortunately, the modesetting driver does not have a "TearFree" option like the DDX driver does… Do you recommend switching to the DDX driver to get rid of the tearing ? I have heard that […]

Categories
Linux Mastering Development

Reasons for huge package loss

I run Linux Mint 19.2 (so Ubuntu basically) on a Intel Core i7 2.7 GHz (×2) machine with 8 GiB memory. The laptop is a almost 10 years old but still working fine except for wireless connection. The problem is a little odd: From time to time I suffer from huge package loss and very […]

Categories
Linux Mastering Development

How do a dynamically switch parts of a pipe?

I have a script which should execute a series of commands through a pipe. Depending of the arguments passed to the script: Either it encrypts the file, computes its hash, and sends it to a REST service. Or it compresses the file, computes its hash, and sends it to a REST service. Or it simply […]

Categories
Linux Mastering Development

Advanced regex: Can’t figure a case where (?R) recursive regex can be used

Is anyone here can explain a case where the recursive Perl/PCRE regex (?R) can be helpful ? I read https://regular-expressions.mobi/recursebacktrack.html?wlr=1 https://perldoc.perl.org/perlre.html#(%3fPARNO)-(%3f-PARNO)-(%3f%2bPARNO)-(%3fR)-(%3f0) but still can’t find a use-case.