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
jq -rn --arg x 'café' '$x|@uri' |
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
echo '{"foo": 0}' > foo.json | |
jq @json < foo.json |
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
skopeo copy docker://nginx:1.16 docker://harbor.example.com/jay-test/nginx:1.16 | |
skopeo copy docker://harbor.example.com/jay-test/nginx:1.25.3-alpine docker://registry.gitlab.com/dasgoll/myrepo/nginx:1.25 | |
skopeo copy docker://651234438355.dkr.ecr.eu-central-1.amazonaws.com/keycloak:21.1210-1223 docker://61234392635.dkr.ecr.me-south-1.amazonaws.com/keycloak:21.1210-1223 |
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
export GITLAB_HOME=~/gitlab | |
mkdir $GITLAB_HOME | |
docker run --detach \ | |
--hostname gitlab.local.gd \ | |
--publish 8080:80 \ | |
--name gitlab \ | |
--restart always \ |
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
xfreerdp /cert:ignore /u:Administrator /v:192.168.1.82 /p:'let_me_in_dude' +home-drive |
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
tags="TagSet=[{Key=Terraform,Value=false},{Key=Environment,Value=global} ]" | |
aws s3api put-bucket-tagging --bucket gitlab-upload-backup --tagging $tags |
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
version: '2' | |
services: | |
sonarqube: | |
image: sonarqube | |
ports: | |
- '9000:9000' | |
networks: | |
- sonarnet | |
environment: |
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
# delete image tag on ecr | |
aws ecr batch-delete-image --repository-name nginx --image-ids imageTag=1.24-alpine-slim-v1 |
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
export AWS_PROFILE=k2k | |
bucket_name="k2k-dev-vpc-flow-logs-s3serverlogs" | |
aws s3api put-bucket-versioning --bucket ${bucket_name} --versioning-configuration Status=Enabled --region eu-central-1 | |
delete-bucket -p k2k -f -b ${bucket_name} -r eu-central-1 ; aws s3 rm s3://${bucket_name} --region eu-central-1 | |
An error occurred (NoSuchBucket) when calling the PutBucketVersioning operation: The specified bucket does not exist |
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
kind load docker-image example-app-1:0.1.0 --name fluxcd | |
docker exec -it fluxcd-control-plane bash | |
crictl images |grep example-app |
NewerOlder