原项目地址: https://github.com/KawaiiZapic/HidePortWorker
这个脚本可以帮助你在 Cloudflare 使用非 443/80 端口时隐藏你的端口, 基于 Cloudflare Worker.
由于 Worker 无法自定义 Header 内的 Host
, 只能添加新的 Header 来传递 Host
.
原项目地址: https://github.com/KawaiiZapic/HidePortWorker
这个脚本可以帮助你在 Cloudflare 使用非 443/80 端口时隐藏你的端口, 基于 Cloudflare Worker.
由于 Worker 无法自定义 Header 内的 Host
, 只能添加新的 Header 来传递 Host
.
// Website you intended to retrieve for users. | |
const upstream = 'domain.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = 'domain.com' | |
// Countries and regions where you wish to suspend your service. |
import requests | |
import os | |
import json | |
import pathlib | |
import sys | |
proxy = "http://127.0.0.1:7890" | |
print("\nusing proxy: " + proxy + "\n\n====================\n") | |
proxies = {"http": proxy, "https": proxy} |
#!/bin/bash | |
if [[ "$(uname -s)" =~ "Darwin" ]] | |
then | |
red='' | |
green='' | |
yellow='' | |
magenta='' | |
cyan='' | |
none='' |
# Codespaces zsh prompt theme | |
__zsh_prompt() { | |
local prompt_username | |
if [ ! -z "${GITHUB_USER}" ]; then | |
prompt_username="@${GITHUB_USER}" | |
else | |
prompt_username="%n" | |
fi | |
PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow | |
PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd |
name: Archive Site with Wayback Machine | |
on: | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
sed -i 's|[#]*PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config | |
sed -i 's|UsePAM yes|UsePAM no|g' /etc/ssh/sshd_config | |
systemctl restart sshd.service |
#!/bin/bash | |
mkdir -p ~/.ssh | |
curl -s https://github.com/renbaoshuo.keys >> ~/.ssh/authorized_keys | |
sed -i 's|[#]*PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config | |
sed -i 's|UsePAM yes|UsePAM no|g' /etc/ssh/sshd_config | |
echo "PubkeyAcceptedKeyTypes=+ssh-rsa" >> /etc/ssh/sshd_config | |
systemctl restart ssh.service |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no"> | |
<div id="output"></div> |