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
sqlcmd -S openbanking-dev.jay.com -U admin -P F00B00T00 -C | |
select name from sys.databases | |
GO |
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 -r '.payload."kubernetes.io".namespace' |
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
env "my.home=/tmp/someDir" zsh | |
env "my.home=/tmp/someDir" mvn spring-boot:run | |
env "my.name=Foo Bar Baz" bash -c "printenv my.name" |
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
# Source: https://gist.github.com/0466cff59d08cabb5276f593ca2e513d | |
######################################### | |
# Skaffold # | |
# How to Build and Deploy In Kubernetes # | |
# https://youtu.be/qS_4Qf8owc0 # | |
######################################### | |
######### | |
# Setup # |
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
Add attribute called 'user_avatar' = https://cdn.icon-icons.com/icons2/1285/PNG/512/female5_85208.png |
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
import requests | |
import urllib3 | |
urllib3.disable_warnings() | |
r = requests.get('https://localhost:8080/hi', verify=False) | |
print(r.text) |
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
### port 9092 is for H2 database | |
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube |