This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import regex as re | |
from sys import argv, exit | |
macdb_regexpr = r""" | |
# Some examples matched by this regexp : | |
# VLAN: 2324 MAC: d867.d972.0fc3 | |
# Time If/swid Db Op Src Slot FE Count | |
# Mon Apr 6 20:37:34 2020 0x160003e6 0 INSERT 3 5 7 | |
# Mon Apr 6 20:37:59 2020 0x160003e6 0 NON_PI_MOD 3 2 15 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/centos-8" | |
config.vm.provider "vmware_desktop" do |vm| | |
vm.vmx["usb_xhci.present"] = "TRUE" | |
vm.vmx["usb.present"] = "TRUE" | |
vm.vmx["ehci.present"] = "TRUE" | |
vm.vmx["usb_xhci.present"] = "TRUE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- go-ethereum-1.7.2/p2p/rlpx.go 2017-10-14 14:58:53.000000000 +0200 | |
+++ rlpx.go 2018-04-07 19:07:05.000000000 +0200 | |
@@ -173,17 +173,20 @@ | |
var ( | |
sec secrets | |
err error | |
+ initiator bool // A flag tracking if node is initiator of the handshakes | |
) | |
if dial == nil { | |
sec, err = receiverEncHandshake(t.fd, prv, nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tornado.ioloop | |
import tornado.web | |
import tornado.websocket | |
import tornado.tcpserver | |
import tornado.tcpclient | |
import tornado.httpclient | |
import tornado.iostream | |
import tornado.gen | |
import uuid | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pruio import * | |
from time import sleep | |
# Create a ctypes *pointer* to the pruio structure | |
io = pruio_new(PRUIO_DEF_ACTIVE, 0, 0, 0) | |
# Note the *pointer* dereferencing using the contents member | |
if not io.contents.Errr: | |
pruio_config(io, 1, 0, 0, 0) | |
for i in range(4): |