Skip to content

Instantly share code, notes, and snippets.

@dcondrey
dcondrey / doomsday_fuel.py
Last active July 30, 2023 05:13 — forked from ansipunk/doomsday_fuel.py
Doomsday Fuel solution
import copy
import fractions
def number_of_transients(matrix):
"""Get number of transients states.
Assume absorbing states follow transient states
without interlieveing."""
@dcondrey
dcondrey / update_burp.sh
Created September 6, 2023 04:22 — forked from nytr0gen/update_burp.sh
Create an MacOS App from Burp Jar File
#!/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