This file contains 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 | |
"""Debug hidapi python library and hid devices. | |
You may use this utility script for debugging purposes to check if this library does work as | |
intended, thus detecting all plugged hid devices. | |
This files does also provide you with the vendor_id and product_id required by the udev rule. | |
""" |
This file contains 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/bash | |
killall nginx 2>/dev/null && echo "Killing nginx service on ports 80, 443" | |
for port in {53,1050,1801,2181,5050,7070,8080,8123,8181,9990,15055,15101,15201}; do | |
kill -9 $(netstat -tlnp | awk "/:$port */ {split(\$NF,a,\"/\"); print a[1]}") 2>/dev/null && echo "Killing service that runs on port $port" | |
done |
NewerOlder