Skip to content

Instantly share code, notes, and snippets.

@stargieg
stargieg / geocouch-1.2.1.ebuild
Created February 16, 2013 11:14
geocouch 1.2.1 ebuild
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: http://svn.ignition-project.com/hamsterrific-overlay/trunk/dev-db/geocouch/geocouch-1.2.1.ebuild
EAPI="2"
inherit eutils git-2
DESCRIPTION="GeoCouch is a plugin for CouchDB that provides spatial support"
HOMEPAGE="https://github.com/couchbase/geocouch"
#!/bin/sh
#run with crontab
#0 8 * * * /etc/named.d/update-olsrv6.sh
export MAILTO=""
SERVER="127.0.0.1"
ZONENAME=".pberg.freifunk.net."
#ZONENET_1="2001:470:5038"
#ZONENET_1="2001:bf7:760"
#!/bin/sh
export MAILTO=""
#OLSR Router IPv6 Adresse
ROUTER="2001:470:6c:393::2"
#DNS Master Servername or IPv6 Adresse
SERVER="127.0.0.1"
#DNS Zonenenname for AAAA entry's
ZONENAME="pberg.freifunk.net."
ZONENAME1="pberg.freifunk.net"
@stargieg
stargieg / olsrd-dyn-hna6.sh
Created March 29, 2015 08:47
olsrd dyn hna6 announcement
#!/bin/sh
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
update_hna6() {
local cfg="$1"
local address="$2"
local mask="$3"
config_get interface $cfg interface
rt_sigprocmask(SIG_SETMASK, ~[HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS RTMIN RT_1], ~[KILL STOP RTMIN RT_1], 8) = 0
select(15, [3 9 11 13], [14], [], {0, 0}) = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RTMIN RT_1], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {1775, 17053534}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ~[KILL STOP RTMIN RT_1], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
ioctl(14, USBDEVFS_DISCARDURB, 0x9f568f8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RTMIN RT_1], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {1775, 18762334}) = 0
@stargieg
stargieg / dynv6.sh
Last active January 2, 2017 21:51 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
@stargieg
stargieg / mikrotik-dynv6
Last active November 21, 2024 07:58
Mikrotik dyndns for dynv6.com
# Define User Variables
:global ddnspass "TOKEN"
:global ddnshost "HOSTNAME.dynv6.net"
#:global ddnspool "pool0"
#:global ddnsinterface "bridge"
#:global ddnsinterface "6to4-henet"
#:global ddnsinterface "pppoe-out1"
#:global ddnsinterface "ether1"
# Define Global Variables
@stargieg
stargieg / mqtt-send-ip6-neigh.lua
Created January 13, 2019 19:05
Send ip6 neigh addr via mqtt
local function send_ip6neigh(mqtt,dev)
local neigh_table = nil
local neightbl = require "neightbl"
local neigh = nil
local qos = 1
local retain = false
neigh_table=neightbl.get(dev)
for ip,mac in pairs(neigh_table) do
if mac then
@stargieg
stargieg / update-luci2-ffwizard.sh
Last active March 15, 2021 05:34
create ipkg feed for the imagebuilder
#!/bin/sh
#sudo apt install python2 python3 subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc zip imagemagick
upd_out="luci2-ffwizard"
upd_path=$(pwd)
upd_targets="ath79 ar71xx x86 brcm2708"
upd_subtargets="generic 64 bcm2708 legacy mikrotik"
slots="snapshots 19.07.7"
gcc_vers="gcc-8.4.0_musl gcc-8.4.0_musl_eabi gcc-7.5.0_musl gcc-7.5.0_musl_eabi"
for slot in $slots;do
@stargieg
stargieg / update-ubnt-nano-m.sh
Created March 12, 2021 21:13
Build Firmware for ubnt-nano-m with minimal packages selection
#!/bin/sh
#sudo apt install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc zip imagemagick
umask 022
upd_out="ubnt-nano-m"
upd_target="ar71xx"
upd_subtarget="generic"
upd_profile="ubnt-nano-m"
upd_profilel=$(echo "$upd_profile" | tr '[:upper:]' '[:lower:]')
#slot="snapshots"