使用整段 IPv6 以避免被墙的设置方案:
假设我们拥有 2602:feda:db8::/48
这段 IPv6 地址,且该段地址被静态路由至我们的服务器。
首先配置防火墙,详略。
将整段 IPv6 地址配置至服务器:
#!/usr/bin/env bash | |
# Download metadata, modify these as your needs. | |
## The directory to save the downloaded files. | |
download_directory="/volume1/Download/EPUB" | |
## The website you want to visit. | |
calibre_site="http://soulseeker.myds.me:25788" | |
## The formats you want to download. We only download the first present format. | |
## All the formats should be upper case. | |
allow_formats=( EPUB MOBI AZW3 ) |
Use by running "curl $domain" | |
IP with no line terminator such as Carriage Return (\x0D) or Line Feed (\x0A): | |
ifconfig.be | |
ifconfig.ca | |
ifconfig.cc | |
ifconfig.in | |
ifconfig.me | |
ifconfig.rest | |
ifconfig.so |
#!/usr/bin/env bash | |
cd /usr/share/GeoIP; | |
curl -LRO https://download.db-ip.com/free/dbip-country-lite-$(date +%Y-%m).mmdb.gz; | |
curl -LRO https://download.db-ip.com/free/dbip-city-lite-$(date +%Y-%m).mmdb.gz; | |
curl -LRO https://download.db-ip.com/free/dbip-asn-lite-$(date +%Y-%m).mmdb.gz; | |
gunzip dbip-$(date +%Y-%m).mmdb.gz; | |
ln -sf dbip-country-lite-$(date +%Y-%m).mmdb dbip-country-lite.mmdb; | |
ln -sf dbip-city-lite-$(date +%Y-%m).mmdb dbip-city-lite.mmdb; | |
ln -sf dbip-asn-lite-$(date +%Y-%m).mmdb dbip-asn-lite.mmdb; | |
geoipupdate -v; |
if [ `uname` = 'Darwin' ]; then | |
if [ `arch` = 'arm64' ]; then | |
export PATH="/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:$PATH" | |
PS1_ARCH="[ARM]" | |
else | |
export PATH="/usr/local/sbin:/usr/local/bin:/opt/homebrew/bin:$PATH" | |
PS1_ARCH="[X86]" | |
fi | |
export PS1="$PS1_ARCH$PS1" | |
alias ibrew="arch -x86_64 /usr/local/bin/brew" |
The correct way, install homebrew on apple m1.
# We'll be installing Homebrew in the /opt directory.
cd /opt
# Create a directory for Homebrew. This requires root permissions.
sudo mkdir homebrew
# Make us the owner of the directory so that we no longer require root permissions.
sudo chown -R $(whoami) /opt/homebrew
https://icons.duckduckgo.com/ip2/{hostname}.ico
https://www.google.com/s2/favicons?domain_url={hostname}
https://favicon.yandex.net/favicon/{hostname1}/{hostname2}/
https://f1.allesedv.com/16/{hostname}
http://grab-favicons.herokuapp.com/api/v1/grab-favicons/?url={hostname}
https://besticon-demo.herokuapp.com/icon?url={hostname}&size=80..120..200
http://favicongrabber.com/service-api-reference
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"fmt" | |
"log" | |
"strings" | |
) |
----------------------------------------------------------------------------------------------------- | |
#disable public key authentication, connect as user root via ssh | |
sshuser@vg-ubuntu-01:~$ ssh root@vg-ubuntu-02 -o PubkeyAuthentication=no | |
----------------------------------------------------------------------------------------------------- | |
#connect with one private key | |
#access ec2-23-22-230-24.compute-1.amazonaws.com with a private key located in ~/.ssh/alice.pem | |
$ ssh -i ~/.ssh/alice.pem [email protected] | |
----------------------------------------------------------------------------------------------------- | |
$ cat ~/.ssh/config |