This file contains 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 org.w3c.dom.Document; | |
import org.w3c.dom.NodeList; | |
import org.xml.sax.SAXException; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; | |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerException; | |
import javax.xml.transform.TransformerFactory; |
This file contains 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
public String toHex(String arg) { | |
return String.format("%040x", new BigInteger(1, arg.getBytes(/*YOUR_CHARSET?*/))); | |
} |
This file contains 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
.\jmeter.bat -n -t ..\..\testplan\devicesTest.jmx -l ..\..\testplan\result\result.txt -e -o ..\..\testplan\webreport |
This file contains 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
URL res = getClass().getClassLoader().getResource("abc.txt"); | |
File file = Paths.get(res.toURI()).toFile(); | |
String absolutePath = file.getAbsolutePath(); |
This file contains 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
git branch -a | |
# *master | |
# test | |
# remote/origin/master | |
# remote/origin/test | |
git push origin --delete test | |
# To <URL of your repository>.git | |
# - [deleted] test |
This file contains 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
解压 tar zxvf 文件名.tar.gz | |
压缩 tar zcvf 文件名.tar.gz 待压缩的文件名 |
This file contains 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
ffmpeg -re -i Java-Concurrency-and-Multithreading.mp4 -map 0 -map 0 -c:a aac -c:v libx264 -b:v:0 800k -b:v:1 300k -s:v:1 320x180 -profile:v:1 baseline -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" -f dash java/thread.mpd |
This file contains 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
mysqlpump -uroot -p --single-transaction --default-parallelism=16 --set-gtid-purged=OFF --hex-blob -databases cs_microservice_vehicles > cs_microservice_vehicles.sql |
This file contains 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 | |
#nohup java -jar cockpit.jar -server -Xms2048m -Xmx4096m --spring.profiles.active=pre_yx >> /data/out.log 2>&1 & | |
nohup java -jar cockpit.jar -server -Xms2048m -Xmx4096m --spring.profiles.active=pre_yx >> /data/temp.log 2>&1 & | |
echo $! > /data/cockpit/cockpit.pid |
This file contains 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 | |
kill -9 $( cat /data/cockpit/cockpit.pid) |
OlderNewer