Skip to content

Instantly share code, notes, and snippets.

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

fajar sp jhonoryza

🏠
Working from home
View GitHub Profile
@jhonoryza
jhonoryza / readme.md
Created February 7, 2024 16:23
install flutter for android development
@jhonoryza
jhonoryza / readme.md
Last active January 9, 2024 11:36
handling race condition
@jhonoryza
jhonoryza / readme.md
Created January 9, 2024 09:06
adjust open_basedir php.ini di docker image serversideup

gunakan user root edit file ini vim /etc/php/8.2/fpm/pool.d/y-override-php-defaults.conf

cari file dengan perintah :/basedir enter

ganti baris

; php_admin_value[open_basedir] = ${PHP_OPEN_BASEDIR}
php_admin_value[open_basedir] = /var/www/html:/dev/stdout:/tmp:/dev/null;
@jhonoryza
jhonoryza / readme.md
Created January 9, 2024 08:27
user and group in linux

add user to a group

sudo usermod -a -G groupname username

create the group if it doesn't exist:

groupadd -g 4200 sysadmin2
@jhonoryza
jhonoryza / ansible-gitlab-ci-cd.md
Created January 8, 2024 07:12
deploy laravel apps using gitlab ci/cd with ansible docker image

let say we want to setup for staging environment

Requirement

  • vps server

Step

  • create file .gitlab-ci.yml in root directory add this line
// In Laravel app.js
import NProgress from 'nprogress';
Livewire.hook('commit', ({ component, commit, respond, succeed, fail }) => {
NProgress.start()
succeed(({ spanshot, effect }) => {
queueMicrotask(() => {
NProgress.done(true)
@jhonoryza
jhonoryza / s3.yml
Created September 22, 2023 04:08 — forked from a1994sc/s3.yml
MinIO docker Swarm Traefik setup
version: '3.7'
services:
minio1:
image: minio/minio:latest
hostname: minio1
volumes:
- /mnt/drive/minio:/export
networks:
- proxy
@jhonoryza
jhonoryza / readme.md
Created August 22, 2023 15:30
locale not set in linux

manpath: can't set the locale; make sure $LC_* and $LANG are correct

sudo locale-gen "en_US.UTF-8"
sudo dpkg-reconfigure locales

and in file /etc/default/locale add line LC_ALL="en_US.UTF-8" and relogin to your server.

@jhonoryza
jhonoryza / coolify-laravel.md
Last active July 29, 2023 19:47
coolify laravel
  • create folder .docker/apache/php.ini from root directory
memory_limit = 512M
post_max_size = 48M
upload_max_filesize = 700M
max_file_uploads = 20
  • create Dockerfile in root directory