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
| from copy import deepcopy | |
| def get_parents(parents_dict, node): | |
| parents = parents_dict.get(node,{}) | |
| for parent in deepcopy(parents): | |
| parents += get_parents(parents_dict, parent) | |
| return parents |
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
| PORT=10514 | |
| while n=$(netstat -tupln | grep $PORT | egrep -oh '(([0-9]*))\/' | grep -oh '[0-9]*') ; do kill $n ; done |
NewerOlder