Skip to content

Instantly share code, notes, and snippets.

@kitten77
kitten77 / coutner.py
Last active December 17, 2018 09:27
quick collection counter
import collections
string = "aaaBBBcccDDD"
line = str()
counter = collections.Counter(string)
for key, value in counter.items():
line +=(f'{key}: {value} ')
print(line)
@kitten77
kitten77 / dd
Created April 18, 2019 06:21
dd example with progress bar
root@hq:/home/root/Downloads # dd if=kali-linux-xfce-2019.1a-amd64.iso of=/dev/da0 bs=1M status=progress