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
| BufferedImage tar = _resize(f,s) | |
| ImageIO.write(tar, "jpg", new File(fileName)); |
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
| package com.wz.service.impl | |
| import com.wz.service.IConfigService | |
| import com.wz.service.IFileService | |
| import com.wz.service.IMonitorService | |
| import com.wz.service.ITagService | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.WatchEvent; |
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
| //http://logging.apache.org/log4j/2.0/manual/configuration.html#ConfigurationSyntax | |
| import org.apache.logging.log4j.Logger; | |
| static Logger logger = LogManager.getLogger(Bar.class.getName()); | |
| logger.error("Did it again!"); |
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.jcraft.jsch.JSch | |
| import com.jcraft.jsch.Session | |
| import com.jcraft.jsch.UserInfo | |
| import com.jcraft.jsch.Channel | |
| import com.jcraft.jsch.ChannelExec | |
| def sshHost = '10.1.2.132' | |
| def sshUser = 'root' | |
| def sshPass = '******' | |
| def sshPort = 22 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration status="OFF"> | |
| <appenders> | |
| <Console name="Console" target="SYSTEM_OUT"> | |
| <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /> | |
| </Console> | |
| <RollingFile name="RollingFile" fileName="logs/app.log" | |
| filePattern="logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz"> |
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
| package com.mzeng.gzbus | |
| import java.io.BufferedReader; | |
| import java.io.DataOutputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; |
OlderNewer