To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| from subprocess import run | |
| from tempfile import TemporaryDirectory | |
| if __name__ == '__main__': | |
| with TemporaryDirectory() as tempdir: | |
| run([ | |
| 'google-chrome', | |
| '--user-data-dir==' + tempdir, | |
| '--incognito', |
# stop active raid
mdadm --stop /dev/md[01]
# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
dd if=/dev/zero of=/dev/sdc bs=1M count=512
dd if=/dev/zero of=/dev/sdd bs=1M count=512| # use a certain pyenv version | |
| use_python() { | |
| if [ -n "$(which pyenv)" ]; then | |
| local pyversion=$1 | |
| pyenv local ${pyversion} | |
| fi | |
| } | |
| layout_virtualenv() { | |
| local pyversion=$1 |
| #!/bin/bash | |
| set -eo pipefail | |
| DOMAIN=example.com | |
| ENTRY=examplehost | |
| #LINE_TOKEN=xxxxxx | |
| get_ip() { | |
| curl -s 'https://api.ipify.org' |
| version: "3.9" | |
| services: | |
| jupyter: | |
| image: quay.io/jupyter/scipy-notebook | |
| ports: | |
| - "8888:8888" | |
| volumes: | |
| - ./notebooks:/home/jovyan/ | |
| environment: |
My work requires us to have full-disk encryption, so these are the steps I use.
The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.
The GRUB boot partition isn't encrypted, but everything else is.
These steps tested and working on 22.04 (jammy) and 20.04 (focal).