Skip to content

Instantly share code, notes, and snippets.

@joscha
joscha / Snowflake Google Workspace SSO.md
Last active April 8, 2025 13:51
Snowflake Google Workspace SSO

Detailed description can be found here.

The most important part, easily overread:

The email address for your IdP users must be matching the Snowflake LOGIN_NAME value for the user.

If not, you'll end up with an error looking like this:

SCR-20250408-ndax-2
"use strict";
var crypto_1 = require("crypto");
var util_1 = require("util");
/**
* Compute a string's hash.
*
* @param str The string to hash.
* @param algorithm The algorithm used.
*/
function getHash(str, algorithm) {
@joscha
joscha / README.md
Last active September 16, 2024 22:24
Zstandard compression example for avsc
// I am empty, weeee!
@joscha
joscha / .gitignore
Last active November 7, 2024 10:54
Pipedream Typescript Action with parcel
node_modules
.parcel-cache
dist
@joscha
joscha / README.md
Last active January 4, 2024 23:49
kurtosis online exec

kurtosis_exec.sh is a wrapper for fetching, temporarily storing and executing the kurtosis CLI which can be executed with a bash one liner.

It would live in a public location, somewhere like https://kurtosis.com/exec and then be invoked with a single command like:

bash <(curl -s https://kurtosis.com/exec)

where exec is a modified copy of kurtosis_exec.sh by CI to include correct SHASUMs and version numbers. The exec script itself would also need SHASUM files provided, so anyone running this on CI or as part of a deployment script anywhere can ensure that the installer itself has not been tampered with, either.

@joscha
joscha / Canva CLA.md
Created November 18, 2021 06:26
Canva CLA

Contributor Licence Agreement

Thank you for making contributions to this Project. In order to clarify certain things in relation to the Project, including the ownership of intellectual property rights, Canva Pty Ltd (ACN 158 929 938) ("Canva") requires that you accept this Contributor Licence Agreement ("Agreement").

1. DEFINITIONS

Canva Authorised Persons means the licensees, contractors, assignees and successors of Canva, and their licensees and any other person authorised by any of them.

Code means the computer software code, whether in human-readable or machine-executable form, that is Submitted by You to Canva under this Agreement.

@joscha
joscha / terraform.log
Created August 14, 2017 07:29
terraform log for lifecycle_rule w/ count
TF_LOG=DEBUG terraform plan
2017/08/14 17:28:36 [INFO] Terraform version: 0.10.0
2017/08/14 17:28:36 [INFO] Go runtime version: go1.8.3
2017/08/14 17:28:36 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.10.0/bin/terraform", "plan"}
2017/08/14 17:28:36 [DEBUG] Attempting to open CLI config file: /Users/joscha/.terraformrc
2017/08/14 17:28:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/08/14 17:28:36 [INFO] CLI command args: []string{"plan"}
2017/08/14 17:28:36 [INFO] command: empty terraform config, returning nil
2017/08/14 17:28:36 [DEBUG] command: no data state file found for backend config
2017/08/14 17:28:36 [DEBUG] New state was assigned lineage "4d127981-8199-48d4-98ad-277c91eb0aeb"
@joscha
joscha / index.ts
Created April 21, 2017 00:58
tslint 5.1 example for no-unused-variable regression
import * as React from "react";
type Props = {
foo: string,
};
export class X extends React.Component<Props, void> {}
@joscha
joscha / package.json
Created April 19, 2017 07:39
frozen lockfile regression
{
"name": "frozen",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"test": "^0.6.0"
}
}