Skip to content

Instantly share code, notes, and snippets.

View lamafab's full-sized avatar

Fabio Lama lamafab

View GitHub Profile
@lamafab
lamafab / assign_static_ip_nspawn_container.md
Last active September 8, 2024 11:47
Assign static IP address to systemd-nspawn container (private networking mode)

Assign static IP address to systemd-nspawn container (private networking mode)

(Originally posted here)

On the host

Configure the host interface which will be exposed to the container.

$ sudo cp /lib/systemd/network/80-container-ve.network /etc/systemd/network/80-container-<MY_CONTAINER>.network
@lamafab
lamafab / update_kusama.sh
Last active January 8, 2020 16:33
[W3F HQ] Script to update and run Polkadot
#!/bin/bash
# This script assumes that Polkadot is cloned in the relative path `polkadot/`
# and the file `run_kusama.sh` (which actually executes the program) is present.
#
# Example usage: `$ ./update_kusama.sh v0.7.15`
print_error () {
echo -e "\e[41m[!!]\e[0m Please specify a valid git tag"
echo "Example command:"