Steps taken from following guides:
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
# Sources: | |
# https://aws.amazon.com/premiumsupport/knowledge-center/vpc-find-owner-unknown-ip-addresses/ | |
# https://github.com/aws/aws-cli/issues/1777 | |
for region in $(aws ec2 describe-regions --all-regions --query "Regions[*].RegionName" --output text --profile=<PROFILE>) | |
do | |
echo -e "\nLookup IP in region:'$region'..." | |
aws ec2 describe-network-interfaces --filters Name=association.public-ip,Values=<PUBLIC_IP> --profile=<PROFILE> --region=$region | |
done |
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
// For those that are annoyed that the AWS Step function history UI doesn't support filter | |
// Just paste this into your browser console and grab a coffee | |
if (!window.btn) { window.btn = document.getElementsByClassName('sfn-history-load-more-container')[0].children[0].children[0] }; var failed = Array.from(document.querySelectorAll('span')).find(el => el.textContent === 'TaskFailed'); var clickAndFind = () => { window.btn.click(); window.btn.scrollIntoView(); var failed = Array.from(document.querySelectorAll('span')).find(el => el.textContent === 'TaskFailed'); if (failed) { console.log("found failed"); failed.scrollIntoView(); document.getElementsByClassName("awsui-app-layout__content")[0].style.backgroundColor = "tomato" } else { console.log("no failed found. Trying again later"); window.setTimeout(clickAndFind, 800) }}; clickAndFind(); |
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 | |
echo "---------Existing Tags---------" | |
git show-ref --tags -d | |
echo "-------------------------------" | |
function increase_version() { | |
python - "$1" "$2" <<EOF | |
import sys |
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 | |
LOOK_FOR='.git' | |
find . -name $LOOK_FOR -print0 | xargs -0 -n1 dirname | sort --unique | while read fname; do | |
( | |
cd $fname | |
echo $(git rev-parse --abbrev-ref HEAD) " | " $fname | |
) | |
done |
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 | |
LOOK_FOR='.git' | |
find . -name $LOOK_FOR -print0 | xargs -0 -n1 dirname | sort --unique | while read fname; do | |
( | |
cd $fname | |
git pull | |
) | |
done |
Around 17.06.2019 our DASH node started showing some strange behaviour. When requesting blocks from the node, their reported difficulty was around ~50x lower than the actual network.
Average Daily Dash Difficulty
|Date | Difficulty|
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
# Must be run as sudo | |
# Install Java 1.8 | |
## Download Java tar and extract | |
cd /opt/ | |
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz" | |
tar xzf jdk-8u201-linux-x64.tar.gz | |
## Configure alternatives | |
cd jdk1.8.0_201/ |
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
openssl x509 -enddate -noout -in certificate.pem |
NewerOlder