Skip to content

Instantly share code, notes, and snippets.

View Freeaqingme's full-sized avatar
💭
Hello? Is this thing on?

Dolf Schimmel Freeaqingme

💭
Hello? Is this thing on?
View GitHub Profile
[pid 15372] futex(0x7f56bd77a584, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 180037, {1382713223, 284066576}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 15372] clock_gettime(CLOCK_REALTIME, {1382713223, 284262812}) = 0
[pid 15372] futex(0x7f56bd77a5b0, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 15372] futex(0x7f56bd77a584, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 180039, {1382713223, 294262812}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 15372] clock_gettime(CLOCK_REALTIME, {1382713223, 294443228}) = 0
[pid 15372] futex(0x7f56bd77a5b0, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 15372] futex(0x7f56bd77a584, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 180041, {1382713223, 304443228}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 15372] clock_gettime(CLOCK_REALTIME, {1382713223, 304614972}) = 0
[pid 15372] futex(0x7f56bd77a5b0, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 15372] futex(0x7f56bd77a584, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 180043, {1382713223, 314614972}, ffffffff) = -1 ETIMEDOUT
16:58:42.512969 IP6 2001:470:b792:1:940:2d84:8ea2:7e96 > 2a03:2880:f006:301:face:b00c:0:1: ICMP6, echo request, seq 533, length 64
16:58:42.512969 IP6 2001:470:b792:1:940:2d84:8ea2:7e96 > 2a03:2880:f006:301:face:b00c:0:1: ICMP6, echo request, seq 533, length 64
16:58:42.513011 IP6 2001:470:b792:1:940:2d84:8ea2:7e96 > 2a03:2880:f006:301:face:b00c:0:1: ICMP6, echo request, seq 533, length 64
16:58:42.542823 IP6 2a03:2880:f006:301:face:b00c:0:1 > 2001:470:b792:1:940:2d84:8ea2:7e96: ICMP6, echo reply, seq 533, length 64
16:58:42.542897 IP6 2a03:2880:f006:301:face:b00c:0:1 > 2001:470:b792:1:940:2d84:8ea2:7e96: ICMP6, echo reply, seq 533, length 64
16:58:42.557646 IP6 2a03:2880:f006:301:face:b00c:0:1 > 2001:470:b792:1:940:2d84:8ea2:7e96: ICMP6, echo reply, seq 533, length 64
16:58:42.557719 IP6 2a03:2880:f006:301:face:b00c:0:1 > 2001:470:b792:1:940:2d84:8ea2:7e96: ICMP6, echo reply, seq 533, length 64
16:58:42.572402 IP6 2a03:2880:f006:301:face:b00c:0:1 > 2001:470:b792:1:940:2d84:8ea2:7e96: ICMP6, echo reply, seq 5
@Freeaqingme
Freeaqingme / gist:7045137
Created October 18, 2013 17:39
/usr/share/lxc/templates/lxc-ubuntu LXC Ubuntu template, with autoconf/SLAAC, mDNS, fixed hostnames and Puppet
--- tpl.default 2013-10-18 17:05:30.454860448 +0200
+++ files/manifests/basenode/lxc/template_ubuntu 2013-10-18 19:25:10.563448837 +0200
@@ -46,17 +46,19 @@
iface lo inet loopback
auto eth0
-iface eth0 inet dhcp
+#iface eth0 inet dhcp
+iface eth0 inet manual
EOF
@Freeaqingme
Freeaqingme / gist:6309733
Last active June 14, 2022 19:14
Netflix VPN routing. I got this setup: client -> (tun) eu vpn (tun1) --> us vpn This is the firewall config relevant to forwarding all netflix traffic from client to US vpn. This does not work. See also my blogpost on http://freeaqingme.tweakblogs.net
/sbin/iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -s 172.16.0.0/12 -j ACCEPT
/sbin/iptables -t nat -s 172.16.0.0/12 -o eth0 -A POSTROUTING -j SNAT --to 91.214.168.110
#
# Netflix
#
for i in /proc/sys/net/ipv4/conf/*/rp_filter ; do
echo 2 > $i
done
$default_packages = [ "vim-enhanced", "strace", "wget", "git", "man", "patch", "Pound", "fuse-sshfs"]
package { $default_packages :
ensure => latest,
require => Yum::Managed_yumrepo['epel']
}
<?php
error_reporting(-1);
ini_set('display_errors',1);
if (@$i / 0 ) {
echo 'hoi';
} else {
echo 'doei';
}
Spec:
@@bind::record { $::fqdn:
zone => 'enrise.com',
type => 'A',
target => $::network_ethPublic
}
Result:
define bind9::record($fqdn='', $target='', $type='A', $order=10) {
<?php
$obj = (object) array('foo' => 'bar');
var_dump(zend_shm_cache_store('myLittleKey', $obj));
var_dump($res = zend_shm_cache_fetch('myLittleKey'));
var_dump(serialize($obj)==serialize($res));
Error: http://img14.imageshack.us/img14/5259/vwr2.png
"It appears as though you do not have permission to view information for any of the services you requested..."
But the cgi.cfg file does look correct:
root@internal-services02:/usr/lib/cgi-bin/icinga# grep authorized_for_ /etc/icinga/cgi.cfg
authorized_for_system_information=icingaadmin
authorized_for_configuration_information=icingaadmin
authorized_for_full_command_resolution=icingaadmin
authorized_for_system_commands=icingaadmin
# NOTE: Users in authorized_for_all_hosts are also automatically
class cluster::internal-services::role::icinga (
) {
class { '::icinga':
puppi => true,
enable_idoutils => true,
enable_icingaweb => true,
enable_debian_repo_legacy => false,
manage_repos => true,