Skip to content

Instantly share code, notes, and snippets.

View matzegebbe's full-sized avatar
😯

Mathias Gebbe matzegebbe

😯
View GitHub Profile
@matzegebbe
matzegebbe / clean_docker_nexus.sh
Last active March 22, 2024 06:43
Nexus Repository Manager keep the last X docker images delete all other
#!/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 '.[]' )

Keybase proof

I hereby claim:

  • I am matzegebbe on github.
  • I am mgebbe (https://keybase.io/mgebbe) on keybase.
  • I have a public key ASDpDdVMS-xGHnRbUoAj-k0kP4lon9HeyRdmmT7fED-oqAo

To claim this, I am signing this object:

@matzegebbe
matzegebbe / ApiGatewayApplication
Last active May 27, 2021 22:38
SpringCloudGatewayLogging
public class ApiGatewayApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ApiGatewayApplication.class);
public static void main(String[] args) {
SpringApplication.run(ApiGatewayApplication.class, args);
}
@Bean
public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {

Keybase proof

I hereby claim:

  • I am mathiasgebbe on github.
  • I am mgebbe (https://keybase.io/mgebbe) on keybase.
  • I have a public key whose fingerprint is 7CEA 3C98 7C32 7B5E D775 B3A0 B311 50D1 E9B5 AC6A

To claim this, I am signing this object:

@matzegebbe
matzegebbe / .sh
Last active December 23, 2017 17:37
pivx staking check
#!/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