Skip to content

Instantly share code, notes, and snippets.

@ddiawara
ddiawara / .env
Created May 28, 2022 23:02 — forked from eldadfux/.env
Appwrite 0.13 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@ddiawara
ddiawara / AWS EKS - RBAC and IAM
Created May 19, 2022 08:45 — forked from lukaszbudnik/AWS EKS - RBAC and IAM
Shows how to integrate AWS IAM users/roles with Kubernetes RBAC
# eksctl version
eksctl version
0.20.0
# kubectl/Kubernetes version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-21T14:51:23Z", GoVersion:"go1.14.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.8-eks-e16311", GitCommit:"e163110a04dcb2f39c3325af96d019b4925419eb", GitTreeState:"clean", BuildDate:"2020-03-27T22:37:12Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
CLUSTER_NAME=lukaszbudniktest1
AWS_REGION=us-east-2
@ddiawara
ddiawara / keycloak_create_realm_and_client.sh
Created May 19, 2022 08:45 — forked from lukaszbudnik/keycloak_create_realm_and_client.sh
youtube.com - Keycloak Multi-Tenant JavaScript Clients
# don't forget to update below variables to point to your Keycloak instance, main realm, and admin user
export KEYCLOAK_URL="http://localhost:8080"
export KEYCLOAK_MAIN_REALM=master
export KEYCLOAK_USER=lb
export KEYCLOAK_PASSWORD=***
# get the access token
access_token=$(curl --silent \
-d "client_id=admin-cli" \
-d "username=$KEYCLOAK_USER" \
@ddiawara
ddiawara / AWS EKS - Fargate Autoscaler
Created May 19, 2022 08:45 — forked from lukaszbudnik/AWS EKS - Fargate Autoscaler
Shows AWS EKS Fargate auto scaling.
# eksctl version
eksctl version
0.20.0
# kubectl/Kubernetes version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-21T14:51:23Z", GoVersion:"go1.14.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.8-eks-e16311", GitCommit:"e163110a04dcb2f39c3325af96d019b4925419eb", GitTreeState:"clean", BuildDate:"2020-03-27T22:37:12Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
AWS_REGION=us-east-2
CLUSTER_NAME=lukaszbudniktest1
@ddiawara
ddiawara / Dockerfile
Created June 23, 2020 19:24 — forked from MikeKlebolt/Dockerfile
Molecule setup used for testing Windows Ansible roles with Docker
# Molecule managed
FROM microsoft/windowsservercore:latest
RUN powershell.exe -Command \
wget https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -Proxy <proxy> -Outfile c:\remoting.ps1; \
powershell.exe -ExecutionPolicy ByPass -File c:\remoting.ps1 -EnableCredSSP; \
$password = ConvertTo-SecureString "<password>" -AsPlainText -Force; \
Set-LocalUser -Name administrator -Password $password; \
Enable-LocalUser -Name "Administrator"; \
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
EXPOSE 5986