Collection of personal one-liners and notes that I use regularly
Create service account
1
| NAME=git ID=2002 && pw groupadd -n $NAME -g $ID && pw useradd -n $NAME -g $NAME -u $ID -s /bin/sh -w no -d /home/$NAME -m -M 750
|
ports snap, update and make ready for poudriere
1
| DDD=$(date '+%Y%m%d') && portsnap auto && zfs snapshot rpool/usr/ports@$DDD && zfs clone rpool/usr/ports@$DDD rpool/poudriere/ports/$DDD && mkdir /usr/local/etc/poudriere.d/ports/$DDD && echo "portsnap" >/usr/local/etc/poudriere.d/ports/$DDD/method && echo "/poudriere/ports/$DDD" > /usr/local/etc/poudriere.d/ports/$DDD/mnt && poudriere ports -l
|