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
syntax: glob | |
target/ | |
src/main/webapp/test | |
*.orig | |
*.iml | |
.idea/ |
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.mars; | |
import akka.actor.UntypedActor; | |
import com.google.common.base.Stopwatch; | |
import com.google.common.collect.Lists; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.lang3.RandomStringUtils; | |
import java.util.List; | |
import java.util.Optional; |
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
* How about the Security Policy at company? | |
* 薪資是否有包含全勤獎金? | |
* 描述TeamWork的運作方式 , 文件管理 , 版控 , 佈署 |
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
# automerge.sh | |
USERNAME=${CREDENTIALS%:*} | |
PASSWORD=${CREDENTIALS#*:} | |
# proof of concept - don't echo this in real life :) | |
echo USERNAME=$USERNAME | |
echo USERNAME=$PASSWORD | |
# Jenkins uses "-e" parameter, but we want to handle the exit-code manually | |
set +e |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"><!-- NOTE: place this file in /Library/LaunchDaemons --> | |
<dict> | |
<key>Label</key> | |
<string>com.mars.add-java-policy</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>Program</key> | |
<string>/opt/JavaPolicyShell/policy-shell.sh</string> |
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 | |
rm xxx*.jar | |
wget --auth-no-challenge --user *** --password *** 'http:// **domain url *** /jenkins/job/ *** job name *** /ws/target/ xxx.jar' | |
docker stop container-name | |
docker rm container-name | |
docker rmi image-name | |
docker build -t image-name:latest . | |
docker run -d --name conainer-name image-name:latest |
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://localhost:8080/jenkins/job/jobname/lastSuccessfulBuild/my-app-trunk.war |
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
java escape analysis | |
---- | |
cucumber for BDD | |
---- | |
Apache curator | |
---- | |
12/05 | |
Alibaba |
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
@ManagedBean | |
@ViewScoped | |
public class FileUploadView { | |
public List<File> files = Lists.newArrayList(); | |
public void handleFileUpload(FileUploadEvent event) { | |
UploadedFile file = event.getFile(); | |
try { | |
String fileName = file.getFileName(); |
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
# reference: https://dev.to/0xdonut/manage-your-runtime-environments-using-asdf-and-not-nvm-or-rvm-etc-2c7c | |
# | |
# https://asdf-vm.com/#/core-manage-asdf-vm?id=install-asdf-vm | |
# https://dancroak.com/asdf-version-manager | |
# | |
# install with dependencies | |
brew install coreutils curl git | |
# install asdf | |
brew install asdf | |
# add to zsh |