This file contains 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
http -A creds POST \ | |
https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/urlscanner/scan \ | |
visibility=Unlisted \ | |
url=https://www.cloudflare.com/ |
This file contains 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
rem set replica service name | |
set SC_NAME=Cloudflared2 | |
echo %SC_NAME% | |
rem set tunnel token | |
set TUN_TOKEN=eyJxxx | |
echo %TUN_TOKEN% | |
rem copy binary to another folder | |
xcopy /e /h /c /i "C:\Program Files (x86)\cloudflared" "C:\Program Files (x86)\%SC_NAME%" |
This file contains 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
1. Inkscape --> some images are not rendered correctly | |
/Applications/Inkscape.app/Contents/MacOS/inkscape -b white -w 4096 -p *.svg --export-type=png | |
2. rsvg-convert --> works perfectly | |
rsvg-convert -w 4096 cf1-ref-arch-16.svg > cf1-ref-arch-16.png | |
3. ImageMagick --> not works well | |
convert -font ~/Library/Fonts/ipaexm.ttf cf1-ref-arch-16.svg cf1-ref-arch-16.png |
This file contains 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 MACOS_BETA_RELEASE_URL='https://install.appcenter.ms/api/v0.1/apps/cloudflare/1.1.1.1-macos/distribution_groups/beta' | |
# export MACOS_STABLE_RELEASE_URL='https://install.appcenter.ms/api/v0.1/apps/cloudflare/1.1.1.1-macos-1/distribution_groups/release' | |
# export WINDOWS_BETA_RELEASE_URL='https://install.appcenter.ms/api/v0.1/apps/cloudflare/1.1.1.1-windows/distribution_groups/beta' | |
# export WINDOWS_STABLE_RELEASE_URL='https://install.appcenter.ms/api/v0.1/apps/cloudflare/1.1.1.1-windows-1/distribution_groups' | |
export TARGET_URL=${MACOS_BETA_RELEASE_URL} | |
# export TARGET_URL=${MACOS_STABLE_RELEASE_URL} | |
# export TARGET_URL=${WINDOWS_BETA_RELEASE_URL} | |
# export TARGET_URL=${WINDOWS_STABLE_RELEASE_URL} |
This file contains 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
brew install ninja | |
git clone https://boringssl.googlesource.com/boringssl | |
cd boringssl | |
mkdir build && cd build && cmake -GNinja .. && ninja bssl | |
tool/bssl --help |
This file contains 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 EMAIL='' | |
export APIKEY='' | |
export ZONE_ID='' | |
curl --request PUT \ | |
--url https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/origin_post_quantum_encryption \ | |
--header 'Content-Type: application/json' \ | |
-H "X-Auth-Email: $EMAIL" \ | |
-H "X-Auth-Key: $APIKEY" \ | |
--data '{"value": "preferred"}' |
This file contains 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 default { | |
async fetch(request, env, ctx) { | |
const init = { | |
headers: { | |
"content-type": "text/html;charset=UTF-8", | |
}, | |
}; | |
const url = "https://www.qbhouse.co.jp/search/488" | |
const response = await fetch(url, init); | |
return await response.text(); |
This file contains 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
# Install WARP Linux package | |
# https://pkg.cloudflareclient.com/ | |
# Warp-cli: --access-client-id and --access-client-secret no longer exist? - Zero Trust / Access - Cloudflare Community | |
# https://community.cloudflare.com/t/warp-cli-access-client-id-and-access-client-secret-no-longer-exist/384090 | |
export ORG_NAME='YOUR_ORG_NAME' | |
export CLIENT_ID='YOUR_CLIENT_ID' | |
export CLIENT_SECRET='YOUR_CLIENT_SECRET' | |
cat << EOS | sudo tee /var/lib/cloudflare-warp/mdm.xml |
This file contains 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
/* | |
Replace these parameter with yours | |
- bucket name : YOUR_GCS_BUCKET_NAME | |
- bucket location : asia-northeast1 | |
- accessKeyId : YOUR_GCS_ACCESS_KEY_ID | |
- secretAccessKey : YOUR_GCS_SECRET_ACCESS_KEY | |
*/ | |
export default { | |
async fetch(request, env, ctx) { |
This file contains 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
set interfaces vti vti0 disable | |
commit |