Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
# | |
# based on https://gist.github.com/Manouchehri/2b1b523eed834f295915 | |
set -e | |
ISO_FILE=~/Downloads/archlinux-2021.10.01-x86_64.iso | |
DISK_FILE=archlinux.qcow2 | |
if [[ ! -f ${ISO_FILE} ]]; then |
#!/usr/bin/python3 | |
import argparse | |
import json | |
import subprocess | |
parser = argparse.ArgumentParser(description='Download from humblebundle') | |
parser.add_argument('filename', help='.json') | |
args = parser.parse_args() | |
filename = args.filename |
The modules blacklisted here takes over the pressure and magnetic sensors of the Sense HAT device which prevents other applications from using those sensors.
Create the file /etc/modprobe.d/blacklist-industialio.conf
with the following contents:
blacklist st_magn_spi
blacklist st_pressure_spi
blacklist st_sensors_spi
Loop devices are how entire file systems can be mounted. If you have had any experience with most virtualization (eg KVM, Virtualbox, VMware, etc) the most common way Guests store data is in a file (aka virtual disk) which can contain an entire operating system or more on a specified file system. The "virtual disk" file with its contents is mounted for use by the Guest and generally protected from other access.
In the same way, it might be useful to mount an ISO file for access without burning the file's contents to an optical disk (CD or DVD typically).
There are other scenarios where it's useful to mount file systems so that they are accessible from the currently running system.
The file containing the file system that attached to a loop device is typically called a backing file.
volumes: | |
example_vol: | |
driver_opts: | |
type: "nfs4" | |
o: "addr=SERVER_IP,nolock,hard,rw" | |
device: ":/path/to/dir" |
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8