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
[
{ "keys": ["super+shift+l"], "command": "goto_symbol_in_project" },
{ "keys": ["super+shift+9"], "command": "intelephense.index.workspace"},
{ "keys": ["super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+t"], "command": "toggle_terminus_panel" },
{ "keys": ["super+shift+o"], "command": "close_all" },
{
"command": "lsp_symbol_definition",
"args": {
"side_by_side": false
@jhonoryza
jhonoryza / websocket.md
Last active January 17, 2024 04:20
List Websocket for Laravel

Websocket

websocket server

  1. pusher (subscription) - laravel integration builtin (event & broadcasting) - https://pusher.com/
  2. ably (subscription) - https://ably.com/blog/building-a-realtime-chat-app-with-react-laravel-and-websockets
  3. laravel websocket (free) php - (pusher compatible) https://github.com/beyondcode/laravel-websockets
  4. laravel echo server (free) nodejs - Socket.io server for Laravel Echo - https://github.com/tlaverdure/laravel-echo-server
  5. socket io (free) nodejs - https://github.com/socketio/socket.io
  6. soketi (free) nodejs - (pusher compatible) https://github.com/soketi/soketi
@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