- Can share accross projects
- 5 networks per project
- 7000 instances per network
- Mode
- Auto mode
- Single subnet per region by default
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
[2019-05-21 08:34:07,793] {{logging_mixin.py:95}} WARNING - /usr/local/lib/python3.6/site-packages/airflow/contrib/hooks/bigquery_hook.py:117: FutureWarning: verbose is deprecated and will be removed in a future version. Set logging level in order to vary verbosity | |
verbose=False) | |
[2019-05-21 08:34:07,835] {{__init__.py:1580}} ERROR - __init__() takes 2 positional arguments but 3 were given | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/site-packages/airflow/models/__init__.py", line 1441, in _run_raw_task | |
result = task_copy.execute(context=context) | |
File "/usr/local/lib/python3.6/site-packages/airflow/operators/python_operator.py", line 112, in execute | |
return_value = self.execute_callable() | |
File "/usr/local/lib/python3.6/site-packages/airflow/operators/python_operator.py", line 117, in execute_callable | |
return self.python_callable(*self.op_args, **self.op_kwargs) |
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
#!/bin/bash | |
commit_url="https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" | |
data=$(cat <<EOF | |
{ | |
"files":["$CF_HOST"] | |
} | |
EOF | |
) | |
curl -XPOST "$commit_url" -d "$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
resource "google_storage_bucket" "gitlab_runner" { | |
name = "${local.name}-cache" | |
} | |
resource "google_storage_bucket_iam_binding" "gitlab_runner" { | |
bucket = "${google_storage_bucket.gitlab_runner.name}" | |
role = "roles/storage.objectAdmin" | |
members = [ | |
"serviceAccount:${google_service_account.gke.email}", |
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
gitlabUrl: https://gitlab.com/ | |
runnerRegistrationToken: "<registration token>" | |
unregisterRunners: true | |
logLevel: info | |
runners: | |
# quite important for speeding up the build | |
imagePullPolicy: "if-not-present" | |
cache: | |
# s3 | gcs | |
cacheType: "gcs" |
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
resource "google_container_node_pool" "gitlab_runner" { | |
autoscaling = { | |
min_node_count = 1 | |
max_node_count = 6 | |
} | |
node_config { | |
machine_type = "n1-standard-8" | |
preemptible = true | |
} | |
} |
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
It's fairly simple indeed. | |
Installation: | |
On Ubuntu: | |
apt-get install units | |
On Mac OSX: | |
brew install gnu-units | |
Example: | |
1024 bytes to MB |
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
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |