importing more than one library with foundry

Posted on Fri 26 May 2023 in tech

One feature that is missing in Foundry and Forge is the ability to dynamically bind libraries. In fact, it can be pretty difficult to understand how to bind libraries in general and the documenation is fairly lacking. It took me several tries to get it right.

How do I link libraries with forge? Can't really find any docs

The docs are the …


Continue reading

Send email using an iCloud custom domain

Posted on Wed 24 May 2023 in tech • Tagged with python, icloud, smtp, email

Send email using an iCloud Custom Domain

I recently required a script to send email using an Apple iCloud Custom Domain. I found that the SMTP script I used before did not work because it attempted to login with my email address. The fix is to login with your apple …


Continue reading

Introduction to market making for engineers

Posted on Sat 20 May 2023 in tech • Tagged with bitcoin, ethereum, crypto, market-making, tutorial

Market Making in Crypto

High performance trading systems designers implement event sourcing models to build of low latency distributed systems. This is useful for market making where placing buy and sell orders rapidly lowers risk and improves profitability.

In this tutorial I explain how trading systems are designed to implement …


Continue reading

UUPS ERC-1822 Proxy Contract Implementation

Posted on Fri 21 April 2023 in tech • Tagged with solidity, programming, tutorial

Universal Upgradeable Proxy Standard UUPS ERC-1822 Tutorial and Complete Working Example

The first time I had to implement a UUPS proxy I found no clear example anywhere on the Internet. There are many trial implementations and even builders that enable one to implement a proxy in the background. It is …


Continue reading

Collective Governance Deployment to Sepolia TestNet

Posted on Mon 17 April 2023 in tech • Tagged with solidity, programming, ethereum, web3, deployment

Collective Governance 0.9.8 is deployed on Sepolia TestNet.

Sepolia TestNet

Contract Ethereum Address Version
Constant 0xD5DA9B812806E080948476A801d2004f3305E63F 0.9.8
CommunityBuilder 0x4ba7E0dc43180Cb10EF53FF9Da923E02f459Ec9F 0.9.8
GovernanceBuilder 0xe1a13ea37F2BFE35B612799fcf9eBD43efA00B87 0.9.8

Collective Governance is a smart contract that allows communities to decide outcomes on-chain. Collective Governance is also designed to …


Continue reading

configure ad blocking on udm se

Posted on Fri 17 March 2023 in tech • Tagged with udm, udmse, pi-hole, adblocker

Unifi UDM-SE Adblocker

How to setup Pi-hole style blocklist on Unifi

  1. Download Fetch AdBlocker
  2. ssh to root@udmse
  3. Enable /etc/dnsmasq.d,*.conf in dnsmasq.conf
  4. Run the update_blocklist.sh script
  5. Restart or reset dnsmasq

You now have a pi-hole style config on unifi dream machine.

Full video on YouTube …


Continue reading