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

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,
@hendisantika
hendisantika / deploy.sh
Created September 18, 2023 23:49 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@hendisantika
hendisantika / test.html
Created February 21, 2023 13:30 — forked from piyusht007/test.html
Role checking Cheatsheet in Spring security and Thymeleaf
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<div>
<b>Username:</b>
<div sec:authentication="name">
The value of the "name" property of the authentication object should appear here.
</div>
</div>
<div>
<b>User Roles: </b>