This howto is valid for Betanet on Ubuntu or Debian
You have to install some dependencies. In debian / ubuntu run:
| #!/bin/bash | |
| ROCKSDB_VERSION=5.11.3 | |
| #Run as a root user | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root (with sudo command)" | |
| exit | |
| fi |
| #!/bin/bash | |
| WALLET_PASS=$1 | |
| AKASH_PATH='/usr/local/bin' | |
| WALLET=$(echo -e "$WALLET_PASS\n" | $AKASH_PATH/akashctl keys list -n) | |
| while true; do | |
| POWER=$($AKASH_PATH/akashctl status | jq -r '.[] | .voting_power' | tail -1 | sed -e 's/^"//' -e 's/"$//') |
| #!/bin/bash | |
| # | |
| # 20210119 - Use the new --endpoint flag | |
| # - Added verbose logging | |
| # | |
| # 20200608 - Updated to TzKt API | |
| # | |
| # 20191029 - Added /v3/network back in. | |
| # Thanks to Baking-Bad and their Mystique API |
| #!/bin/sh | |
| URL="https://file.io" | |
| DEFAULT_EXPIRE="14d" # Default to 14 days | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: file.io FILE [DURATION]\n" | |
| echo "Example: file.io path/to/my/file 1w\n" | |
| exit 1 | |
| fi |
| /** | |
| * Overflow aware uint math functions. | |
| * | |
| * Inspired by https://github.com/MakerDAO/maker-otc/blob/master/contracts/simple_market.sol | |
| * Sourced from https://github.com/bokkypoobah/TokenTrader/wiki/1ST-%E2%80%90-First-Blood | |
| * | |
| * WARNING: I'm currently researching proper usage - Not recommended based solely on my gist. | |
| */ | |
| contract SafeMath { | |
| //internals |
In experience to get a proper working multiple wan configuration using mwan3 starting from scratch you should:
Important: this works well on OpenWRT 15.05.1, on newer versions there was some breaking changes, for example, the wan ifaces have ipv6 capability and now are named with letters ("wan, wanb... , wanc" instead of "wan, wan2... wan3" so wanb6 means 2nd wan ipv6.): https://github.com/openwrt/packages/blob/master/net/mwan3/files/etc/config/mwan3
The official documentation seems to be very detailed and up to date, I recommend reading those first: https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3 but I recommend to give a look at my config file below, since my approach for policyes is very nice.
First of all: Activate conntrack, docs says that is important and neccesary to get MWAN3 work properly, and it is needed to reboot:
| ### | |
| # Proxmox or other server kernel params cheap tune and secure. | |
| # Try it if you have heavy load on server - network or memory / disk. | |
| # No harm assumed but keep your eyes open. | |
| # | |
| # @updated: 2020-02-06 - more params used, adjust some params values, more comments on params | |
| # | |
| ### NETWORK ### |
The assumed default setting in /etc/systemd/journald.conf is Storage=auto which implies that systemd journaling will only persist the journal if the expected storage location is available. Otherwise, the journal data is stored in memory and lost between reboots. On Ubuntu 16.04, /var/log/journal does not exist by default. Create it to keep and query events from previous boots.
Considerations:
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would