Bitcoin protocols using presigned transactions (e.g. Lightning Network, Firefish etc) face a problem with predicting fees of the presigned transactions. One possibility is to guess the future fee rate but that risks that the transaction will not be included in a block fast enough and it also risks wasting satoshis on fees. Another possibility is to use CPFP which may require adding more outputs - so called "anchor outputs". The drawbacks of anchor outputs are increased transaction size and potentially decreased privacy since the anchor outputs usually use "suspiciously low" amounts. Further, anchor outputs may pollute UTXO set if the presigned transaction confirms anyway (because it also had high enough fee) but the outputs are uneconomical to spend. This document proposes a new solution that could not only solve these issues but bring even more efficiency gains in the future.
# in recovery mode | |
❯ csrutil enable --without debug | |
# note that prior macOS 11.0 this would disable "Debugging Restrictions" | |
# since macOS 11.0 it seems to be disabling "Apple Internal" and "Filesystem Protections" | |
❯ csrutil status | |
System Integrity Protection status: unknown (Custom Configuration). | |
Configuration: |
I'm using web-based gmail as my primary email client. I want to use anoter SMTP server to send emails using secondary email address which is managed by GSuite.
GMail offers "Send emails from a different address or alias" feature[1].
Historically it has been possible to use smtp.gmail.com
with my GSuite credentials to enable
the feature and send emails via my secondary email without problems.
(ns helix-three.core | |
(:require [goog.object :as gobj] | |
[helix.core :refer [defnc $]] | |
[helix.hooks :as hooks] | |
[cljs-bean.core :as b] | |
["react-dom" :as rdom] | |
["react-three-fiber" :as rtf]) | |
(:refer-clojure :exclude [Box])) | |
(defnc Box [props] |
Today I wanted to move existing APFS-resident macOS Catalina installation to a new disk. I upgraded my late 2014 Mac Mini with a shiny new 1TB SSD. This took way too many hours of my life I will never get back. Hope this saves some time to you.
Good news:
- it is possible to create a DMG image from existing APFS container with macOS Catalina installation including metadata needed for complete restore (the DMG contains OS, OS Data, Preboot, Recovery and VM volumes)
- it is possible to restore this DMG image into empty APFS container and get a bootable copy of the original system
This information is relevant for Catalina (I'm currently running macOS 10.15.1).
Since the recent release of Catalina, macOS has shipped with the ability to allow iOS/iPAD apps to run on macOS without any modification via a featureset known as Project Catalyst.
This is exciting, as writing React Native + Clojurescript apps as a target for the desktop is much more compelling than a pure Electron app (imo).
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
#!/bin/bash | |
# Check the most recent LND_TAG at | |
# https://github.com/lightningnetwork/lnd/releases | |
export LND_TAG=1e511be523eb8e97c4e2d9c89a7a263963a3929f | |
# install lnd | |
git clone https://github.com/lightningnetwork/lnd $GOPATH/src/github.com/lightningnetwork/lnd | |
cd $GOPATH/src/github.com/lightningnetwork/lnd | |
git checkout $LND_TAG | |
# enabling mainnet on neutrino is in main branch since 0.8x, only uncomment for tag <0.8 | |
#git fetch https://github.com/halseth/lnd.git mainnet-neutrino && git cherry-pick dbd3ca7be48027d8eda557e3c22268497ecc6b25 |
#!/bin/bash | |
# SET GPG KEY FOR ENCRYPTING WITH (COMPRESSES AS WELL) | |
GPG="" | |
# SET DROPBOX API KEY FOR UPLOADS | |
DROPBOX_APITOKEN="" | |
# OPTIONAL SET A DEVICE NAME TO BE USED FOR BACKUPS (DEFAULTS TO /etc/hostname) | |
DEVICE="" |