This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| . ~/.bashrc | |
| echo "jvm statics" | |
| netstat -atnp|grep java|grep LISTEN|awk '{print $4" "$7}'|sed 's#0\.0\.0\.0:##g'|sed 's#/java##g'|while read pport | |
| do | |
| pid=`echo $pport|awk '{print $2}'` | |
| port=`echo $pport|awk '{print $1}'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mirror_site="rsync://mirrors.yun-idc.com/centos/" | |
| local_path="/app/mirrors/data/centos/" | |
| excludes_path="/app/mirrors/conf/excludes.d/centos.list" | |
| pid_file="/app/mirrors/var/run/centos.pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| target=$1 | |
| tarball="ghostscript-9.15-linux-x86_64" | |
| if [ -d "$target" ]; | |
| then | |
| echo "the path $target is exist, can't install the file into it." | |
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "start convert pdf to jpeg" | |
| #command line | |
| sdir=$(dirname $0) | |
| gs_cli=$sdir'/gs' | |
| convert_cli='/usr/bin/convert' | |
| id_cli='/usr/bin/identify' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@page trimDirectiveWhitespaces="true" %> | |
| <%@page import="java.io.*"%> | |
| <%@page import="javax.naming.InitialContext" %> | |
| <%@page import="javax.naming.NamingException" %> | |
| <%@page import="javax.sql.DataSource" %> | |
| <%@page import="java.nio.charset.Charset"%> | |
| <%@page import="org.apache.tomcat.dbcp.dbcp.BasicDataSource" %> | |
| <%@ page language="java" contentType="text/html; charset=UTF-8" | |
| pageEncoding="UTF-8"%> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All other flavors inherit the `common' config snippet | |
| common: &common | |
| issue: '"docker-registry server"' | |
| # Default log level is info | |
| loglevel: _env:LOGLEVEL:info | |
| # Enable debugging (additional informations in the output of the _ping endpoint) | |
| debug: _env:DEBUG:true | |
| # By default, the registry acts standalone (eg: doesn't query the index) | |
| standalone: _env:STANDALONE:true | |
| # The default endpoint to use (if NOT standalone) is index.docker.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All other flavors inherit the `common' config snippet | |
| common: &common | |
| issue: '"docker-registry server"' | |
| # Default log level is info | |
| loglevel: _env:LOGLEVEL:info | |
| # Enable debugging (additional informations in the output of the _ping endpoint) | |
| debug: _env:DEBUG:true | |
| # By default, the registry acts standalone (eg: doesn't query the index) | |
| standalone: _env:STANDALONE:true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@page trimDirectiveWhitespaces="true" %> | |
| <%@page import="java.io.*"%> | |
| <%@page import="javax.naming.InitialContext" %> | |
| <%@page import="javax.naming.NamingException" %> | |
| <%@page import="javax.sql.DataSource" %> | |
| <%@page import="java.nio.charset.Charset"%> | |
| <%@page import="org.apache.tomcat.dbcp.dbcp.BasicDataSource" %> | |
| <%@ page language="java" contentType="text/html; charset=UTF-8" | |
| pageEncoding="UTF-8"%> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export JAVA_OPTS="-Xmx1g -Xms1g -XX:MetaspaceSize=128M -XX:MaxMetaspaceSize=256M $JAVA_OPTS" | |
| export JAVA_OPTS="-XX:+AggressiveOpts -XX:+UseBiasedLocking $JAVA_OPTS" | |
| export JAVA_OPTS="-XX:+UseConcMarkSweepGC -XX:+UseParNewGC $JAVA_OPTS" | |
| export JAVA_OPTS="-XX:+UseFastAccessorMethods -XX:+CMSParallelRemarkEnabled $JAVA_OPTS" |