This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
# Install wget | |
RUN apt-get update | |
RUN apt-get install -y wget | |
# Add 32-bit architecture | |
RUN dpkg --add-architecture i386 | |
RUN apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# server - make a device available remotely | |
apt install linux-tools-common linux-tools-generic hwdata | |
modprobe usbip-core | |
modprobe usbip-host | |
usbipd -D # (runs in background) | |
usbip list -l | |
usbip bind -b <busid> | |
# client - attach to remote device | |
apt install linux-tools-common linux-tools-generic-hwe-18.04 hwdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
clear | |
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
### HOW TO USE | |
### Pre-req: | |
### - run on a Proxmox 6 server | |
### - a dhcp server should be active on vmbr1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
(( ${#} >= 3 )) || { echo "usage: $(basename ${0}) github-username archive-file [files | directories]"; exit 1; } | |
exec >${2} | |
zero='${0}' | |
cat <<SCRIPT | |
#!/usr/bin/env bash | |
usage() { | |
echo "usage: bash ${zero} identity-file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if NOT EXIST %HOMEDRIVE%%HOMEPATH%\vmshare ( | |
echo shared vm folder %HOMEDRIVE%%HOMEPATH%\vmshare does not exist | |
exit /B | |
) | |
if NOT EXIST %HOMEDRIVE%%HOMEPATH%\arch.iso ( | |
echo arch linux iso %HOMEDRIVE%%HOMEPATH%\arch.iso does not exist | |
exit /B | |
) | |
where vboxmanage > nul 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Takes SN, EXPIRATION, and SEED environment variables | |
# (SEED must be 32 hex digits) and converts them to | |
# an RSA SecurID token in CTF format. | |
# | |
# Requires: | |
# stoken >=v0.9 | |
# perl5 | |
# base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# non root user example for alpine | |
# | |
# usage: | |
# $ docker build --build-arg "USER=someuser" --tag test . | |
# $ docker run --rm test | |
FROM alpine | |
ARG USER=default | |
ENV HOME /home/$USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/srv/salt/dhcpd/green/dhcpd.conf | |
/srv/salt/dhcpd/green/netboot.conf | |
/srv/salt/dhcpd/green/option-space.conf | |
/srv/salt/dhcpd/green.sls | |
/srv/salt/dhcpd/green/static.conf | |
/srv/salt/dhcpd/green.upstart | |
/srv/salt/dhcpd/guest/dhcpd.conf | |
/srv/salt/dhcpd/guest.sls | |
/srv/salt/dhcpd/guest.upstart | |
/srv/salt/dhcpd/init.sls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:80 { | |
root /serve | |
} |