Skip to content

Instantly share code, notes, and snippets.

Avatar

Radek Zajic zajdee

  • Prague
View GitHub Profile
View O2-Internet-iPhone-IPv4v6-dualapn.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Installs APN internet IPv4v6</string>
</dict>
<key>PayloadContent</key>
@zajdee
zajdee / O2-Internet-iPhone-IPv4v6.mobileconfig
Created Sep 28, 2020
APN config for dual-stack (IPv4v6) APN "internet" for O2 Czech Republic
View O2-Internet-iPhone-IPv4v6.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Installs APN internet IPv4v6</string>
</dict>
<key>PayloadContent</key>
@zajdee
zajdee / measurement.anonymized.json
Created Aug 27, 2020
Vodafone gigabit service measurements
View measurement.anonymized.json
This file has been truncated, but you can view the full file.
{"type":"result","timestamp":"2020-08-21T13:37:33Z","ping":{"jitter":2.1499999999999999,"latency":7.242},"download":{"bandwidth":117071302,"bytes":965061797,"elapsed":8303},"upload":{"bandwidth":6064735,"bytes":30346624,"elapsed":5005},"packetLoss":0,"isp":"UPC Ceska Republika","interface":{"internalIp":"192.168.9.2","name":"arris","macAddr":"12:34:56:78:9A:BC","isVpn":false,"externalIp":"86.49.251.1"},"server":{"id":30620,"name":"O2 Czech Republic, a.s.","location":"Prague","country":"Czech Republic","host":"ookla.o2.cz","port":8080,"ip":"90.181.131.114"},"result":{"id":"59198934-add0-4034-b39f-f289822e9d44","url":"https://www.speedtest.net/result/c/59198934-add0-4034-b39f-f289822e9d44"}}
@zajdee
zajdee / ripe-ncc-educa-QA
Created Jun 8, 2020
The answers to questions that popped up as part of my talk on RIPE NCC::Educa 2020
View ripe-ncc-educa-QA
> --------------------------
> Open Questions (8)
> --------------------------
> 1. Colin: Any idea of plan or roadmap for when other browers will support HE V2?
> 2. Colin: browsers :-)
We have to request it from browser vendors and explain the benefits so that they want to implement it. As far as I know, v2 is not on any browser vendor's roadmap.
> 3. Christian Bretterhofer: can we persuade to get a browser plugin to switch from happy eyballs to ipv6 only and back?
Not sure why would anyone want to do that; additionally the browser plugins have become less powerful over time - I'm not a plugin developer, but from what I know I assume it's not possible for a plugin to override DNS or the connection attempts of the browser.
> 4. david yasler 2: who is monitoring "happy Eye Balls" and do you need the addressing space or will it self discover
> 5. david yasler 2: dial up
View read-addresses-and-mask-the-host-bits.py
#!/usr/bin/env python3
from ipaddress import ip_network
with open('address.list', 'r') as f:
for line in f.readlines():
address = line.strip()
print(ip_network('{}/64'.format(address), strict=False).exploded)
print(ip_network('{}/48'.format(address), strict=False))
print(ip_network('{}/32'.format(address), strict=False))
View ios-plist-apn-ipv6
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Installs APN YOURAPNNAME IPv6</string>
</dict>
<key>PayloadContent</key>
<array>
<dict>
View ios-plist-apn-ipv4v6
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Installs APN YOURAPNNAME IPv4v6</string>
</dict>
<key>PayloadContent</key>
<array>
<dict>
@zajdee
zajdee / java_tool_options.startup.plist
Created Oct 22, 2019
MacOS X 10.10+ .plist to make Java work in an IPv6-only+NAT64/DNS64 environment
View java_tool_options.startup.plist
<?xml version="1.0" encoding="UTF-8"?>
<!-- Save the contents of this file as ~/Library/LaunchAgents/java_tool_options.startup.plist -->
<!-- Log off and on afterwards, wait until the plist is loaded. Run a program, get its pid and -->
<!-- check using `ps eww -o command <pid> | tr ' ' '\n' | grep -i java` that the system-wide environment variable is set -->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>java_tool_options.startup</string>
<key>ProgramArguments</key>
@zajdee
zajdee / jool-ns-init.sh
Last active Oct 17, 2019
Init Jool in a namespace
View jool-ns-init.sh
#!/bin/bash
modprobe jool
# add namespace and devices to link the two namespaces
ip netns add joolns
ip link add name to_jool type veth peer name from_jool
ip link set dev from_jool netns joolns
# global namespace
@zajdee
zajdee / dump-compal-data.py
Created Jun 19, 2019
Liberty Global Compal CH7465LG dumper
View dump-compal-data.py
#!/usr/bin/env python
import xml.dom.minidom
import xml.etree.ElementTree as ET
import json
import requests
import os
import lxml.etree as etree
def prettyPrintXml(filename):
You can’t perform that action at this time.