Skip to content

Instantly share code, notes, and snippets.

View yanosz's full-sized avatar
Drawn by the tides of confusion

yanosz yanosz

Drawn by the tides of confusion
View GitHub Profile
#!/bin/sh
logread -f | grep 'Failed to stop TX DMA' | while read line
do
/bin/date >> /tmp/wifi_restarts.log
/sbin/wifi restart
done
auto bat0
iface bat0 inet static
address 172.27.0.2
netmask 255.255.192.0
pre-up modprobe batman-adv; openvpn --mktun --dev tap-mesh; batctl if add tap-mesh
post-down openvpn --rmtun --dev tap-mesh
#
# Sample configuration file for ISC dhcpd for Debian
#
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 5;
MaxRtrAdvInterval 15;
AdvOtherConfigFlag on;
AdvLinkMTU 1350;
AdvDefaultLifetime 0;
prefix fdd3:5d16:b5dd::/64{
AdvAutonomous on;
# /etc/ssh/sshd_config
match group sftponly
ChrootDirectory /home/%u/incoming
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
#/home/ath9k-wd/.ssh/authorized_keys
from="fdd3:5d16:b5dd::/48" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwzfNj+1cuDxstP6ovmCc1wMoLFWc----
#/etc/network/interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#/etc/tinc/backbone/tinc-up
#!/bin/sh
ifconfig $INTERFACE 172.27.255.11 netmask 255.255.255.0 up
#route add default backbone
ip -6 addr add fdd3:5d16:b5dd:3::11/64 dev $INTERFACE
ip -6 addr add 2001:67c:20a0:b103::1/128 dev $INTERFACE
ip route add 172.27.255.0/24 dev backbone table ff
$ g++ -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
$ g++ -I /opt/local/include/ -L /opt/local/lib -lntl exercise5.cpp
exercise5.cpp: In function ‘NTL::mat_RR NTLGSO(NTL::mat_ZZ)’:
exercise5.cpp:31: error: expected primary-expression before ‘>’ token
# ebtables -L
Bridge table: filter
Bridge chain: INPUT, entries: 0, policy: ACCEPT
Bridge chain: FORWARD, entries: 1, policy: ACCEPT
-d Multicast --logical-out br-freifunk -o bat0 -j MULTICAST_OUT
Bridge chain: OUTPUT, entries: 2, policy: ACCEPT
-d Multicast --logical-out br-freifunk -o bat0 -j MULTICAST_OUT
$ jekyll serve --trace
Configuration file: /usr/share/tomcat6/.jenkins/workspace/test.kbu.freifunk.net-deploy/_config.yml
Source: /usr/share/tomcat6/.jenkins/workspace/test.kbu.freifunk.net-deploy
Destination: /usr/share/tomcat6/.jenkins/workspace/test.kbu.freifunk.net-deploy/_site
Generating...
Building site for default language: "de" to: /usr/share/tomcat6/.jenkins/workspace/test.kbu.freifunk.net-deploy/_site
Liquid Exception: undefined method `size' for nil:NilClass in _includes/image.html, included in index.html
/var/lib/gems/1.9.1/gems/jekyll-1.5.1/lib/jekyll/tags/include.rb:106:in `rescue in render': undefined method `size' for nil:NilClass (Jekyll::Tags::IncludeTagError)
from /var/lib/gems/1.9.1/gems/jekyll-1.5.1/lib/jekyll/tags/include.rb:98:in `render'
from /var/lib/gems/1.9.1/gems/liquid-2.5.5/lib/liquid/block.rb:106:in `block in render_all'