Use the following commands to add the kubectl autocomplete to zsh:
mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh
Since as of now there is no binary release for Hashicorp Nomad in aarch64, we'll have to compile it from scratch.
As of now, the mainline kernel that motorola-ali
uses comes with a couple of netfilter extensions disabled, and we'll have to enable them for the CNI plugins that Nomad uses.
Edit the kernel kconfig with:
Note: This guide assumes your phone is already unlocked, and you have some experience running fastboot
and Linux commands.
Note: if you plan to run Hashicorp Nomad or something else that uses a container networking interface, you'll probably need to enable some kernel modules. See these instructions to do it before you configure Wi-Fi to avoid having to do it twice.
This script was adapted to allow you to play audio files through your microphone input. It does so by creating a virtual microphone and piping an audio file to it.
The work was mostly done in this StackOverflow answer, I just adapted it to use ffmpeg and add a trap to cleanup on exit.
Requirements:
This is an example workaround for getting Terraform input variables when you won't have jq
available in the executing machine.
Uses sed
to parse the input JSON to extract a certain key from the input JSON.
Warning: this hasn't really been well-tested, it will pretty much work only with string values and will likely break for strings that have quotes. Might give you an idea of how to improve it for your implementation though.
This S3 bucket policy allows CloudFormation to read your Nested Stack template without making it public for everyone.
Policy JSON:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCloudformationAccessBucket",
"Effect": "Allow",
# /etc/securetty: list of terminals on which root is allowed to login. | |
# See securetty(5) and login(1). | |
console | |
# Local X displays (allows empty passwords with pam_unix's nullok_secure) | |
:0 | |
:0.0 | |
:0.1 | |
:1 |