Skip to content

Instantly share code, notes, and snippets.

View metrafonic's full-sized avatar
🌴
On vacation

Mathias metrafonic

🌴
On vacation
View GitHub Profile
@metrafonic
metrafonic / Dockerfile
Last active March 23, 2023 01:20
Dalai Docker
FROM python:3.10-slim-buster
# The dalai server runs on port 3000
EXPOSE 3000
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \
@metrafonic
metrafonic / Dockerfile
Last active March 22, 2023 20:29
Dalai Dockerfile
FROM python:3.10-slim-buster
# The dalai server runs on port 3000
EXPOSE 3000
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \

Keybase proof

I hereby claim:

  • I am metrafonic on github.
  • I am metrafonic (https://keybase.io/metrafonic) on keybase.
  • I have a public key whose fingerprint is 7AEC FF49 B14B 02BF E675 934E 15F3 AFA7 480F A167

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am metrafonic on github.
  • I am metrafonic (https://keybase.io/metrafonic) on keybase.
  • I have a public key ASC-0yc-K6817_cJLqHyvF3opg2YqfCcaNKqYRBjOTmESAo

To claim this, I am signing this object:

#!/bin/vbash
# /config/scripts/dynamic-vti.sh
# configure vti address based on dynamic dns address
NEW_IP=$(getent hosts yourdomain.com | awk '{ print $1 }')
CUR_IP=$(cat /config/config.boot | grep site-to-site -A1 | grep peer | awk '{ print $2}')
echo "CURRENT: $CUR_IP"
echo "NEW: $NEW_IP"
@metrafonic
metrafonic / openpgp.txt
Created September 21, 2016 18:55
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:1d57c8f7f590ffc9bf0e9d80941db86549ac45f8]
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2
owEBQgK9/ZANAwAIAS5SBSn2AiidAcsSYgBXSMy8YWFhYWFhYWFhYWEKiQIcBAAB
CAAGBQJXSMzBAAoJEC5SBSn2AiidjDQQAOPAJ5cgXVNtTMtQyn2LFIJUusniRvvx
s9GM9nGPoaCSgH8v3aO28+lnko1whDrcxWHql67PUUOq7TB+i3BKiRLL9eoADbus
6xJcdPiEZ4+bEoJTEYf4sBa32G446mXIhXWpjxLHIxVqUULUT43/6ZAyt9eoDUJD
+PR+1ciVzLBDTh16qmU9AKN5fB/cpHW3j13ndp6PFUjIisvVEh6r909vMZBNSUvH
FNDQvsGrXD89aXpmLC6E3Sui0PGU79HKuroqJfR2ZaAPC3XkWxZxR7/UhaX3aRfK
sG5gfbck2DDIZdIrkpvqk7K9CD8bTqy4pHyB+RE+A0ZLYm2bHgLotxRrFaZ+T2jy
-----BEGIN PGP MESSAGE-----
hQIMAzCEJJ0Z/DYSARAAwf55hs+WqzaAFSaTevD4TbQaV/B4m9wqV18c6rKsvsvc
1Mg7nwcuom+xzWhkLTPKnOVi2+6AMgSme12OHrBXu3/Lmat5tNsBIZN3w53DhqK8
A6z+TEa8Sl4PLLpamAS1I0lZg553h8RbgNgHSfNdhLyVbTUL0UTeEz5M4BhcHNg2
8/3n9ehz4n8O21ezdE9Zc8vY4Dfn5WGCe3MHB5UGSk+3Er1EjTxeMOe0AgX2dz+y
7njvKcZhiltMhTggV8rwtfnjVGAAOAkcX1a+14W6g2gzHE9r04O8xFX+zJ7qd2x8
tKf+YNQuQ+pUMWhUK3/L4rcKdSFhYKMbsvR9xWrkKMuC+nFgNkX0Cvk9wI83+JSN
aG7X1ILkzjeclaGeyUu/CF8NZBrfnjCVyDG8EhIcx1+pOqjXPq9JoIaTjgQ73emu
JlDK+oaiDAsLyOncLZXHv4DD94Bxi97pEdtrlLl9pvmJkliBgggjMspLy1U9MTka
@metrafonic
metrafonic / openpgp.txt
Created May 27, 2016 17:34
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5dc45c8f7590e37aa5ffad316a6b406d21584f5]
@metrafonic
metrafonic / r-rr1x.md
Last active April 29, 2016 11:40
Rød ruter 1

r-rr-1[a-f] (TKN Pseudowire)

"[a-f]" erstattes med lag bokstav

"x" erstattes med lag nummer

Basic config:

Slett gammel config:

> enable