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
| # 最好先個別下載安裝 iterm2 | |
| # Sublime Text 時常更新, 調整從網頁下載 | |
| # install with asdf dependencies , asdf: https://asdf-vm.com/#/core-manage-asdf-vm | |
| brew install coreutils curl git | |
| brew install gradle maven | |
| # 有很多工具都會用到 python3 , 先裝當作系統預設版本 | |
| brew install python3 | |
| brew install vim wget openssl telnet | |
| # install system util , intel-haxm was disabled on 2024-12-16 | |
| brew install keka --cask |