Skip to content

Instantly share code, notes, and snippets.

Mathias Gebbe matzegebbe

Block or report user

Report or block matzegebbe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matzegebbe
matzegebbe / .sh
Last active Dec 23, 2017
pivx staking check
View .sh
#!/bin/bash
pivx-cli listaddressgroupings | grep \" | cut -d \" -f2 | awk /./ | grep -v MN1 > tmp
DATE=`date '+%Y-%m-%d %H:%M:%S'`
for i in `cat tmp` ;
do
DVALUE=`curl --silent http://www.presstab.pw/phpexplorer/PIVX/address.php?address=$i | grep -o '<th>Minted</th><td>.*</td>' | cut -d '>' -f 4 | cut -d '<' -f 1`
VALUE=${DVALUE%.*}
if [ $VALUE -ne 0 ]; then
@matzegebbe
matzegebbe / clean_docker_nexus.sh
Last active Jun 18, 2018
Nexus Repository Manager keep the last X docker images delete all other
View clean_docker_nexus.sh
#!/bin/bash
REPO_URL="https://repository.xxx.net/repository/"
USER="admin"
PASSWORD="datpassword"
BUCKET="portal-docker"
KEEP_IMAGES=10
IMAGES=$(curl --silent -X GET -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -u ${USER}:${PASSWORD} "${REPO_URL}${BUCKET}/v2/_catalog" | jq .repositories | jq -r '.[]' )
You can’t perform that action at this time.