Skip to content

Instantly share code, notes, and snippets.

View betapcode's full-sized avatar

Phạm Ngọc Minh betapcode

  • tamtay.vn
  • Hà Nội - Việt Nam
View GitHub Profile
@betapcode
betapcode / etc_init.d_supervisord
Created April 18, 2019 08:21
[ubuntu] /etc/init.d/supervisord
#!/bin/bash
#
# supervisord Startup script for the Supervisor process control system
#
# AUTHOR : betapcode - [email protected]
# COMPANY: Tamtay JSC
# VERSION: 1.0
# CREATED: 04/11/2016 10:31:01 AM
#
# chkconfig: 345 83 04
@betapcode
betapcode / install-grpc-php-on-mac.sh
Last active November 4, 2021 11:13 — forked from sagikazarmark/install-grpc-php-on-mac.sh
Install the gRPC PHP plugin
# Install the gRPC PHP plugin on Mac
#
# See: http://www.grpc.io/docs/quickstart/php.html#install-protobuf-plugin
# Source: https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4
# C1:
# ================================================================================================
# Install build dependencies
brew install automake libtool
@betapcode
betapcode / nginx.service
Created August 4, 2020 14:26
nginx.service for ubuntu 18.04 compiler from source
# Stop dance for nginx
# =======================
#
# ExecStop sends SIGSTOP (graceful stop) to the nginx process.
# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control
# and sends SIGTERM (fast shutdown) to the main process.
# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends
# SIGKILL to all the remaining processes in the process group (KillMode=mixed).
#
# nginx signals reference doc: