Uniswap Formulae
Notes:
- Lower-case x and y denote virtual or v1 reserves, upper-case X and Y denote v3 real reserves.
- The v3 formulae have been adapted from those in the whitepaper to be in terms of price, not square-root-price.
Notes:
N. P. O'Donnell, 2023
On Linux, Hold ctrl
+ shift
+ u
at the same time, release all 3, then type the 4 hex characters of the character you'd like.
N. P. O'Donnell, 2022
#!/usr/bin/env bash | |
# | |
# Switch between Wireguard tunnels located in /etc/wireguard/ | |
# Each tunnel should be defined with a config file, eg. wg0.conf | |
# | |
# N. P. O'Donnell, 2022 | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: $0 [OPTIONS] [<new tunnel>]" | |
echo |
#!/usr/bin/env bash | |
NTOK=3 | |
do_cmd() { | |
echo "Command start $1" | |
sleep 5 | |
echo "Command end $1" | |
return 1 | |
} |
N. P. O'Donnell, 2021
Before you do anything, ensure you have cryptsetup
installed:
sudo apt-get install -y cryptsetup
N. P. O'Donnell, 2021
sudo
There may be other ways to do this, but I use the following alias:
alias xen="sudo xen $@"
N. P. O'Donnell, 2021
egrep -c '(vmx|svm)' /proc/cpuinfo
#!/usr/bin/env bash | |
# | |
# Creates a persistent, SSHable ubuntu 21.10 in a container, including tmux. | |
docker stop my-ubuntu-ctr | |
docker rm my-ubuntu-ctr | |
docker rmi my-ubuntu | |
docker build -t my-ubuntu - << HERE | |
FROM ubuntu:21.10 |