Skip to content

Instantly share code, notes, and snippets.

Avatar
👓
Learning

Firas Bayazed FirasBayazed

👓
Learning
View GitHub Profile
View CCS811_RPi.py
#
# CCS811_RPi
#
# Petr Lukas
# July, 11 2017
#
# Version 1.0
import struct, array, time, io, fcntl
@FirasBayazed
FirasBayazed / progress_printer.py
Created Oct 23, 2019 — forked from ElCap1tan/progress_printer.py
Simple and leightweight multi-threaded port scanner written in python that can work with port and ip address ranges. At the moment this script only supports full-connection tcp scans. For usage help see >python pyscan.py -h
View progress_printer.py
import sys
class ProgressPrinter:
def __init__(self, units, unit_type='', max_length=50, pre='', post='', fill='=', head='>', empty=' '):
if units > max_length:
self.steps = max_length / units
self.max_length = max_length
else:
self.steps = 1