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
| #!/usr/bin/env bash | |
| RM=/bin/.rm | |
| DATE=$(date '+%Y%m%d%H%M%S') | |
| USER=$(whoami) | |
| CMD=$(ps -eo pid,lstart,cmd |grep $PPID |grep -v grep) | |
| ARGS="$@" | |
| echo "${DATE} ${USER} ${ARGS} ${CMD}" >> /tmp/rm.log | |
| ${RM} "$@" | |
| exit $? |
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/zsh | |
| # Needs https://github.com/lukas2511/letsencrypt.sh in dns-01 mode | |
| /opt/letsencrypt/ilo/letsencrypt.sh -c -s /opt/letsencrypt/ilo/ilo.csr -k /opt/letsencrypt/ilo/hook.sh -t dns-01 > /opt/letsencrypt/ilo/ilo.crt | |
| cert=$(cat /opt/letsencrypt/ilo/ilo.crt) | |
| curl --cacert /opt/letsencrypt/intermediate.pem -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [FILL_IN_HERE]" -X POST -d "{\"Action\": \"ImportCertificate\", \"Certificate\": \"$cert\"}" https://ilo.home.vaucher.org/rest/v1/Managers/1/SecurityService/HttpsCert |
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 | |
| # @author: http://github.com/welladamm/ | |
| CERT_NAME="you_domain.com" | |
| LOCAL_DIR=$(cd $(dirname $0); pwd -P) | |
| LOCAL_CERT_DIR="$LE_WORKING_DIR/$CERT_NAME" | |
| SSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q" | |
| SCP="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q" |
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
| root@pve2:~# qm terminal 100 | |
| starting serial terminal on interface serial0 (press Ctrl+O to exit) | |
| [ 0.001000] Spectre V2 : kernel not compiled with retpoline; no mitigation available! | |
| patching file etc/rc | |
| patching file etc/synoinfo.conf | |
| patching file linuxrc.syno | |
| patching file usr/sbin/init.post | |
| START /linuxrc.syno | |
| Insert basic USB modules... | |
| :: Loading module usb-common ... [ OK ] |
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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <dict> | |
| <key>com.google.Chrome</key> |
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
| #!name=Surge Encrypted DNS Servers | |
| #!desc=启用 DoH 加密 DNS 配置 | |
| [General] | |
| encrypted-dns-server = https://223.5.5.5/dns-query, https://1.12.12.12/dns-query |
OlderNewer