This file contains hidden or 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
| #!/bin/env python | |
| """ | |
| This tool shows the variations in hue, saturation and brightness occurring in an | |
| image. Variations are determined by comparing a pixel to the median of the | |
| surrounding 5x5 pixels or by using a bilateral filter that takes edges into | |
| account (option `--edge-detection`). The mapping is non-linear in order to | |
| emphasise small variations. | |
| requirements: |
This file contains hidden or 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
| #!/bin/env python | |
| """ | |
| This tool maps the variations in hue, saturation and brightness occurring in an | |
| image onto a hue range as follows: | |
| - red: extremely small variations that are usually not visible to the naked eye | |
| - yellow: very small variations | |
| - green: small variations | |
| - blue: medium variations |
This file contains hidden or 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
| #!/bin/env python | |
| """ | |
| requirements: | |
| - pillow | |
| """ | |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| from PIL import Image |
This file contains hidden or 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 | |
| # encoding: utf-8 | |
| """ | |
| pip install envelope | |
| apt install libmagic-dev | |
| """ | |
| import sys | |
| import argparse |
This file contains hidden or 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 | |
| """ | |
| Tool for syncing the clipboard buffer into the x11 primary selection buffer | |
| Requires python gtk+ 3: | |
| sudo apt install python3-gi gir1.2-gtk-3.0 | |
| Based on https://github.com/mrichar1/clipster | |
| """ |
This file contains hidden or 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 scapy.all as scapy | |
| from scapy.all import ARP | |
| def get_mac(ip): | |
| arp_request = ARP(pdst=ip) | |
| br = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") | |
| arp_request_br = br / arp_request | |
| results = scapy.srp(arp_request_br, timeout=5, verbose=False)[0] |
This file contains hidden or 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 python | |
| import colorsys as col | |
| import matplotlib.pyplot as plt | |
| from matplotlib.widgets import Slider, Button, RadioButtons, TextBox | |
| NUMBER_OF_COLORS = 8 | |
| COLORS = [] | |
| TYPE = "sequential" |
This file contains hidden or 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 python | |
| # encoding: utf-8 | |
| # pylint: disable=redefined-outer-name | |
| """ | |
| Generate colored diffs of LaTeX files between different git commits. | |
| Usage: texdiff.py [-h] file commit1 [commit2] | |
| Arguments: |