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
| gcloud config set core/custom_ca_certs_file ~/google-cloud-sdk/Cloudflare_CA.pem |
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
| cat ~/Cloudflare_CA.pem | sudo tee -a /etc/ssl/cert.pem |
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 '{ | |
| "items": [ | |
| { | |
| "id": "cname_flattening", | |
| "value": "flatten_all" | |
| } | |
| ] | |
| }' | \ | |
| http -A creds PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings" \ | |
| Content-Type:application/json |
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
| export URL='http://example.com/example.git' | |
| git clone $URL && cd $(basename $_ .git) |
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
| [ | |
| { | |
| "address": "10.0.0.0/8" | |
| }, | |
| { | |
| "address": "100.64.0.0/10" | |
| }, | |
| { | |
| "address": "169.254.0.0/16" | |
| }, |
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
| curl -s https://assets.zoom.us/docs/ipranges/ZoomMeetings.txt | \ | |
| jq -Rs '[ split("\n")[] | select(length > 0) | split(",") | {address: .[0]} ] | . + [{"address":"100.64.0.0/10"},{"address":"169.254.0.0/16"},{"address":"172.16.0.0/12"},{"address":"192.0.0.0/24"},{"address":"192.168.0.0/16"},{"address":"224.0.0.0/24"},{"address":"240.0.0.0/4"},{"address":"255.255.255.255/32"},{"address":"fe80::/10"},{"address":"fd00::/8"},{"address":"ff01::/16"},{"address":"ff02::/16"},{"address":"ff03::/16"},{"address":"ff04::/16"},{"address":"ff05::/16"}]' | \ | |
| curl -X PUT https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/devices/policy/exclude \ | |
| -H "X-Auth-Email: $EMAIL" \ | |
| -H "X-Auth-Key: $APIKEY" \ | |
| -H "Content-Type: application/json" \ | |
| --data @- |
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
| awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem |
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
| 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 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 "base64encodedtext" | base64 --decode |
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
| # Normal Firefox | |
| PUPPETEER_PRODUCT=firefox \ | |
| PUPPETEER_EXECUTABLE_PATH=/Applications/Firefox.app/Contents/MacOS/firefox \ | |
| node firefox-pageshield-cspreport-once.js | |
| # Firefox Developer Edition | |
| PUPPETEER_PRODUCT=firefox \ | |
| PUPPETEER_EXECUTABLE_PATH=/Applications/Firefox\ Developer\ Edition.app/Contents/MacOS/firefox \ | |
| node firefox-pageshield-cspreport-once.js |