Skip to content

Instantly share code, notes, and snippets.

View wildanm's full-sized avatar
🎯
Focusing

Wildan Maulana wildanm

🎯
Focusing
View GitHub Profile
@wildanm
wildanm / www.conf
Created September 17, 2020 03:44
Tuning php-fpm untuk TAO
; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives. With this process management, there will be
; always at least 1 children.
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wildanm
wildanm / scanadmin.conf
Created October 20, 2019 07:23
Apache 2.4.18 Virtual Server Configuration for ODKScan Webapps
<VirtualHost *:8080>
ServerAdmin info@openthinklabs.com
ServerName scanadmin.np
WSGIScriptAlias / /opt/www/scanadmin/scanadmin/wsgi.py
# Serve static files:
DocumentRoot /opt/www/scanadmin/ODKScan_webapp
Alias /static/admin /opt/www/scanadmin/venv/lib/python2.7/site-packages/django/contrib/admin/static/admin
<Directory "opt/www/scanadmin/venv/lib/python2.7/site-packages/django/contrib/admin/static/admin">
@wildanm
wildanm / my.cnf
Created July 30, 2019 11:11
my.cnf for AlisJK
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
socket = /tmp/mysql.sock
connect_timeout = 10
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
default_authentication_plugin=mysql_native_password
secure-file-priv = ""
innodb_log_file_size = 200M
innodb_log_buffer_size = 16M
mysql> show engine innodb status\G
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
=====================================
2019-07-27 21:10:11 0x7f16345a0700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 33 seconds
-----------------
@wildanm
wildanm / alisjk.conf
Created July 9, 2019 05:33
AlisJK Nginx Configuration Files
server {
server_name alisjk.np;
root /opt/webapps/alisjk/web;
access_log /var/log/nginx/alisjk/access.log;
error_log /var/log/nginx/alisjk/error.log;
fastcgi_read_timeout 3000s;
location / {
@wildanm
wildanm / indexer.ini
Last active February 2, 2019 03:15
Sistem Informasi Bank Soal - Supervisor
[program:indexer]
environment = LC_ALL=en_US.UTF-8,LANG=en_US.UTF-8
command = /path/to/banksoal/elasticsearch/envosx/bin/python indexer.py
directory = /path/to/banksoal/elasticsearch
user = fulan
autostart = false
stdout_logfile=/Library/Logs/supervisor/indexer_stdout.log ; stdout log path, NONE for none; default AUTO
stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10)
@wildanm
wildanm / searchapi.ini
Created February 2, 2019 03:08
Sistem Informasi Bank Soal - Supervisor
[program:searchapi]
environment = LC_ALL=en_US.UTF-8,LANG=en_US.UTF-8
command = /path/to/banksoal/elasticsearch/envosx/bin/gunicorn -b 0.0.0.0:8000 -w 4 searchapi:app
directory = /path/to/banksoal/elasticsearch
user = fulan
autostart = false
;numprocs=1 ; number of processes copies to start (def 1)
;umask=022 ; umask for process (default None)
;priority=999 ; the relative start priority (default 999)
;startsecs=1 ; # of secs prog must stay up to
@wildanm
wildanm / elasticsearch.ini
Created February 2, 2019 02:59
Sistem Informasi Bank Soal - Supervisor
[program:elasticsearch]
command = /path/to/banksoal/elasticsearch/elasticsearch-5.6.3/bin/elasticsearch
directory = /path/to/banksoal/elasticsearch
user = fulan
autostart = false
environment = ES_JAVA_OPTS="-Xms2g -Xms2g -Djava.net.preferIPv4Stack=true"
@wildanm
wildanm / supervisord.ini
Last active February 2, 2019 03:01
Sistem Informasi Bank Soal - Supervisor
; Sample supervisor config file.
;
; For more information on the config file, please see:
; http://supervisord.org/configuration.html
;
; Notes:
; - Shell expansion ("~" or "$HOME") is not supported. Environment
; variables can be expanded using this syntax: "%(ENV_HOME)s".
; - Quotes around values are not supported, except in the case of
; the environment= options as shown below.