Skip to content

Instantly share code, notes, and snippets.

View soaxelbrooke's full-sized avatar
📈
Text ⇨ Understanding

Stuart Axelbrooke soaxelbrooke

📈
Text ⇨ Understanding
View GitHub Profile
@soaxelbrooke
soaxelbrooke / adding-tailscale-to-edgerouter.md
Created January 9, 2023 18:14 — forked from lg/adding-tailscale-to-edgerouter.md
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
@soaxelbrooke
soaxelbrooke / ml_utils.py
Last active October 13, 2018 23:34 — forked from zmjjmz/ml_utils.py
regexp match lookup layer
import keras
import tensorflow
import numpy
import re
# Capturing group is important so it can be left padded with space (token splitter)
token_pattern = r"([\w']+|[,\.\?;\-\(\)])"
substitution = r" \1"
@soaxelbrooke
soaxelbrooke / get_dynamo.sh
Last active May 30, 2017 03:40 — forked from vedit/gist:ec8b9b16d403a0dd410791ad62ad48ef
dynamodb local setup
#!/bin/bash
DYNAMODB_USER=stuart
cd /home/${DYNAMODB_USER}/bin
mkdir -p dynamodb
cd dynamodb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
tar -xvzf dynamodb_local_latest.tar.gz
  • Update HISTORY.rst
  • Update version number in my_project/__init__.py
  • Update version number in setup.py
  • Install the package again for local development, but with the new version number:
python setup.py develop
  • Run the tests:
python setup.py test