wget -qO- bench.sh | bash
#或者
curl -Lso- bench.sh | bash
#或者
wget -qO- 86.re/bench.sh | bash
#或者
curl -so- 86.re/bench.sh | bash
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
| echo http://mirrors.ustc.edu.cn/alpine/v3.11/main/ >> /etc/apk/repositories | |
| echo http://mirrors.aliyun.com/alpine/v3.11/main/ >> /etc/apk/repositories | |
| RUN set -ex \ | |
| && echo http://mirrors.ustc.edu.cn/alpine/v3.11/main/ >> /etc/apk/repositories \ | |
| && echo http://mirrors.aliyun.com/alpine/v3.11/main/ >> /etc/apk/repositories | |
| RUN apk add --update ca-certificates openssl |
docker exec --user www-data nextcloud-app php /var/www/html/occ security:bruteforce:reset 10.147.100.130 如果无法确认 IP,以及用命令的方式不生效,则可以清空 oc_bruteforce_attempts 表,来达到同样的目的。
nginx https reverse proxy sample
server {
listen 80;
return 302 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name localhost;
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
| version: "2.0" | |
| services: | |
| mysql: | |
| image: mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: H0Z75M0maZV0Y8pL | |
| ports: | |
| - 8003:3306 | |
| phpmyadmin: |
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
| github授权登录流程: | |
| 1、A 网站让用户跳转到 GitHub。 | |
| 2、GitHub 要求用户登录,然后询问"A 网站要求获得 xx 权限,你是否同意?" | |
| 3、用户同意,GitHub 就会重定向回 A 网站,同时发回一个授权码。 | |
| 4、A 网站使用授权码,向 GitHub 请求令牌。 | |
| 5、GitHub 返回令牌. | |
| 6、A 网站使用令牌,向 GitHub 请求用户数据。 |
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/sh | |
| set -eu | |
| LOG_LEVEL="${IMMICH_LOG_LEVEL:='info'}" | |
| logDebug() { | |
| if [ "$LOG_LEVEL" = "debug" ] || [ "$LOG_LEVEL" = "verbose" ]; then | |
| echo "DEBUG: $1" >&2 | |
| fi |
OlderNewer