Skip to content

Instantly share code, notes, and snippets.

@otw1248
otw1248 / ServicePreAction.java
Last active December 12, 2016 02:13
liferay
from:https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/events/ServicePreAction.java
~~~
protected void servicePre(
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ThemeDisplay themeDisplay = initThemeDisplay(request, response);
@otw1248
otw1248 / FAQ on DEV,OPS,QA list and references.md
Last active June 14, 2019 22:42
docker;xsl, exslt; git, CM;gitlab;intellij,IDE;markdown;SSH;java, JVM; soap; xsl, exslt;migration,ant,maven;

back up to clouds / disks; try to put everything into clouds.

clouds: google/microsoft; weiyun/baidu;

  1. contact/email/photo/video -->google
  2. msg / call history

Dev Ops

Dev
@otw1248
otw1248 / java.md
Last active April 22, 2016 08:41
java;source code;

#####search a file in jar files by name

static void checking(String fileName, String jarPath) {
        File jarsFolder = new File(jarPath);
        File jar = null;
        JarEntry jarEntry = null;
        String jarEntryName = "";
        try {
            if (jarsFolder != null && jarsFolder.isDirectory()) {
@otw1248
otw1248 / books.md
Last active April 22, 2016 08:51
Readings in Database Systems, 5th Edition