Skip to content

Instantly share code, notes, and snippets.

View Ikke's full-sized avatar

Kevin Daudt Ikke

  • Netherlands
  • 01:34 (UTC +02:00)
View GitHub Profile
@Ikke
Ikke / _README.md
Created August 6, 2022 21:04
Docker + traefik + ipv6

IPv6 via traefik in docker

This adds an additional network to the traefik container with a public IPv6 network attached to it. Docker will automatically assign a free address to the traefik container from the IPv6 subnet

Internally traefik will still forward traefik over an IPv4 network

Note that, because docker does not do any NAT for IPv6 or proxying, and this uses publically routable IPv6 addresses, traffic directly reaches the containers, unless you block it with a firewall. For 80/443, you actually want this to happen though.

@Ikke
Ikke / ruby.vim
Created January 24, 2019 09:11
Ruby heredoc syntax highlighting
let s:bcs = b:current_syntax
unlet b:current_syntax
syntax include @SQL syntax/sql.vim
unlet b:current_syntax
syntax include @SHELL syntax/sh.vim
unlet b:current_syntax
syntax include @CONF syntax/conf.vim
@Ikke
Ikke / brand.conf.php
Last active October 27, 2020 11:26
Zabbix branding configuration
<?php
//PHP5.6+
return [
'BRAND_HELP_URL' => '',
'BRAND_LOGO' => '',
'BRAND_FOOTER' => '',
];
@Ikke
Ikke / fix-python37.patch
Created August 12, 2018 11:31
Solaar 0.9.2 patch to support python 3.7
diff --git a/lib/solaar/ui/__init__.py b/lib/solaar/ui/__init__.py
index 5a0340e..80441f5 100644
--- a/lib/solaar/ui/__init__.py
+++ b/lib/solaar/ui/__init__.py
@@ -123,7 +123,7 @@ _queue_processor.start()
del Thread
-def async(function, *args, **kwargs):
+def ui_async(function, *args, **kwargs):
#!/bin/bash
site=$(basename $0)
google-chrome-stable --app="https://$site"
ip prefix-list deny-loopback permit 192.168.0.0/16 le 31
ip prefix-list deny-loopback deny 192.168.0.0/16 ge 32
route-map EBGP
match ip address prefix-list deny-loopback
router bgp 65001
!...
! Does not seem to work
redistribute connected route-map EBGP
@Ikke
Ikke / check_crt.py
Last active September 10, 2017 11:05
#!/bin/env python3
import sys
import os
import time
import datetime
from sh import openssl
from datetime import datetime as dt
if len(sys.argv) < 2:
@Ikke
Ikke / write_stats.py
Created March 29, 2017 20:25
Write stats to redis
#!/bin/python
import redis
import sys
import datetime as DT
class Stat:
@staticmethod
def store_new_stat(r, stat):
p = r.pipeline()
agentAddress 161
rocommunity <communitrystring> <subnet>
includeAllDisks 90%
## Make easy to monitor certain processes
#proc xyx
## Additional scripts to call
# extend NAME /path/to/script
3-12-2016 18:39:32 1480786772 8
3-12-2016 18:34:32 1480786472 8
3-12-2016 18:29:32 1480786172 8
3-12-2016 18:24:32 1480785872 8
3-12-2016 18:19:31 1480785571 8
3-12-2016 18:14:31 1480785271 8
3-12-2016 18:09:32 1480784972 8
3-12-2016 18:04:32 1480784672 8
3-12-2016 17:59:32 1480784372 8
3-12-2016 17:54:50 1480784090 8