Skip to content

Instantly share code, notes, and snippets.

Petr Ilgner petrilgner

Block or report user

Report or block petrilgner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@petrilgner
petrilgner / file-bitcomp.py
Created Feb 20, 2019
File compare with bit accuracy
View file-bitcomp.py
from bitstring import BitArray
import filecmp
FILE1 = "testfile.txt"
FILE2 = "testfile-cor.txt"
if filecmp.cmp(FILE1, FILE2):
print("Files are the same...")
quit()
@petrilgner
petrilgner / mangle-visualize.py
Created Feb 17, 2019
A brief script for visualizing the RouterOS mangle rule traffic using TK framework
View mangle-visualize.py
from librouteros import connect
from tkinter import *
ROUTER_API_IP = '192.168.1.1'
ROUTER_API_PORT = '8728'
ROUTER_API_USER = 'admin'
ROUTER_API_PASSWORD = 'pwd'
ROUTER_MANGLE_UPLOAD = 'UPLOAD'
ROUTER_MANGLE_DOWNLOAD = 'DOWNLOAD'
You can’t perform that action at this time.