Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@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"
}
}
@joscha
joscha / keybase.md
Created March 8, 2017 13:39
keybase.md

Keybase proof

I hereby claim:

  • I am joscha on github.
  • I am joschafeth (https://keybase.io/joschafeth) on keybase.
  • I have a public key ASBr-R6CvnZZEb1ct1FnwTONSz_cvGN5N5VRQxazxktrSwo

To claim this, I am signing this object:

@joscha
joscha / README.md
Created February 1, 2017 14:31
Lerna folder example

Run:

cd project
npm install
`npm bin`/lerna bootstrap
const es2015preset = require('babel-preset-es2015');
const commonjsPlugin = require('babel-plugin-transform-es2015-modules-commonjs');
es2015preset.plugins.forEach(function(plugin) {
if (plugin.length && plugin[0] === commonjsPlugin) {
plugin[1].strict = false;
}
});
module.exports = es2015preset;
@joscha
joscha / README.md
Last active September 18, 2016 12:25
SodaqOne PlatformIO config
@joscha
joscha / MonitoredStory.js
Last active May 2, 2019 21:23
React Storybook example for stats.js integration
import React from 'react';
import Stats from 'stats.js';
const { requestAnimationFrame, cancelAnimationFrame } = window;
class MonitoredStory extends React.Component {
constructor(...args) {
super(...args);
this.rafFn = () => null; // noop
}