Skip to content

Instantly share code, notes, and snippets.

View dangowrt's full-sized avatar
🕶️
(void)

Daniel Golle dangowrt

🕶️
(void)
View GitHub Profile
@dangowrt
dangowrt / gist:37d956fc2f54fd59e7db
Created April 21, 2015 10:35
kad164: pseudo-e164 dialplan helper script using kadnode
#!/bin/sh
NUM="$1"
uri=""
num2name() {
l=${#NUM}
i=$l
while [ $i -gt 0 ]; do
n="$( echo "$NUM" | cut -b ${i} )"
@dangowrt
dangowrt / gist:738c57a58e1f70a70ab5
Last active June 28, 2021 12:08
build-hardened-openwrt-sdk-for-cjdns.sh
#!/bin/sh
SRC="git://git.openwrt.org/openwrt.git"
# local sources
# SRC="/usr/src/openwrt/.git"
# DL="/usr/src/openwrt/dl"
TARGET="ar71xx"
[ "$1" ] && TARGET="$1"
@dangowrt
dangowrt / gist:e65dfde190fb1fcaf05f
Last active December 29, 2023 07:05
cjdns exit tunnel broker brainstorming

#Clearnet-Exit tunnel broker brainstorming

For now: https://github.com/BerlinMeshnet/visp ie. a bunch of Ruby scripts setting up cjdns to setup IP tunnels.

##What we need is similar to an open tunnel broker.

Tunnel brokers may offer multiple tunneling protocols, such as IP Tunnels, L2TP pseudo-wires, IP-over-GRE, ... to clients, carrying different types (IPv4-behind-NAT, public-IPv4, IPv6-single-address, IPv6-routed-prefix, ...) of services and may possibly restricted traffic types (e.g. DNS-and-outgoing-TCP-to-common-ports-only)

@dangowrt
dangowrt / l2tpv3.sh
Created May 2, 2015 17:48
/etc/network/l2tpv3.sh
#!/bin/sh
# l2tpv3.sh - L2TPv3 tunnel backend using ip-full
# Copyright (c) 2010-2015 OpenWrt.org
# This file was part of l2tpv3tun and ported to use ip-full.
ip l2tp show tunnel 2>/dev/null 1>/dev/null || exit 0
l2tpv3_next_tunnel_id() {
local max=0
local val
@dangowrt
dangowrt / gist:4803578dbeefa6f3183c
Created June 24, 2015 16:36
asterisk11-chan-dongle: git diff jstasiak/master..bg111/master
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index fcf14a7..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,18 +0,0 @@
-.INSTALL.swp
-.gitignore
-Makefile
-aclocal.m4
LoadPlugin modbus
<Plugin modbus>
<Data "panel-voltage-input">
RegisterBase 12544
RegisterType Uint16
RegisterCmd ReadInput
Type voltage
Instance "panel-voltage"
Scale 0.01
</Data>