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
That’s one of the real strengths of Docker: the ability to go back to a previous commit. The secret is simply to docker tag the image you want. | |
Here’s an example. In this example, I first installed ping, then committed, then installed curl, and committed that. Then I rolled back the image to contain only ping: | |
$ docker history imagename | |
IMAGE CREATED CREATED BY SIZE | |
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB | |
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB | |
8dbd9e392a96 7 months ago 131.5 MB |
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 |
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
username='jameel.jamal@dodo.com' | |
echo $username | sed -f url_escape.sed | |
# url_escpape.sed | |
s:%:%25:g | |
s: :%20:g | |
s:<:%3C:g | |
s:>:%3E:g |
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
I tried to delete a cluster: | |
"The Cluster cannot be deleted while Services are active." | |
I tried to delete the service called 'nginx': | |
"The service cannot be stopped while the primary deployment is scaled above 0" | |
Select service, click 'Update' - set 'Number of tasks' to 0 | |
This changed the number of 'Desired Tasks' to 0 | |
Or I guess: | |
aws ecs update-service --service nginx --desired-count 0 --cluster ecscluster1 --profile devops |
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
sqlcmd -S openbanking-dev.jay.com -U admin -P F00B00T00 -C | |
select name from sys.databases | |
GO |