A collection of useful utilities for running commands, configuring machines, etc.
Some of these utilities execute a sequence of steps. They require a shell as input and actually run a command remotely.
The rest only construct a command that can be executed and return it to the caller without executing anything.
There are also some utilities that don't construct or run commands. They are just useful functions that I wrote.
Add the executing user to the given group. Requires
Create a new partition on the given device. Requires
Given a string, encode all single quotes so that the whole string can be passed correctly as a single argument to a bash command.
Formats and mounts the given device as ext4 at the given mountpoint owned by the given user. The given partition and mountpoint are assumed to be valid (we don't check). We will assume quite a few things for simplicity:
Returns the human-readable size of the devices
Given a host:ip address, return
Returns the list of devices mounted and their mountpoints. For example,
Returns a list of partitions of the given device. For example,
Returns a list of devices with no partitions. For example,
Reboot and wait for the remote machine to come back up again. Requires
Sets the CPU scaling governor to the given governor. This requires
Turn off the swap device. Requires
Turn on the swap device. Requires
Write a new general partition table (GPT) on the given device. Requires