How to switch over from SD-card to USB-attached device (USB thumbstick, USB enclosed SSD or HDD, etc.) to have more durable storage option.
-
Connect USB device to your RPI
-
Make sure USB device visible by the system
#!/bin/bash | |
HARDWARE="\ | |
kmod-pcengines-apuv2 \ | |
kmod-crypto-hw-ccp \ | |
kmod-gpio-nct5104d kmod-gpio-button-hotplug \ | |
kmod-sp5100-tco \ | |
kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb3 \ | |
kmod-sound-core kmod-pcspkr \ | |
amd64-microcode \ |
--label "traefik.enable=true" \ | |
--label "traefik.protocol=http" \ | |
--label "traefik.first.port=80" \ | |
--label "traefik.first.frontend.rule=Host:web1.example.com" \ | |
--label "traefik.second.port=8080" \ | |
--label "traefik.second.frontend.rule=Host:web2.example.com" \ | |
Above labels will allow us to forward web1.example.com to docker container port 80 and web2.example.com to same container's port 8080 |
Usage:
gitCheck [directory]
This will run git status
on each repo under the directory specified. If called with no directory provided it will default to the current directory.
Changes
Goal of this document is to describe how to setup a vpn tunnel with two pfSense boxes having the same LAN subnet, for the purpose of this doc we'll use 192.168.1.1/24 on both firewalls LAN interfaces | |
We have to make some dummy networks here to NAT to so as far as Site A will be concerned, site B will be 192.168.2.0/24, and as far as Site B is concerened site A will be 192.168.3.0/24 | |
SiteA (LAN 192.168.1.1) | |
OpenVPN Server: | |
Standard Setup and we'll use 10.0.1.0/24 as the Tunnel Network (I can elaborate here later) | |
Under advanced settings add these lines: | |
push "route 192.168.3.0 255.255.255.0"; | |
route 192.168.2.0 255.255.254.0; ### Site B LAN |
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |