Skip to content

Instantly share code, notes, and snippets.

View aslakhellesoy's full-sized avatar
🤠
typing...

Aslak Hellesøy aslakhellesoy

🤠
typing...
View GitHub Profile

Guardrails

guardrails

CI

NPM

  • Pass the --strict-peer-deps options to npm ci or npm install
AGFzbQEAAAABJghgAX8AYAF/AX9gAABgAn9/AGAAAX9gAn9/AX9gAn99AGABfwF9AoIBBBZ3YXNpX3NuYXBzaG90X3ByZXZpZXcxCXByb2NfZXhpdAAAB3dhc21pbm8JbmFub3NsZWVwAAMWd2FzaV9zbmFwc2hvdF9wcmV2aWV3MQ5hcmdzX3NpemVzX2dldAAFFndhc2lfc25hcHNob3RfcHJldmlldzEIYXJnc19nZXQABQMbGgIAAAMBBAcGAwEABQIBAAEABAEDAQACAAIEBAUBcAEBAQUDAQACBhIDfwFBsKwEC38BQQALfwFBAAsH9QEOBm1lbW9yeQIABl9zdGFydAAEEXdhc21pbm9HZXRQaW5Nb2RlAAgSd2FzbWlub0dldFBpbkNvdW50AAkOd2FzbWlub1JlYWRQaW4ACg93YXNtaW5vV3JpdGVQaW4ACxB3YXNtaW5vU2V0VXB0aW1lAAwGbWFsbG9jAA0EZnJlZQAOFWFzeW5jaWZ5X3N0YXJ0X3Vud2luZAAZFGFzeW5jaWZ5X3N0b3BfdW53aW5kABoVYXN5bmNpZnlfc3RhcnRfcmV3aW5kABsUYXN5bmNpZnlfc3RvcF9yZXdpbmQAHBJhc3luY2lmeV9nZXRfc3RhdGUAHQqFVxrDAQEDfyMBQQJGBEAjAiMCKAIAQXxqNgIAIwIoAgAoAgAhAAsCfwJ/IwFBAkYEQCMCIwIoAgBBfGo2AgAjAigCACgCACECCyACRQtBASMBGwRAEBUhAUEAIwFBAUYNARogASEACyAAIwFBAkZyBEAgAkEBRkEBIwEbBEAgABAAQQEjAUEBRg0CGgsjAUUEQAALCw8LIQEjAigCACABNgIAIwIjAigCAEEEajYCACMCKAIAIAA2AgAjAiMCKAIAQQRqNgIAC74CAgN/AX4jAUECRgRAIwIjAigCAEFsajYCACMCKAIAIgEoAgAhACABKAIEIQMgASkCCCEEIAEoAhAhAQsCfyMBQQJGBEAjAiMCKAIA
@aslakhellesoy
aslakhellesoy / changelog-links.sh
Last active November 9, 2021 14:08
Changelog links
#!/usr/bin/env bash
#
# This script creates a new repository from a directory in the common monorepo.
# See https://github.com/cucumber/common/issues/1724
#
# Prerequisites:
# * brew install git-filter-repo
#
# Usage: make-polyglot-repo.sh name
# Example: make-polyglot-repo.sh cucumber-expressions
@aslakhellesoy
aslakhellesoy / extract-feature-files.sh
Last active January 22, 2020 12:52
Extract old and new versions of specific files throughout git history
#!/usr/bin/env bash
#
# Run this script from the root of a git repo to create directories containing
# the old and new version of a .feature file.
#
# A directory will be created for each commit that modifies a .feature file,
# and inside this directory there will be a directory with the name of the file.
# Finally, inside that directory there will be a `new` and `old` file showing
# the contents before and after the commit.
#

Keybase proof

I hereby claim:

  • I am aslakhellesoy on github.
  • I am aslakhellesoy (https://keybase.io/aslakhellesoy) on keybase.
  • I have a public key ASD3yL3iYIQ3nEu8MSpmZoT_oKeabrTA5M4LcDntg_238Qo

To claim this, I am signing this object:

public class JdbcSchema {
public static void createTables(Connection connection) throws SQLException, URISyntaxException, IOException {
// Stupid Scanner trick: https://community.oracle.com/blogs/pat/2004/10/23/stupid-scanner-tricks
String sql = new Scanner(JdbcSchema.class.getResourceAsStream("sqlite.sql"), "UTF-8").useDelimiter("\\A").next();
for (String stmt : sql.split("-- 8< --")) {
connection.createStatement().executeUpdate(stmt);
}
}
}
class Main {
public static void main(String[] args) {
for(int i = 0; i<10; i++)
System.out.println(java.util.UUID.randomUUID().toString().charAt(14));
}
}
@aslakhellesoy
aslakhellesoy / index.html
Created February 19, 2018 12:06
dictation scroller
<!DOCTYPE html>
<html>
<head>
<style>
pre {
white-space: pre-wrap;
font-size: 60px;
font-family: serif;
height: 100%;
padding: 10px;