Skip to content

Instantly share code, notes, and snippets.

View ajitirto's full-sized avatar
🦧
UU AA

ajitirto

🦧
UU AA
View GitHub Profile
# in path folder
# bikin folder copy
for /d %d in (*) do xcopy "%d\.*" "copy\"
#!/bin/bash
# Informasi koneksi database
DB_USER="username"
DB_PASSWORD="password"
DB_NAME="nama_database"
DB_HOST="localhost"
# Direktori tempat menyimpan backup
BACKUP_DIR="/path/to/backup_directory"
─❯ cat asci-art/aji.txt ─╯
,,_
zd$$??=
z$$P? F:`c, _
d$$, `c'cc$$i ,cd$?R
$$$$ cud$,?$$$i ,=P"2?z "
$" " ?$$$,?$$$. ,-''`>, bzP
'cLdb,?$$,?$$$ ,h' "I$'J$P
... `?$$$,"$$,`$$h $$PxrF'd$"
#!/bin/sh
### Compatible Images
# Ubuntu 18.04 LTS
# Debian 10
# Ubuntu 20.04 LTS
# Ubuntu 22.04 LTS
# Debian 12
#################################################################
# A DevOps Toolbox that installs Terraform, Docker and Kubernetes
#!/bin/bash
echo "Output of kubectl get all:"
kubectl get all
echo
echo "Output of kubectl get ingress:"
kubectl get ing
#!/bin/bash
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
## unit_test.c
#include <stdio.h>
#include <assert.h>
int tambah(int a, int b) {
return a + b;
}
╰─❯ tree ─╯
.
├── go.mod
├── main.go
└── main_test.go
### main.go
package main
## jalan pintas kubernetes
# get ip
kgs -n argocd argocd-server -o json | jq -r '.status.loadBalancer.ingress[0].ip'
@ajitirto
ajitirto / test-php.php
Created June 20, 2024 01:53
testing in php
at  08:49:47 ─╮
╰─❯ tree . -I "vendor|composer.lock" ─╯
.
├── composer.json
└── src
├── index.php
└── MathFunctionsTest.php
1 directory, 3 files