Skip to content

Instantly share code, notes, and snippets.

View LeSuisse's full-sized avatar

Thomas Gerbet LeSuisse

View GitHub Profile
@lg
lg / adding-tailscale-to-edgerouter.md
Last active January 14, 2026 19:35
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@srigi
srigi / gist:f81ce80d5c5c8f815e40
Created June 7, 2014 19:15
cloc statistics by commit
# !/bin/bash
startCommit=$2
initialCommit=`git rev-parse HEAD` # commit of the repository before we start the work
file='cloc-stats.csv'
# use sed to remove duplicate lines with commit ID, git-rev-list not fully accepting my format, arrrgh
if [[ $1 = "--help" || $1 = "-h" ]]; then
echo "Generate 'cloc per commit' stats from a GIT repository by following the parent links from the given commit."