Save this configuration file on /etc/sudoers.d/myuser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
/* Base Options: */ | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"target": "es2022", | |
"allowJs": true, | |
"resolveJsonModule": true, | |
"moduleDetection": "force", | |
"isolatedModules": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump -U myuser -d mydb -W -h localhost -f out.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name hello.com; | |
location / { | |
proxy_pass http://127.0.0.1:8000; | |
include proxy_params; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |