Syncthing on Ubuntu quick start

Syncthing rocks – it’s like a DIY open source Dropbox. Bulletproof syncing between your own machines. Navigates firewalls well (although you can punch firewall holes to speed up transfers). Here’s how I get it set up and running on Ubuntu (18.04 LTS at the time of writing). I think it is best set up as …

Encrypted partition path derivation via linear search through incrementally encoded packed data

locate is a lightning-fast command line search utility. It first hit the press in the early 80s when James A. Woods proclaimed the tradeoff of nightly updates is worth it for sub-second filesystem path matches. The proposed architecture is simple but effective: incrementally encode all paths in a purpose-built binary database and perform matches with linear …

UDP 1, 2, 3: netcat vs. socat

TCP is handy for simple, reliable communications like this tiny toy logger. I run the server and clients in separate consoles on the same machine: # TCP log server nc -kl 8000 > server-log.txt # TCP logging from netcat client date | nc 127.0.0.1 8000 # TCP logging from socat client date | socat STDIN TCP:localhost:8000 # TCP …

how to upgrade MongoDB 2.6 to 3.x on Ubuntu

sudo mv /etc/apt/sources.list.d/mongodb* /tmp/ echo “deb http://repo.mongodb.org/apt/ubuntu “$(lsb_release -sc)”/mongodb-org/3.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update && sudo apt-get install -y mongodb-org And I also had to do fix my replica set in the MongoDB shell (necessary for Meteor oplog tailing): var a = {“_id” : “rs0”, “version” : 1,”members” : [{“_id” : 1, …