Skip to content

Instantly share code, notes, and snippets.

View xero's full-sized avatar
💭
💾

xero harrison xero

💭
💾
View GitHub Profile
@xero
xero / python-nameserver.py
Created June 7, 2019 18:44 — forked from dustyfresh/python-nameserver.py
DNS nameserver implemented in python
#!/usr/bin/env python3
import sys
from datetime import datetime
import time
from time import sleep
from dnslib import DNSLabel, QTYPE, RD, RR, RCODE
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT
from dnslib.server import DNSServer
@xero
xero / disapprove.php
Last active October 28, 2021 07:03 — forked from dehora/disapprove.scala
php fork
<?php
class ಠ_ಠ extends Exception {
public function __construct($msg, $code=0, Exception $prev=null) {
parent::__construct("ಠ_ಠ", $code, $prev);
}
public function __toString() {
return "ಠ_ಠ";
}
}
?>