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
#!/bin/sh | |
# | |
# usage: install_cert.sh remote.host.name | |
# aggregated from: | |
# - http://stackoverflow.com/questions/699576/validating-parameters-to-a-bash-script | |
# - https://help.ubuntu.com/community/OpenSSL | |
# - http://www.madboa.com/geek/openssl/#cert-retrieve | |
die () { | |
echo >&2 "$@" |
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
from contextlib import closing | |
import os | |
import re | |
import tempfile | |
import json | |
PARTS = [ | |
'protocol', |
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
gcloud projects list --format=json | jq -r .[].projectId | | |
xargs -I{} bash -c "echo ==== {}======; gcloud compute --project {} firewall-rules list | grep 0.0.0.0" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env bash -e | |
# | |
# Shortcut script to bypass the firewall | |
# | |
# It requires manual pre configuration of proxy in network settings. | |
# Or just run once: | |
# sudo networksetup -setsocksfirewallproxy Wi-Fi 127.0.0.1 1985 | |
# sudo networksetup -setsocksfirewallproxystate Wi-Fi off | |