Skip to content

Instantly share code, notes, and snippets.

@ethnchao
ethnchao / subversion-authz
Created May 30, 2018 03:29
Subversion Configurations
[/workflow]
@developer_group = rw
@manager_group = rw
[groups]
service_group = user
manager_group = user
@ethnchao
ethnchao / supervisor-tomcat.conf
Created May 30, 2018 03:23
Supervisor Tomcat
[program:tomcat-app]
autorestart=true
stderr_events_enabled=true
stdout_events_enabled=true
name=tomcat-app
priority=102
command=/opt/tomcat-app/bin/run.sh
user=admin
directory=/opt/tomcat-app
stdout_logfile=/opt/tomcat-app/logs/supervisor-tomcat-app.log
@ethnchao
ethnchao / supervisor-hbase.conf
Created May 30, 2018 03:22
Supervisor HBase
[program:hbase]
autorestart=true
stderr_events_enabled=true
stdout_events_enabled=true
name=hbase
redirect_stderr=true
stopwaitsecs=60
command=/opt/hbase/bin/hbase master start
user=admin
directory=/opt/hbase
@ethnchao
ethnchao / supervisor-activemq.conf
Created May 30, 2018 03:21
Supervisor ActiveMQ
[program:activemq]
autorestart=true
stderr_events_enabled=true
stdout_events_enabled=true
name=activemq
stopasgroup=true
command=/opt/activemq/bin/linux-x86-64/activemq console
user=admin
directory=/opt/activemq/bin/linux-x86-64
stdout_logfile=/opt/activemq/data/supervisor-activemq.log
@ethnchao
ethnchao / supervisor-sonarqube.conf
Created May 30, 2018 03:19
Supervisor sonarqube
[program:sonarqube]
autorestart=true
stderr_events_enabled=true
stdout_events_enabled=true
name=sonarqube
stopasgroup=true
command=/opt/sonarqube/bin/linux-x86-64/sonar.sh console
user=admin
directory=/opt/sonarqube/bin/linux-x86-64
stdout_logfile=/opt/sonarqube/logs/supervisor-sonarqube.log
solr soft nofile 65000
solr hard nofile 65000
solr soft nproc 65000
solr hard nproc 65000
@ethnchao
ethnchao / keepalived-check_nginx.sh
Created May 30, 2018 02:54
Keepalived & Nginx Configurations
#!/bin/bash
counter=$(ps -C nginx --no-heading|wc -l)
if [ "${counter}" = "0" ]; then
/etc/init.d/nginx start
sleep 2
counter=$(ps -C nginx --no-heading|wc -l)
if [ "${counter}" = "0" ]; then
/etc/init.d/keepalived stop
fi
fi
@ethnchao
ethnchao / aix-oracle-oratab
Created May 29, 2018 11:27
AIX Oracle Configurations
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
@ethnchao
ethnchao / nfs-exports
Created May 29, 2018 11:02
NFS Configurations
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
@ethnchao
ethnchao / maven-settings.xml
Created May 29, 2018 10:59
Maven settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at