Skip to content

Instantly share code, notes, and snippets.

View paaland's full-sized avatar

Pål Andreassen paaland

  • Norway
View GitHub Profile
@paaland
paaland / Transform.cs
Created September 16, 2020 12:54 — forked from oliverheilig/Transform.cs
GeoTransform
// This snippet contains methods to transform between the
// various "coordinate formats" used by PTV components
using System;
public class Program
{
public static void Main()
{
var pWgs = new Point(8.4, 49.0); // Karlsruhe
var pPtv_Geodecimal =

Keybase proof

I hereby claim:

  • I am paaland on github.
  • I am paaland3 (https://keybase.io/paaland3) on keybase.
  • I have a public key ASBEHC0q7kicdUuO5UKQhDT48FUu9ufye96Grj-K1db2Vgo

To claim this, I am signing this object:

@paaland
paaland / #0_6rd.sh
Created August 8, 2017 19:15
Altibox w/ IPv6 on EdgeRouter PoE
#!/usr/bin/env sh
# https://kradalby.no/setting-up-6rd-on-my-linux-router.html
PREFIX=2a01:79c::
PREFIX_LENGTH=30
RELAY_PREFIX=213.167.115.92
RELAY_PREFIX_LENGTH=0
PUBLIC=$(curl http://canihazip.com/s)
ipv6calc --action 6rd_local_prefix --6rd_prefix $PREFIX/$PREFIX_LENGTH --6rd_relay_prefix $RELAY_PREFIX/$RELAY_PREFIX_LENGTH $PUBLIC