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
| # print all dependencies | |
| gradle dependencies | |
| # print a dependeny | |
| gradle dependencyInsight --dependency <name> |
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
| # Count the number of rows added and deleted by each person | |
| git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done |
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
| pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple |
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
| sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencentyun.com/g' /etc/apk/repositories | |
| apk update | |
| apk upgrade | |
| apk add --no-cache udev ttf-freefont chromium |
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
| apk add tzdata | |
| cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
| echo "Asia/Shanghai" > /etc/timezone | |
| apk del tzdata |
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
| git log --pretty=format:"- %s [%h](https://xxx/commit/%H)" > ~/Desktop/commit.log |
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
| mvn deploy -DaltDeploymentRepository=gitlab::default::https://gitlab.com/api/v4/projects/<project_id>/packages/maven |
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
| export HTTP_PROXY=http://127.0.0.1:10809 | |
| export HTTPS_PROXY=http://127.0.0.1:10809 | |
| export ALL_PROXY=socks5://127.0.0.1:10808 | |
| export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24 |
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
| nohup java -jar \ | |
| -Dcom.sun.management.jmxremote=true \ | |
| -Dcom.sun.management.jmxremote.host=127.0.0.1 \ | |
| -Dcom.sun.management.jmxremote.port=9090 \ | |
| -Dcom.sun.management.jmxremote.ssl=false \ | |
| -Dcom.sun.management.jmxremote.authenticate=false \ | |
| -Djava.rmi.server.hostname=127.0.0.1 \ | |
| xxx.jar &>/dev/null & |
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
| FROM openjdk:11-jre | |
| WORKDIR /usr/src/app | |
| EXPOSE 8080 | |
| COPY ./build/install/<project> . | |
| ENTRYPOINT ["sh","./bin/<project>", "--spring.profiles.active=edge"] | |
| HEALTHCHECK --start-period=30s --interval=30s --timeout=3s --retries=3 \ | |
| CMD curl --silent --fail --request GET http://localhost:8080/swagger-ui.html || exit 1 |
NewerOlder