Skip to content

Instantly share code, notes, and snippets.

View hendisantika's full-sized avatar
💻
Coding... coding.. coding.... and coding..!

Hendi Santika hendisantika

💻
Coding... coding.. coding.... and coding..!
View GitHub Profile
@hendisantika
hendisantika / mysql-daily.backup.sh
Created July 2, 2024 01:40
MySQL Daily Backup Database
# backup-database.sh
#!/bin/bash
# Name: mysql-daily.backup.sh
# Date: Monday, 1 July 2024 09.00 WIB
# Usage: Ubuntu Linux Backup MySQL Server Shell Script
# Author: Hendi Santika https:/s.id/hendisantika under GPL v2.x+
# -------------------------------------------------------------------
# Konfigurasi
DB_NAME="DB_NAME"
DB_USER="DB_USER"
@hendisantika
hendisantika / deploy_dev.yml
Last active June 24, 2024 14:23
GitHub Action template to deploy_dev to AWS ECR
name: Deploy DEV WEB APP
on:
push:
branches:
- master
env:
ENV_GITHUB: ${{ vars.ENV_GITHUB }}
IMAGE_TAG: ${{ github.run_number }}
CONTAINER_NAME: dalim-fe
REGISTRY: docker.io
@hendisantika
hendisantika / deploy_dev.yml
Created June 14, 2024 01:17
Laravel Deployment to DEV & PROD Server
name: Development Deployment via Rsync
on:
push:
branches:
- master
env:
ENV_DEV: ${{ vars.ENV_DEV }}
ENV_GITHUB: ${{ vars.ENV_GITHUB }}
jobs:
deployment:

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@hendisantika
hendisantika / docker-compose.yml
Created March 25, 2024 03:53
Kafka & Zoo Keeper
version: '3.9'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
@hendisantika
hendisantika / nuxt3-pm2-build-deploy-on-arm.yaml
Created January 13, 2024 07:08 — forked from L422Y/nuxt3-pm2-build-deploy-on-arm.yaml
Github Actions Workflow to build and deploy Nuxt 3 SSR with PM2, as well as node-canvas, on ARM64, utilizing cache for `pnpm` and `apt` including the build for `node-canvas`
name: "Build and deploy Nuxt SSR with PM2"
on: [push]
jobs:
build:
name: "Build Nuxt Application"
runs-on: [self-hosted, ARM64] # you can also use buildjet.com
environment:
name: "Production"
steps:
- uses: actions/checkout@v3
@hendisantika
hendisantika / DockerComposeInstall.md
Created December 28, 2023 12:06 — forked from usrbinkat/DockerComposeInstall.md
Sample Docker Compose for a Kong EE insallation

Local Kong EE Hybrid Install with Docker-compose

Before

  • Confirm you have Docker and Docker compose installed

  • Create a environment var for you Kong License, KONG_LICENSE_DATA

  • Create a file with your json license

  • Create your environment variable KONG_LICENSE_DATA from the above file

@hendisantika
hendisantika / workflow.yaml
Created November 18, 2023 04:59 — forked from lorisleiva/workflow.yaml
🐳 GitHub Actions using Laravel Docker
name: My Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: lorisleiva/laravel-docker:7.4
steps:
- uses: actions/checkout@v2
@hendisantika
hendisantika / cd.yml
Created November 12, 2023 10:09 — forked from madsem/cd.yml
GitHub Workflows For: Laravel CI with Mysql 8 & Laravel Vapor Deployment
name: Laravel Vapor CD
on:
release:
types: [ published, deleted ]
branches:
- master
jobs:
deploy_release:
runs-on: ubuntu-20.04
@hendisantika
hendisantika / Grafana-k6-InfluxDB.json
Last active November 3, 2023 01:44
Grafana k6 InfluxDB Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,