- Download docker-compose.yml to dir named
sentry
- Change
SENTRY_SECRET_KEY
to random 32 char string - Run
docker-compose up -d
- Run
docker-compose exec sentry sentry upgrade
to setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker-compose restart sentry
- Sentry is now running on public port
9000
新建文件 ~/.zsh_aliases
# Git
alias gaa='git add .'
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gpf='git push -f'
alias gd='git diff | mate'
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 java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
public class MatchUtil { | |
public MatchUtil() { | |
} | |
public static boolean isEmpty(Object obj) { |
null
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 java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.nio.charset.StandardCharsets; |
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
List<String> configurations = getCandidateConfigurations(annotationMetadata,attributes); | |
configurations = removeDuplicates(configurations); | |
protected final <T> List<T> removeDuplicates(List<T> list) { | |
return new ArrayList<>(new LinkedHashSet<>(list)); | |
} |
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
private Double roundDownDouble(Double value) { | |
BigDecimal b = new BigDecimal(String.valueOf(value));//BigDecimal(String val)可控,BigDecimal(double val)不可预测。(BigDecimal:不可变的,任意精度带符号的十进制数) | |
return b.setScale(1, BigDecimal.ROUND_DOWN).doubleValue();//下舍入 | |
} |