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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Ctag Tagbar | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set tags=.tags;/ | |
set autochdir | |
noremap <silent> <C-F12> :!ctags -R --fields=+iaKSz --extra=+q -f .tags .<CR> | |
inoremap <silent> <C-F12> <Esc>:!ctags -R --fields=+iaKSz --extra=+q -f .tags .<CR> | |
nmap <F12> :TagbarToggle<CR> |
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
"=================================================================================== | |
" FILE: .vimrc | |
" DESCRIPTION: suggestion for a personal configuration file ~/.vimrc | |
" AUTHOR: rockagen <[email protected]> | |
" CREATED: 2014 | |
"=================================================================================== | |
" | |
"=================================================================================== | |
" GENERAL SETTINGS | |
"=================================================================================== |
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/sh | |
make clean | |
make distclean | |
git pull origin | |
./configure --with-features=huge --enable-multibyte --enable-pythoninterp=dynamic --enable-python3interp --enable-perlinterp=dynamic --enable-luainterp=yes --with-luajit --enable-rubyinterp=dynamic --with-ruby-command=/usr/local/bin/ruby --enable-gui=auto --enable-cscope --enable-fontset --enable-largefile --disable-netbeans --with-compiledby="ra" --enable-fail-if-missing --prefix=/usr/local | |
make -j4 && sudo make install |
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
import com.opencsv.CSVWriter; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.lang3.StringUtils; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.Writer; | |
import java.lang.reflect.Field; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.LinkedHashMap; |
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
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
<compilerId>groovy-eclipse-compiler</compilerId> |
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
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your location block(s): | |
# | |
# include cors_support; | |
# | |
# A limitation to this method is that Nginx doesn't currently send headers |
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
import ch.qos.logback.classic.encoder.PatternLayoutEncoder | |
import ch.qos.logback.core.ConsoleAppender | |
import ch.qos.logback.core.rolling.RollingFileAppender | |
import ch.qos.logback.core.rolling.TimeBasedRollingPolicy | |
import java.nio.charset.Charset | |
def usrDir=System.getProperty("WORK_PATH")?:"." | |
def appenderList = ["STDOUT"] |
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
# Expert: If you want finer control over memory options, specify them directly | |
# Comment out SOLR_HEAP if you are using this though, that takes precedence | |
SOLR_JAVA_MEM="-Xms12g -Xmx12g" | |
# Enable verbose GC logging | |
GC_LOG_OPTS=" \ | |
-verbose:gc \ | |
-XX:+PrintHeapAtGC \ | |
-XX:+PrintGCDetails \ | |
-XX:+PrintGCDateStamps \ |
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/sh | |
policy=${HOME}/.jstatd.all.policy | |
[ -r ${policy} ] || cat >${policy} <<'POLICY' | |
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; | |
POLICY | |
jstatd -J-Djava.security.policy=${policy} & |
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
# Enable verbose GC logging | |
GC_LOG_OPTS=" \ | |
-verbose:gc \ | |
-XX:+PrintHeapAtGC \ | |
-XX:+PrintGCDetails \ | |
-XX:+PrintGCDateStamps \ | |
-XX:+PrintGCTimeStamps \ | |
-XX:+PrintTenuringDistribution \ | |
-XX:+PrintGCApplicationStoppedTime \ | |
-XX:+PrintStringDeduplicationStatistics \ |