Skip to content

Instantly share code, notes, and snippets.

View eblaauw's full-sized avatar

Edzo Blaauw eblaauw

View GitHub Profile
@eblaauw
eblaauw / JSON.js
Last active August 29, 2015 14:17
Toetsweek
//simpele versie
{
"firstName": "John" ,
"lastName": "Doe"
}
//versie met array
{
"employees": [
{
"firstName": "John" ,
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let urlPath = "http://telize.com/geoip"
let url = NSURL(string: urlPath)
let session = NSURLSession.sharedSession()
let task = session.dataTaskWithURL(url!, completionHandler: {data, response, error -> Void in

Keybase proof

I hereby claim:

  • I am eblaauw on github.
  • I am edzo (https://keybase.io/edzo) on keybase.
  • I have a public key ASBeEk4DyAMAATalfzvSU4xAkZU7gYnKB4Y3bJQh1w1gxgo

To claim this, I am signing this object:

SELECT
protopayload_auditlog.authenticationInfo.principalEmail as user,
sum(CAST(5.0* (protopayload_auditlog.servicedata_v1_bigquery.jobCompletedEvent.job.jobStatistics.totalProcessedBytes/POWER(2,40)) AS numeric )) AS queryCostInUSD,
FROM
`PROJECT_ID.stackdriver_logging.cloudaudit_googleapis_com_data_access_202012*`
WHERE
protopayload_auditlog.servicedata_v1_bigquery .jobCompletedEvent.eventName="query_job_completed"
AND protopayload_auditlog.servicedata_v1_bigquery .jobCompletedEvent.job.jobStatistics.totalProcessedBytes IS NOT NULL
GROUP BY
@eblaauw
eblaauw / Dockerfile
Created June 21, 2021 04:30
Amundsen port forwarding
FROM nginx:latest
COPY ./index.html /usr/share/nginx/html/index.html
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
locals {
datasets = {
"transactions" = {
"description" = "A list of transactions",
"is_critical" = "true",
"team" = "post_order"
},
"products" = {
"description" = "A list of products",
"is_critical" = "false",
@eblaauw
eblaauw / terraform_foreach.tf
Created May 11, 2022 14:17
terraform_foreach
resource "google_bigquery_dataset" "mapped_datasets" {
for_each = local.datasets
dataset_id = each.key
description = each.value.description
location = "EU"
labels = {
is_critical = each.value.is_critical
team = each.value.team
created_by = "terraform"
}