Skip to content

Instantly share code, notes, and snippets.

View mhmdio's full-sized avatar
🇵🇸
Everything as a code

Mohammed Almusaddar mhmdio

🇵🇸
Everything as a code
View GitHub Profile
@mhmdio
mhmdio / localstack.md
Last active January 9, 2023 07:12
localstack

Localstack

pip install --upgrade localstack awscli-local terraform-local
awslocal s3api create-bucket --bucket testwebsite
@mhmdio
mhmdio / terraform-cache.md
Last active March 29, 2022 08:41
Setup Terraform cache

plugin-cache

dot-terraform-rc:

plugin_cache_dir   = "$HOME/.terraform.d/plugin-cache"
echo "Setup Terraform cache"
@mhmdio
mhmdio / README.md
Last active February 9, 2022 15:32
EKS
# ~/.aws/config
[profile PROFILE_NAME]
sso_start_url=https://SSO_PORTAL_NAME.awsapps.com/start
sso_region=AWS_REGION
sso_account_id=AWS_ACCOUNT
sso_role_name=AdministratorAccess
output = yaml
@mhmdio
mhmdio / minikube.md
Last active January 6, 2022 13:37
FluxCD

minikube

Install

brew upgrade minikube
brew install kustomize
brew install hyperkit
brew install docker
brew install docker-compose
@mhmdio
mhmdio / ssh.md
Last active January 4, 2022 18:53
SSH

SSH

SSH-KEYGEN

GitLab

ssh-keygen -t ed25519 -C "mbp16" -f  ~/.ssh/gitlab-ci-mbp16-ecdsa
ssh-keygen -t ed25519 -C "dev.cloudfalcon.io" -f  ~/.ssh/gitlab-ci-dev-cloudfalcon-io-ecdsa
@mhmdio
mhmdio / jenkins.yml
Last active December 23, 2021 07:37
teleport
teleport:
data_dir: /var/lib/teleport
auth_service:
enabled: "yes"
proxy_service:
enabled: "yes"
public_addr: teleport.example.com:8080
ssh_service:
enabled: "no"
@mhmdio
mhmdio / centos.md
Last active December 23, 2021 07:33
dev.cloudfalcon.io
1  2021-12-23 06:38:10 systemctl enable --now cockpit.socket
4  2021-12-23 06:38:10 yum install zsh
6  2021-12-23 06:38:10 yum install git
7  2021-12-23 06:38:10 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

20 2021-12-23 06:38:10 curl https://get.trunk.io -fsSL | bash 50 2021-12-18 10:47:26 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash 51 2021-12-18 10:47:48 export NVM_DIR="$HOME/.nvm" 52 2021-12-18 10:47:48 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm 53 2021-12-18 10:47:49 [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" 55 2021-12-18 10:48:06 nvm install node

@mhmdio
mhmdio / main.tf
Created December 17, 2021 12:46
terraform target
terraform plan \
-target="aws_launch_configuration.tfer--sensformer-002D-weatherapi20210301191443117900000001" \
-target="aws_autoscaling_group.tfer--tf-002D-asg-002D-20201118172430104500000036"
@mhmdio
mhmdio / README.md
Last active May 6, 2022 13:11
git-config

git-config

Local

git config user.name "Mohammed Yahya"
git config user.email my.almusaddar@gmail.com
@mhmdio
mhmdio / terraform-upgrade.md
Created November 7, 2021 06:48
Terraform v1.0 Upgrade Tips