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
-- This script will look into your GCP organization's BigQuery storage and provide an analysis of each dataset's storage utilization. | |
-- This script is useful if you are consideration whether migrating to a physical storage model will be beneficial for your GCP organization. | |
-- | |
-- Required permissions: | |
-- You need to have the bigquery.tables.get and bigquery.tables.list permissions for the GCP organization in order to run this query. | |
-- Details here: https://cloud.google.com/bigquery/docs/information-schema-table-storage-by-organization | |
-- | |
-- Instructions: | |
-- 1. Modify the following variables according to the storage pricing for your region: | |
-- active_logical_gib_price |
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
import { createSignedUrl } from "../../../helpers/auth_utils"; | |
import Cors from "cors"; | |
import user from "./demo_user.json"; | |
// Initializing the cors middleware | |
const cors = Cors({ | |
origin: "*", | |
methods: ["GET"], | |
}); |
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
import React, { useEffect, useRef } from "react"; | |
import { LookerEmbedSDK } from "@looker/embed-sdk"; | |
const LookerEmbedDashboard = ({callback}) => { | |
const [dashboardEmbedded, setDashboardEmbedded] = React.useState(false); | |
const dashboardRef = useRef(false); | |
useEffect(() => { | |
if (dashboardRef.current) return; | |
dashboardRef.current = true; | |
makeDashboard(); |
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
-- This script will look into your GCP organization's BigQuery usage and provide slot utilization by buckets and minutes. | |
-- The data gathered will be for the last month (720 hours prior to end_date). | |
-- Note that this script does not gather slot utilization from existing BigQuery reservations. This is only for on-demand slot utilization. | |
-- | |
-- Required permissions: | |
-- You need to have the bigquery.jobs.listAll permission for the GCP organization in order to run this query. | |
-- Details here: https://cloud.google.com/bigquery/docs/information-schema-jobs-timeline-by-organization#required_permissions | |
-- | |
-- Instructions: | |
-- 1. Modify the end_date variable to match the month period that you wish to analyze |
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/sh | |
# need to run this whole script as root | |
# remove nosnapd | |
rm -f /etc/apt/preferences.d/nosnap.pref | |
# add ppas | |
apt-add-repository -y ppa:fish-shell/release-3 | |
add-apt-repository -y ppa:oibaf/graphics-drivers |
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 world |
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
console.log('Loading event'); | |
var aws = require('aws-sdk'); | |
var s3 = new aws.S3({apiVersion: '2006-03-01'}); | |
var sqs = new aws.SQS({apiVersion: '2012-11-05'}); | |
exports.handler = function(event, context, callback) { | |
s3.listBuckets(function(err,data) { | |
if (err) { | |
console.log('ERROR: Problem getting list of buckets. This should have something to do with incorrect IAM permissions for the lambda.'); | |
errorMessage = 'ERROR: Error from S3: '+err; |
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
### Keybase proof | |
I hereby claim: | |
* I am williamtsoi1 on github. | |
* I am williamtsoi (https://keybase.io/williamtsoi) on keybase. | |
* I have a public key whose fingerprint is 11CA E842 C8C9 32DD 8AD0 43D1 D9AB FD09 3C03 E987 | |
To claim this, I am signing this object: |