Skip to content

Instantly share code, notes, and snippets.

View uluumbch's full-sized avatar
🎓

Bachrul uluum uluumbch

🎓
View GitHub Profile
@uluumbch
uluumbch / nama_dan_link_toko_batch_201_205.json
Last active March 5, 2025 21:54
config untuk scrape nama toko dan link toko shopee menggunakan webscraper.io
{
"_id": "nama_dan_link_toko",
"startUrl": [
"https://shopee.co.id/Emina-Bright-Stuff-Face-Wash-Sabun-Muka-Emina-i.38076091.24300493094?sp_atk=9aaf3b0f-2c07-43b0-9b6f-4576267ba971&xptdk=9aaf3b0f-2c07-43b0-9b6f-4576267ba971",
"https://shopee.co.id/Emina-Bright-Stuff-Loose-Powder-55gr-i.34547959.2627369477?sp_atk=b0ae1f55-fd4c-4ed1-8f98-cb33b99772a4&xptdk=b0ae1f55-fd4c-4ed1-8f98-cb33b99772a4",
"https://shopee.co.id/MAKE-OVER-Powerstay-Total-Cover-Liquid-Concealer-6.5-ml-Concealer-Liquid-TnT-Beauty-Shop-i.744873.2239118237?sp_atk=efb633fb-0be3-4e85-9e10-06a17355539c&xptdk=efb633fb-0be3-4e85-9e10-06a17355539c",
"https://shopee.co.id/Wardah-Acnederm-Pure-Foaming-Cleanser-60ml-TnT-Beauty-Shop-i.744873.7620275253?sp_atk=bd89751f-d365-4c22-a9c8-9e43a8bbc00c&xptdk=bd89751f-d365-4c22-a9c8-9e43a8bbc00c",
"https://shopee.co.id/Wardah-Renew-You-Anti-Aging-Facial-Wash-100ml-i.370122939.19395046874?sp_atk=8d631e6e-ef43-4151-a217-1e605d1b15b0&xptdk=8d631e6e-ef43-4151-a217-1e605d1b15b0",
"https://s
@uluumbch
uluumbch / usage.md
Created February 9, 2025 02:53
Zip laravel project for production ready

don't forget to run chmod +x zip-project.sh first

Usage

✅ Exclude dev dependencies (default)

./zip-project.sh 8.1

(Runs composer install --no-dev by default)

@uluumbch
uluumbch / toast.blade.php
Created December 31, 2024 07:21
Alpine JS toast in laravel with tailwind. originate from devdojo.com/pines
{{-- located in views/resources/component/toast.blade.php --}}
<div class="relative w-auto h-auto" x-data>
<template x-teleport="body">
<ul
x-data="{
toasts: [],
toastsHovered: false,
expanded: false,
layout: 'default',
position: 'top-center',
@uluumbch
uluumbch / guide.md
Last active December 13, 2024 02:34
print laravel.log with color highlighting on Ubuntu.

Method 1: Using ccze (Recommended)

Install ccze:

sudo apt update
sudo apt install ccze
@uluumbch
uluumbch / dashboard.blade.php
Created September 26, 2024 03:05
Template dashboard tailwind css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dashboard</title>
@vite('resources/css/app.css')
</head>
@uluumbch
uluumbch / select.blade.php
Created August 26, 2024 03:14
Laravel Alpine Tailwind CSS Select with search. also has old and editable value
@props(['options', 'name', 'placeholder' => 'Select an option', 'value' => null, 'emptyOptionsMessage' => 'No results match your search.'])
<div class="mx-auto">
<div
x-data="select({ data: {{ json_encode($options) }}, name: '{{ $name }}', placeholder: '{{ $placeholder }}', value: '{{ $value }}', emptyOptionsMessage: '{{ $emptyOptionsMessage }}' })"
x-init="init()"
@click.away="closeListbox()"
@keydown.escape="closeListbox()"
class="relative"
>
<input type="hidden" x-model="value" name="{{ $name }}">
@uluumbch
uluumbch / sendEmailToList.gs
Created May 21, 2024 12:16
Kirim email secara otomatis dari list di google sheets
function sendEmails() {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
const dataRange = sheet.getRange("A3:B40");
const data = dataRange.getValues();
for (let i = 0; i < data.length; i++) {
const row = data[i];
const emailAddress = row[0];
const name = row[1];
const subject = `Informasi terkait Program Google Arcade Fasilitator 2024 oleh fasilitator`
@uluumbch
uluumbch / .htaccess
Created March 20, 2024 08:48
htaccess file for redirecting request to public folder. Used on Laravel project
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@uluumbch
uluumbch / install_php_nginx.sh
Last active May 27, 2023 10:35
Cara install NGINX PHP Composer NPM dan Node JS di ubuntu
#!/bin/bash
# Update the system
sudo apt update
sudo apt upgrade -y
# Install PHP dependencies
sudo apt install -y software-properties-common
# Add the ondrej/php repository for PHP 8.2