sudo apt update
sudo apt install openjdk-8-jdk-headless| #!/bin/bash | |
| set -e | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 filename.pfx" >&2 | |
| exit 1; | |
| fi | |
| if [ ! -e "$1" ]; then | |
| echo "File not found: $1" >&2 |
| #!/bin/sh | |
| # | |
| # Perform certificate updates in Vault. | |
| set -eo pipefail | |
| if ! vault token lookup > /dev/null; then | |
| echo "Login to Vault first." | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| # | |
| # Written by Chris Arceneaux | |
| # GitHub: https://github.com/carceneaux | |
| # Email: [email protected] | |
| # Website: http://arsano.ninja | |
| # | |
| # Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage | |
| # "artifacts:expire_in" in your .gitlab-ci.yml | |
| # |
| cd /home/<user>/ | |
| sudo apt-get install unzip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
| cd Android/tools/bin |
References:
| #!/bin/bash | |
| set -e | |
| listen_iface=${1} | |
| listen_port=${2} | |
| target_host=${3} | |
| target_port=${4} | |
| # Check non-empty | |
| [[ -n "${listen_iface}" ]] |
| #!/usr/bin/env bash | |
| set -ev | |
| set -o pipefail | |
| # Install dependencies | |
| apt update | |
| apt -y install apt-transport-https ca-certificates wget dirmngr gnupg gnupg2 software-properties-common | |
| # Install old mongo (requried). |
This uses Ubuntu's server cloud image as a stateless container to run the UBNT Unifi Controller software. Configuration data is stored in a directory outside the container. Cloud-init is used to automatically set up the container image, so a new version can be dropped in with minimal effort. This should work with pretty much any modern Linux distro with systemd.
Systemd-nspawn prefers to store its machines on btrfs, so if your /var/lib/machines is not currently btrfs, you should create one and mount it there. Otherwise it will automatically create an image file at /var/lib/machines.raw and mount it.
| UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA= |