Skip to content

Instantly share code, notes, and snippets.

ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@vekexasia
vekexasia / fix_ubuntu.sh
Last active August 29, 2015 14:06
Fix Bash Bug 'Shell Shock' ubuntu
sudo apt-get -y install build-essential
mkdir src
cd src
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
#download all patches
for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
#apply all patches
for i in $(seq -f "%03g" 0 25);do patch -p0 < ../bash43-$i; done
@rubo77
rubo77 / traffic-analysis.sh
Last active August 29, 2015 14:26
analyses the number of clients that cause traffic during a given time on a Freifunk gateway
duration=$1
tmp=/tmp/traffic.tmp
localnet="10.116.128.0/17"
iface=br-ffki
echo capturing for $duration seconds
(
sleep $duration
pkill -f tcpdump
) &
@tcatm
tcatm / faq.md
Last active August 29, 2015 14:27

Gibt es eine Grundgebühr?

Nein. Nach dem Erwerb des Knotens nimmst du direkt am Mesh teil. Es gibt keine weiteren Kosten.

Ist Freifunk ein Ersatz für meinen Internetanschluss?

Nein, im Moment nicht. Das Mesh lässt sich jedoch gut als Ersatz verwenden, falls dein Internetanschluss ausfällt. Wenn du in Funkreichweite anderer Knoten bist, wird dein Knoten automatisch eine andere Verbindung nutzen.

Welche Vorteile bringt mir Freifunk gegenüber dem Internet?

@rubo77
rubo77 / matrix-kick-irc-users.sh
Last active November 19, 2016 08:05
bash script to kick all IRC users in a matrix channel
#!/bin/bash
# crontab -e
# 23 4 * * * bash /home/irc-bridge/.synapse/EIGENE_purge_history_daily > /dev/null 2>&1
cd /home/irc-bridge/.synapse/
DOMAIN="matrix.domain.org"
ADMIN="@some_admin:$DOMAIN"
TOKEN=$(sqlite3 homeserver.db "select token from access_tokens where user_id like '$ADMIN' order by id desc limit 1;")
@rubo77
rubo77 / ipv6-httpd.py
Created November 24, 2015 12:56 — forked from akorobov/ipv6-httpd.py
quick ipv6 http server using python's SimpleHttpServer
import socket
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class MyHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/ip':
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers()
@Noitidart
Noitidart / _ff-addon-template-bootstrapPrefsSkeleton.js
Last active July 2, 2018 09:30
_ff-addon-template-bootstrapPrefsSkeleton - Shows the bare minimum I use for my addons with preferences. Utilizes inline options interface.
// naming gist
required types
--------------
- [X] Block allocation/freeing/delegation
- [ ] request for block owner
- [ ] lease renewal (proxy)
- [ ] lease renewal response (proxy)
Allocate Block

this is the output of the script generate_markdown_of_packages.sh below:

Main Gluon Packages

gluon/package/gluon-alfred

Configure alfred

depends on +gluon-core +gluon-respondd +gluon-neighbour-info gluon-mesh-batman-adv +micrond +alfred