Skip to content

Instantly share code, notes, and snippets.

View smilelikeshit's full-sized avatar
💭
thanks to linus torvalds

imam smilelikeshit

💭
thanks to linus torvalds
View GitHub Profile
@smilelikeshit
smilelikeshit / gke_cluster_test.go
Created September 29, 2022 05:41
Terratest validated Cluster Name from GKE
package main
import (
"path/filepath"
"testing"
"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modules/terraform"
test_structure "github.com/gruntwork-io/terratest/modules/test-structure"
"github.com/stretchr/testify/assert"
@smilelikeshit
smilelikeshit / argocd-image-updater-readme
Last active January 9, 2024 07:42
create argocd image updater
### Install ArgoCD Image Updater ###
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/stable/manifests/install.yaml
### Edit argocd-cm ###
data:
# ...
accounts.image-updater: apiKey
### Generate token untuk user image-updater pada argocd-server dan lakukan exec sh dan running command tersebut di dalam pods
@smilelikeshit
smilelikeshit / argocd-readme
Last active September 22, 2022 06:41
install argocd
### Install ArgoCD ###
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
@smilelikeshit
smilelikeshit / readme-chart.txt
Last active September 22, 2022 06:30
create own helm chart
### Create Helm Chart ###
user@users: helm create base-chart
### Check List Directory ###
user@users: tree base-chart
base-chart
├── Chart.yaml
├── charts
├── templates
│ ├── NOTES.txt
@smilelikeshit
smilelikeshit / argocd-cm.yaml
Last active June 8, 2022 03:27
argocd-cm ssh repository
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
repositories: |
@smilelikeshit
smilelikeshit / install
Last active December 26, 2023 14:47
install boundary hashicorp ubuntu 20.04
// Add the HashiCorp GPG key.
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
// Add the official HashiCorp Linux repository.
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
// Update and install.
sudo apt-get update && sudo apt-get install boundary
@smilelikeshit
smilelikeshit / ca.md
Created September 18, 2020 16:31 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@smilelikeshit
smilelikeshit / diskusage.go
Created March 18, 2020 14:28 — forked from ttys3/diskusage.go
Disk Usage info like `df -h` for Golang
package main
import (
"fmt"
syscall "golang.org/x/sys/unix"
)
type DiskStatus struct {
All uint64 `json:"all"`
Used uint64 `json:"used"`
pipeline {
agent none
environment {
PASSWORD = "${env.PASSWORD}"
USERNAME = "${env.USERNAME}"
PROJECTKEY = "${env.PROJECTKEY}"
URL = "${env.URL}"
}
@smilelikeshit
smilelikeshit / install_docker.sh
Created January 10, 2020 04:22 — forked from angristan/install_docker.sh
Script to install Docker and Docker-Compose on Debian
#!/bin/bash
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common sudo
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
apt-get update