Skip to content

Instantly share code, notes, and snippets.

View dirumahrafif's full-sized avatar
🏠
Working from home

Programming di Rumahrafif dirumahrafif

🏠
Working from home
View GitHub Profile
@dirumahrafif
dirumahrafif / install-n8n-dengan-docker.sh
Last active June 29, 2025 17:39
Proses Menginstal Docker (jika belum ada) dan menjalankan n8n
#!/bin/bash
# ================================================================
# Script: install-n8n-with-docker.sh
# Deskripsi: Menginstal Docker (jika belum ada) dan menjalankan n8n
# Usage:
# wget https://gist.githubusercontent.com/dirumahrafif/231bdc5047bd5378d470e5dd56067d8a/raw/11d8c8093269531d66cc270ac99b1dced079fcca/install-n8n-dengan-docker.sh
# chmod +x install-n8n-with-docker.sh
# ./install-n8n-with-docker.sh
# ================================================================
@dirumahrafif
dirumahrafif / github-action.yml
Last active June 27, 2025 22:22
Github action untuk deploy aplikasi Laravel dirumahrafif
name: Deploy Laravel to VPS
on:
push:
branches:
- '*'
jobs:
deploy:
name: CI/CD to VPS
version: '3.8'
services:
pgmaster:
image: postgres:15
container_name: pgmaster
hostname: pgmaster
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
@dirumahrafif
dirumahrafif / docker-compose.yml
Last active May 29, 2025 08:09
Monitoring Stack
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
restart: always
@dirumahrafif
dirumahrafif / 1_scrapping-komentar-youtube.md
Last active May 24, 2025 22:38
Scrapping Data Komentar Youtube

1. Instal Plugin

pip install google-api-python-client

2. Proses Ambil Satu Data

Key didapatkan dari Google Cloud

def_api_key = 'xxx'
@dirumahrafif
dirumahrafif / index.blade.php
Last active May 5, 2025 22:07
Blade untuk proses CRUD data Buku
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Buku</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome untuk ikon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
@dirumahrafif
dirumahrafif / App.css
Last active February 5, 2025 01:00
Simple CRUD using MOCK UP API in React JS
body,
html {
background-color: #ccc;
margin: auto;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #333;
font-size: 15px;
}
.wrapper {
width: 600px;
@dirumahrafif
dirumahrafif / .htaccess
Last active January 1, 2025 22:41
Upload Laravel to Shared Hosting, so we don't need to change our file index.php in public folder
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Loading PHP as if is public/ from /
RewriteRule ^$ public/index.php [L]
#Loading page as if is public/ from /
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
RewriteRule (^\.|/\.) - [F]
@dirumahrafif
dirumahrafif / google-login.blade.php
Created November 15, 2024 23:33
Simple login to check whether someone already subscribe or not
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login with Google</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" />
<script src="https://apis.google.com/js/platform.js"></script>
</head>
@dirumahrafif
dirumahrafif / login.blade.php
Created October 11, 2024 09:46
Blade untuk coba API
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>Login</title>
</head>