Skip to content

Instantly share code, notes, and snippets.

View itsgitz's full-sized avatar
🥊
Happy Code

Anggit M Ginanjar itsgitz

🥊
Happy Code
View GitHub Profile
@itsgitz
itsgitz / tsconfig.json
Last active November 25, 2024 05:33
Best recommendation of TypeScript Configuration (tsconfig.json)
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
@itsgitz
itsgitz / laravel-php-extensions-requirement.txt
Created September 3, 2024 04:14
Laravel PHP Extensions Requirement
Laravel PHP extensions requirement:
php8.2-fpm
php8.2-curl
php8.2-dom
php8.2-mbstring
php8.2-xml
php8.2-gd
php8.2-sqlite3
php8.2-zip
php8.2-intl
@itsgitz
itsgitz / index.php
Last active January 20, 2025 02:07
LKS Cloud Computing Jawa Barat 2024
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modul 1 - LKS Cloud Computing Jawa Barat 2024</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
>
@itsgitz
itsgitz / 10-opcache.ini
Last active August 6, 2023 06:40
PHP opcache/jit configuration example
[opcache]
; Enable Zend OPcache extension module
zend_extension=opcache
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1
@itsgitz
itsgitz / README.md
Last active June 18, 2023 10:22
Sudoers configuration example

Save this configuration file on /etc/sudoers.d/myuser

@itsgitz
itsgitz / myapps.supervisord.conf
Last active June 18, 2023 10:22
Supervisord configuration example
[program:myapps]
command=/usr/bin/php /srv/myapps.php
stopasgroup=true
stopsignal=QUIT
stdout_logfile=/var/log/supervisor/myapps.log
stderr_logfile=/var/log/supervisor/myapps.log
logfile_maxbytes=50MB
autorestart=unexpected
@itsgitz
itsgitz / pg_dump.conf
Created October 3, 2022 03:43
pg_dump command example
pg_dump -U myuser -d mydb -W -h localhost -f out.sql
@itsgitz
itsgitz / hello.com
Last active November 25, 2024 05:34
A Simple Nginx Reverse Proxy Configuration Example
server {
listen 80;
listen [::]:80;
server_name hello.com;
location / {
proxy_pass http://127.0.0.1:8000;
include proxy_params;
}
@itsgitz
itsgitz / create-table.sql
Last active October 3, 2022 03:46
Create table query for modul 3
CREATE TABLE IF NOT EXISTS users (
id serial PRIMARY KEY,
username VARCHAR(50) NOT NULL,
password VARCHAR(50) NOT NULL
)
CREATE TABLE IF NOT EXISTS notes (
id serial PRIMARY KEY,