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 sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
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/sh | |
| curl https://ip-detector.herokuapp.com/api/ip |
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/bash | |
| # cowsayfortune | |
| # Author: Nelson Chan <khchanel> | |
| # | |
| # fortune telling with random cowsay | |
| # change paths accordingly for your system | |
| FORTUNE="/usr/local/Cellar/fortune/*/bin/fortune" | |
| COWSAY="/usr/local/Cellar/cowsay/*/bin/cowsay" | |
| SHUF="/usr/local/Cellar/coreutils/*/bin/gshuf" |
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 pyzbar.pyzbar as pyzbar | |
| import cv2 | |
| def detectBarcodes(img): | |
| codes = pyzbar.decode(img) | |
| for code in codes: | |
| print(f'type={code.type}') | |
| print(f'data={code.data}') | |
| return codes |
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/sh | |
| openssl rand -base64 32 |