Skip to content

Instantly share code, notes, and snippets.

View vincentnguyen92's full-sized avatar
🔥
burning...

Vincent Nguyen vincentnguyen92

🔥
burning...
  • Ho Chi Minh, VN
View GitHub Profile
@vincentnguyen92
vincentnguyen92 / .env
Created August 19, 2024 02:19 — forked from thesafaraliyev/.env
Laravel with Localstack S3 and SQS setup
FILESYSTEM_DRIVER=s3
QUEUE_CONNECTION=sqs
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=bucket1
AWS_ENDPOINT=http://localhost:4566/
AWS_USE_PATH_STYLE_ENDPOINT=true
SQS_QUEUE=queue1
SQS_PREFIX=http://localhost:4566/000000000000/
title markmap
OKXE Application
colorFreezeLevel initialExpandLevel
2
1

Android

OFA

#!/bin/bash
# set -x
##############################################################################
##############################################################################
#### GITLAB CICD using SSM for running the command to EC2 instance
#### Must be exist the some environments variable for running this script
#### The environment variables must be exist:
#### - AWS_REGION
#### - DEV_INSTANCE_ID
@vincentnguyen92
vincentnguyen92 / install-docker.md
Created July 6, 2023 04:25 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@vincentnguyen92
vincentnguyen92 / Dockerfile
Created September 15, 2022 10:02 — forked from themightychris/Dockerfile
nginx + PHP composite Docker container
#
# Multi-Stage Docker build:
# Laravel 5.8 + PHP73 + Postgres || MySQL
#
# @link https://laravel.com/docs/5.8
# @link https://hub.docker.com/_/php
# @link https://hub.docker.com/_/mysql
# @link https://hub.docker.com/_/postgres
#
@vincentnguyen92
vincentnguyen92 / laravel-multiple-env-setup.php
Created June 27, 2021 00:39 — forked from msankhala/laravel-multiple-env-setup.php
Setup Multiple Environment for Laravel 5 Developers Way
<?php
/*
|--------------------------------------------------------------------------
| Follow this instructions:
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
@vincentnguyen92
vincentnguyen92 / laravel-supervisor.md
Created June 24, 2021 20:24 — forked from vrajroham/laravel-supervisor.md
Installing Supervisor on AWS Elastic Beanstalk manually.

Installing Supervisor on AWS Elastic Beanstalk manually.

This gist may help you to install supervisor Manually on AWS Beanstalk host. I was enable to install and configure referring supervisor docs. Here are the steps by which I was able to use supervisor on my project.

Note: I have performed this steps on Laravel project and my instance was Debian powered. You can change according to your requirement.


  • Check python with easy_install is installed
  • Install supervisor > $ easy_install supervisor
  • Create directory for supervisor workers > mkdir /etc/supervisor/conf.d/
@vincentnguyen92
vincentnguyen92 / Readme.md
Created June 24, 2021 20:23 — forked from israelalagbe/Readme.md
Install and use Supervisord with AWS Elastic Beanstalk, Symfony 2 and RabbitMq Bundle
  • Place the supervisord.conf under .ebextensions/supervisor/

  • Place the supervisor.config under .ebextensions/

  • Place the data_import_consumer.conf under .ebextensions/supervisor/

@vincentnguyen92
vincentnguyen92 / readme.md
Created June 24, 2021 20:22 — forked from johnyvelho/readme.md
Installing Supervisor on Elastic Beanstalk - 2021 - Linux AMI 2 - Laravel Worker Setup
  • Create the following folder structure in your root project directory: .ebextensions/supervisor

  • Place the supervisor.config under .ebextensions/

  • Place the setup.sh under .ebextensions/supervisor/

  • Run "chmod +x .ebextensions/supervisor/setup.sh"

  • Place the supervisord.conf under .ebextensions/supervisor/

特定のテーブルのカラムにだけCOLLATIONを設定する方法

$ be bin/rails db
=# ALTER TABLE users ALTER COLUMN kana TYPE varchar COLLATE "ja_JP.utf8";
> 特定のカラムにだけ付与

=# \d staffs
> 付与したことを確認