added stuff

This commit is contained in:
Jeffrey Paul 2019-03-20 23:40:37 -07:00
parent 0b94854432
commit 95b737c5fa
3 changed files with 54 additions and 0 deletions

18
misc/startsession Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
YYYYMM="$(date -u +%Y%m)"
TS="$(date -u +%F-%T%z)"
RECDIR="$HOME/Documents/sync/recsessions"
if [[ ! -d "$RECDIR" ]]; then
echo "recdir $RECDIR not found." > /dev/stderr
exit 1
fi
if [[ ! -d "$RECDIR/$YYYYMM" ]]; then
mkdir -p "$RECDIR/$YYYYMM"
fi
OUTPUT="$RECDIR/$YYYYMM/session.$TS.json"
exec asciinema rec -w 5 "$OUTPUT"

30
rpi/init.sh Normal file
View File

@ -0,0 +1,30 @@
#!/bin/bash
PKGS="
bash-completion
build-essential
byobu
command-not-found
cryptsetup-bin
daemontools
golang-go
iptables-persistent
iptraf-ng
jq
less
lsof
mosh
ntp
pbzip2
pv
runit
runit-systemd
socat
vim
wget
"
export DEBIAN_FRONTEND=noninteractive
sudo apt update
sudo apt install -y $PKGS

6
rpi/setup-keys.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
KEY_URL="https://sneak.cloud/authorized_keys"
curl -fLo /root/.ssh/authorized_keys --create-dirs $KEY_URL
curl -fLo /home/pi/.ssh/authorized_keys --create-dirs $KEY_URL