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
#!/bin/bash | |
version=$(curl -s https://portswigger.net/burp/releases | grep "Professional / Community" | head -n1 | grep -E "[0-9\.]+" -o) | |
if [[ -d ~/Applications/BurpSuite.app ]]; then | |
local_version=$(cat ~/Applications/BurpSuite.app/Contents/Resources/version.txt) | |
if [[ "$version" == "$local_version" ]]; then | |
echo "Latest version is $version - which is the same as the local" | |
exit 1 | |
fi |
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
import copy | |
import fractions | |
def number_of_transients(matrix): | |
"""Get number of transients states. | |
Assume absorbing states follow transient states | |
without interlieveing.""" |