Skip to content

Instantly share code, notes, and snippets.

@SemanticallyNull
SemanticallyNull / main.md
Last active December 18, 2023 19:55
Virgin Media Ireland Hub 2.0 (TG3492LG-VMIE) Modem Mode with IPv6 and DSLite
⚠️ First, a word of warning
This is just a list of things I did to see if I could enable it... And I could. There's really no guarantee that any of this will actually work, and moreso it could break at any point and you're very much on your own at that point.

Most importantly, the reset button on the device does not switch back to Router Mode... so if it's broken you may not be able to fix it.

After a conversation with a friend about VM's Hub 2.0 and it's inability to do Modem Mode when IPv6 is enabled I got that drive to explore. Figuring that DSLite is a standard protocol (RFC6333) I figured it wasn't going to be impossible to get running... So that begged the question, can I get the unit into Modem Mode to experiment?

After a great deal of scanning through JS, yes. So once I was logged in I managed to navigate to the Modem page at [http://192.168.0.1/?modem_settings&mid=Modem](http://192.168.0.1/?modem_settings&mid=Mode

@SemanticallyNull
SemanticallyNull / main.go
Last active March 28, 2022 20:25
Colour & Morse HTTP
package main
import (
"context"
"errors"
"fmt"
"net"
"net/http"
"os/signal"
"strings"
package main
import (
"fmt"
"reflect"
"strings"
"testing"
)
type TestCases struct{}
@SemanticallyNull
SemanticallyNull / go.mod
Last active September 7, 2021 12:03
timeline_parser
module github.com/semanticallynull/slh
go 1.16
require github.com/montanaflynn/stats v0.6.6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
This is a test
-----BEGIN PGP SIGNATURE-----
iLUEARMKAB0WIQRGNptJFi1PMbRMjeSWXfdLXIML7QUCXyXYeAAKCRCWXfdLXIML
7ewzAf4sMu2Jbn/Vci1L765UlOJ5v5vXmbDu/oorsmsJ07m/tXMsmr/eFx5dQ7vU
vI8czxPjBWGXTHgA2ZE45luf+EiSAf4uruEkDzQufGusq8jE90QqTu/zu0bgoAQh
PDIAVjJMND6ljBLSYEiQJ+zLT+zqQRaRHWL2JMWHIv1hADG0+6sh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
This is a test
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEelxToHENRIRJinlLxkNItI9dyKAFAl8l1koACgkQxkNItI9d
yKDZAQf/U0LYLEp7oCCAEzC8iMyiXvJcOjZcSYoN4+/MrWMZ5wAitsUq2BBOSD0P
gZjLFP88rHF591Q3gU3G6RtXD0KrMQNK/a4Q8STCyri600ykZNIRN2R64s3hYo8L
Q1o0gMyrtz2PRjF1qXYwcVno6ucmO/U0/2vz69MW4ekr1FAm1mh2NO7I8oDZw7Nc
@SemanticallyNull
SemanticallyNull / outages.geojson
Created October 16, 2017 14:20
Ireland Power Outages
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am SemanticallyNull on github.
  • I am semanticallynull (https://keybase.io/semanticallynull) on keybase.
  • I have a public key whose fingerprint is 7A5C 53A0 710D 4484 498A 794B C643 48B4 8F5D C8A0

To claim this, I am signing this object:

@SemanticallyNull
SemanticallyNull / SyslogFacilityPriorityMatrix.md
Last active February 5, 2024 00:29
Syslog Facility Priority Matrix

The Priority value is calculated by first multiplying the Facility number by 8 and then adding the numerical value of the Severity. For example, a kernel message (Facility=0) with a Severity of Emergency (Severity=0) would have a Priority value of 0. Also, a "local use 4" message (Facility=20) with a Severity of Notice (Severity=5) would have a Priority value of 165. In the PRI of a syslog message, these values would be placed between the angle brackets as <0> and <165> respectively. The only time a value of "0" follows the "<" is for the Priority value of "0". Otherwise, leading "0"s MUST NOT be used. – RFC 5424, Section 6.2.1

Severity ➡️ 0 1 2 3 4 5 6 7
Facilities ⤵️
kernel (0) 0 1 2 3 4 5 6 7
user (1) 8 9 10 11 12 13 14 15
mail (2) 16 17 18 19 20 21 22 23
system (3) 24 25 26 27 28 29 30
@SemanticallyNull
SemanticallyNull / twitter_gopher.py
Last active August 29, 2015 14:24
This will dig out the first tweet in the chain.
# coding=utf-8
import tweepy
# == OAuth Authentication ==
#
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details