Skip to content

Instantly share code, notes, and snippets.

@nomis
nomis / output.txt
Last active April 21, 2024 09:13
dtee, implemented using sctp
$ make LDLIBS=-lsctp sctp
g++ sctp.cpp -lsctp -o sctp
$ ./sctp
flags 32896 assoc_id 0 stream 0 port 42417 len 20
flags 32896 assoc_id 0 stream 0 port 49898 len 20
flags 128 assoc_id 132 stream 0 port 42417 len 1 data o
flags 128 assoc_id 132 stream 0 port 42417 len 2 data OO
flags 128 assoc_id 134 stream 0 port 49898 len 1 data e
flags 128 assoc_id 134 stream 0 port 49898 len 2 data EE
flags 128 assoc_id 134 stream 0 port 49898 len 1 data e
@nomis
nomis / evohome-schedule-decode.py
Last active February 24, 2019 16:30
Decode Evohome schedule data
#!/usr/bin/env python3
import struct
import zlib
def decode_schedule(message):
data = zlib.decompress(bytes.fromhex(message))
for record in [data[i:i+20] for i in range(0, len(data), 20)]:
(zone, day, time, temp, unknown) = struct.unpack("<xxxxLLLHH", record)
@nomis
nomis / 01-index.md
Last active May 20, 2024 21:40
Dial-A-Song

They Might Be Giants

☎️ 8624 at EMF 2018, 2022, 2024 and on EPVPN

Dial NN for a specific song, * to restart current song, # (or 00) for another "random" (not shuffle) song. Also accepts incoming faxes.

  1. Authenticity Trip
  2. Marty Beller Mask
  3. Tubthumping (feat. the Onion AV Club Choir)
  4. Particle Man (feat. the Other Thing Brass Band)
@nomis
nomis / high priority.reg
Created August 25, 2018 18:47
VR Process Priority
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Recroom_Release.exe\PerfOptions]
"CpuPriorityClass"=dword:00000003
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vrcompositor.exe\PerfOptions]
"CpuPriorityClass"=dword:00000003
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vrserver.exe\PerfOptions]
"CpuPriorityClass"=dword:00000003

Keybase proof

I hereby claim:

  • I am nomis on github.
  • I am simonarlott (https://keybase.io/simonarlott) on keybase.
  • I have a public key ASCd2JUC1ksSSvWribXkT5p7bky_V8PetUOXTloKXxMWtQo

To claim this, I am signing this object:

Socket s = null;
try {
/* from commons-net, simulation of STARTTLS by using a normal Socket to port 465 */
s = new Socket("not-really-gmail.java.test.lp0.eu", 465); /* CNAME to smtp.gmail.com */
SSLContext ctx = SSLContext.getInstance("TLS");
ctx.init(null, null, null);
SSLSocketFactory ssf = ctx.getSocketFactory();
// ssf = (SSLSocketFactory)SSLCertificateSocketFactory.getDefault();