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 / 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 January 31, 2024 06:28
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,