View gist:dce325f2d0af69827ecf3827ff41b2a8
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 |
View gist:3c66cebc76d9d6af539c0db9c9ea7d50
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
You can install QtdSync for Windows [http://qtdtools.doering-thomas.de/page.php?tool=QtdSync&page=QtdSync&lang=en] | |
This will contain the sshpass.exe |
View gist:5782985251db6e406febc56433c203f8
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
aws ses send-email --from omar@foo.com --to jayz@foo.com --text "This is for those who cannot read HTML." --html "<h1>Hello World</h1><p>This is a pretty mail with HTML formatting</p>" --subject "Hello Kaman marrah" | |
aws ses verify-email-identity --email-address ahmed@dasarabbank.com --profile digi | |
View Dockerfile
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
FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian AS build-env | |
ENV KEYCLOAK_VERSION 17.0.1 | |
ARG KEYCLOAK_DIST=https://github.com/keycloak/keycloak/releases/download/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz | |
RUN apt-get install -y tar gzip | |
ADD $KEYCLOAK_DIST /tmp/keycloak/ | |
RUN (cd /tmp/keycloak && \ |
View docker-compose-keycloak.yaml
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: '3' | |
services: | |
keycloak: | |
image: quay.io/keycloak/keycloak:20.0.3 | |
ports: | |
- 8080:8080 | |
command: | |
- start-dev | |
environment: | |
KEYCLOAK_ADMIN: admin |
View gist:2fc0122f122bd4e64660c3ef490c2f75
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
docker run --rm --name redis-commander -d -p 8081:8081 --env REDIS_HOSTS=172.17.0.1 ghcr.io/joeferner/redis-commander:latest | |
View fetch.js
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
fetch('https://reddit.com/v3.1/consents', { | |
method: 'GET', | |
headers: { | |
'Authorization': 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJQUzFzWmYyM3BHaVlaZ2dQSnZFQjlhRjJTS3NOWmdXNFNmSVRkVDRyRXg4In0.eyJleHAiOjE2NjcxMzIwMTQsImlhdCI6MTY2NzEzMTk1NCwianRpIjoiODgxOTZlMTQtMGJkZS00ZjJiLTlhOTEtYWFkOTJlNmU5NzE0IiwiaXNzIjoiaHR0cHM6Ly9rYy5kaWdpdGluYXJ5LmNvbS9hdXRoL3JlYWxtcy9tYXN0ZXIiLCJhdWQiOlsib2ItY2xpZW50MSIsImFjY291bnQiXSwic3ViIjoiZjNhMGJmOTQtMmY4MS00NTVlLThhY2UtN2M5NmU2OTJmYjZlIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoib2ItY2xpZW50MSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiIiwiaHR0cDovL2VicC1zcGEtd2ViLWRldi5zMy13ZWJzaXRlLmV1LWNlbnRyYWwtMS5hbWF6b25hd3MuY29tIiwiaHR0cHM6Ly90ZXN0LXBsYXRmb3JtLmNsaWNrIl0sInJlYWxtX2FjY2VzcyIasdasdayI6WyJkZWZhdWx0LXJvbGVzLW1hc3RlciIsIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJvYi1jbGllbnQxIjp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYW |
View gist:306c6b9a617a5a142874b7023e46cc82
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
egrep 'from ([0-9]{,3}.[0-9]{,3}.[0-9]{,3}.[0-9]{,3})' /var/log/secure -o |sed 's/from //g' | sort | uniq | |
View gist:ec6de3d26355809837076017311e42ea
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
kubectl patch svc dbp-transaction-microservice --type='json' -p '[{"op":"replace","path":"/spec/type","value":"ClusterIP"}]' | |
kubectl patch svc dbp-transaction-microservice -p '{"spec": {"type": "ClusterIP"}}' | |
View gist:dca01da5f17f452200e883eca3097cfd
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
Reference: [https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1629#issuecomment-726872539] | |
I deleted the AWS Load Balancer Controller (alb) before deleting the ingress, and I couldn't delete the ingress. | |
Solution: | |
-> % k get ingress echoserver -o yaml | grep -A 5 finalizers | |
finalizers: | |
- group.ingress.k8s.aws/mygroup | |
generation: 19 | |
name: echoserver |
NewerOlder