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 |
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 | |
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 && \ |
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 |
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 | |
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 |
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 | |
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"}}' | |
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 |
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 image ls --format '{{json .}}' | jq '.Repository + ":" + .Tag' |