Skip to content

Instantly share code, notes, and snippets.

View epatrasc's full-sized avatar
:octocat:
Coding

Emilian Patrasc epatrasc

:octocat:
Coding
View GitHub Profile
@epatrasc
epatrasc / gs-pull-parallel
Last active February 15, 2023 10:21
Pull repositories from a monorepo in parallel
#!/bin/bash
PARALLEL=${1:-5}
directories=()
for dir in */ ; do
if [ -e "$dir/.git" ] ; then
directories+=("$dir")
fi
done
@epatrasc
epatrasc / home-server.md
Created October 26, 2020 09:25 — forked from nileshtrivedi/home-server.md
Home Server setup: Raspberry PI on Internet via reverse SSH tunnel

Raspberry Pi on Internet via reverse SSH tunnel

I already have my own domain name: mydomain.com. I wanted to be able to run some webapps on my Raspberry Pi 4B running perpetually at home in headless mode (just needs 5W power and wireless internet). I wanted to be able to access these apps from public Internet. Dynamic DNS wasn't an option because my ISP blocks all incoming traffic. ngrok would work but the free plan is too restrictive.

I bought a cheap 2GB RAM, 20GB disk VM + a 25GB volume on Hetzner for about 4 EUR/month. Hetzner gave me a static IP for it. I haven't purchased a floating IP yet.

I created a subdomain u1.mydomain.com with its A record pointing to the above static IP address.