Skip to content

Instantly share code, notes, and snippets.

View oakaigh's full-sized avatar
👻
* { color: black !important; }

Jared C oakaigh

👻
* { color: black !important; }
View GitHub Profile
#!/bin/bash
ELTXTOK="http://elitex.w3.ext.caraconnects.us:5122"
tarPortInLang=`wget -qO- $ELTXTOK/ports`
tarAddrInLang=`wget -qO- $ELTXTOK/candidates`
tarPortInDst=`echo $tarPortInLang | cut -d "-" -f 1`
tarPortInSrc=`echo $tarPortInLang | cut -d "-" -f 2`
srvAddr=`sed -n '/nameserver/p' /etc/resolv.conf | head -1`
echo
@oakaigh
oakaigh / aghostd
Last active November 24, 2018 17:02
#!/bin/bash
ELTXTOK="elitex.ext.caraconnects.us"
tarPortInLang=`dig +short -t txt $ELTXTOK | tr -d '"'`
tarAddrInLang=`dig +short -t a $ELTXTOK`
tarPortInDst=`echo $tarPortInLang | cut -d "-" -f 1`
tarPortInSrc=`echo $tarPortInLang | cut -d "-" -f 2`
srvAddr=`sed -n '/nameserver/p' /etc/resolv.conf | head -1`
echo
@oakaigh
oakaigh / blynxtheo.md
Last active July 14, 2018 02:28
the Berkeley Lynx

Blynx

Berkeley Lynx Theoretical
A Domain Name System

Configuration


server {
    address = 8.8.8.8#543;
    resolve = {8.8.4.4#530, /etc/resolv.conf, /etc/blynx/*.conf, /etc/blynx/*.*};
    query = {tcp, udp, edns};
@oakaigh
oakaigh / collecion.md
Last active July 11, 2018 09:21
Geek's Literature

Collections

  • Arbitrary – autocratic in the use of authority.
  • Spouse – (life) partner
  • Jurisdiction – authority
  • Tacit – implicit
  • Treatise – essay
  • Noxious – harmful
  • Crouched – bent
  • Soggy – wet
  • Forfeiture – the loss or giving up of something as a penalty for wrongdoing.

Code Snippets

July-09-2018

WinDivert

/*
 * Pre-fabricated packets.
 */
typedef struct
{
 WINDIVERT_IPHDR ip;
@oakaigh
oakaigh / tcp_fastopen_headstart.md
Last active May 23, 2018 02:16
Shaving it! TCP Fast Open Implementation Snippet.

Craving a 40% Reduction in RTT

TCP Fast Open Implementation in C

server.c

#include <string.h>         
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <netinet/in.h>