Skip to content

Instantly share code, notes, and snippets.

View strickvl's full-sized avatar

Alex Strick van Linschoten strickvl

View GitHub Profile
strickvl / log.txt
Created August 27, 2023 05:38
logs output when upgrading pydantic to v2 for `zenml-io/zenml` using
An error happened on src/zenml/integrations/seldon/secret_schemas/
Traceback (most recent call last):
File "/Users/strickvl/.pyenv/versions/z-test/lib/python3.9/site-packages/bump_pydantic/", line 185, in run_codemods
output_tree = transformer.transform_module(input_tree)
File "/Users/strickvl/.pyenv/versions/z-test/lib/python3.9/site-packages/libcst/codemod/", line 108, in transform_module
return self.transform_module_impl(tree_with_metadata)
File "/Users/strickvl/.pyenv/versions/z-test/lib/python3.9/site-packages/libcst/codemod/", line 32, in transform_module_impl
return tree.visit(self)
File "/Users/strickvl/.pyenv/versions/z-test/lib/python3.9/site-packages/libcst/_nodes/", line 90, in visit
result = super(Module, self).visit(visitor)
# ------------- ALL THIS REQUIRED FOR PAPERSPACE -------------
FROM python:3.9.10
# Install base utilities
RUN apt-get update && \
# apt-get install -y build-essentials && \
apt-get install -y wget && \
strickvl / deploy-stack.js
Created April 27, 2021 23:15
this is called by deploy.js
const { createEkkoEnvironment } = require('./createEkkoEnvironment');
const cdk = require('@aws-cdk/core');
const s3 = require('@aws-cdk/aws-s3');
const ec2 = require("@aws-cdk/aws-ec2");
const ecs = require("@aws-cdk/aws-ecs");
const ecs_patterns = require("@aws-cdk/aws-ecs-patterns");
const { RedisCluster } = require("./redis");
const { randomBytes } = require("crypto");
strickvl / deploy.js
Created April 27, 2021 23:14
this is called by cdk deploy
#!/usr/bin/env node
const cdk = require('@aws-cdk/core');
const { EkkoStack, SharedResources } = require('../lib/deploy-stack');
// A construct which represents the entire CDK app
class EkkoApp extends cdk.App {
constructor() {
strickvl / ajaxPractice.html
Last active December 10, 2020 13:01
Sample page to practice AJAX requests, handlebars and handling asynchronous requests
<script src=""></script>
<script src=""></script>
function selectRandomCatFacts(facts, number) {
let arr = [];
for (let i = 1; i <= number; i += 1) {
let randomIndex = Math.floor(Math.random() * facts.length);
strickvl /
Created December 5, 2020 10:23
How to fix the titles of (most) Launch School webpages

How to fix the titles of (most) Launch School webpages

TL;DR: install this script to auto-correct the text assigned to the <title> tag on Launch School study pages

I use bookmarking sites like Pinboard, Notado and Instapaper a lot from within my browser. These sites usually auto-populate metadata, including the title of the page that is being saved or added to their internal database.

Unfortunately, Launch School pages all have the same identical <title> tag applied to them: "Launch School - An Online School for Software Engineers". This makes finding the precise page you need at a subsequent date pretty difficult. All the pages have the same name and the URLs are random character strings so those don't help either.

Now that I'm towards the end of the Core syllabus, I have learned about the DOM, and this enabled me to write a very simple script that runs while I'm using the Launch School website.

function sameChars(str1, str2) {
let str1Arr = str1.split('');
let str2Arr = str2.split('');
for (let index = 0; index < str2Arr.length; index += 1) {
let char = str2Arr[index];
if (!str1.includes(char)) return false;
return true;
strickvl /
Created January 6, 2020 11:28
blogpost on new method I learned

Joining Integers, Making Strings

While working through a Ruby problem on Codewars, I discovered a way to combine an array of integers in order to work on it as a string. As an example, see the following code snippet:

[3,2,1].join # --> returns "321"

This was surprising to me. In order to get the same result, I had taken the long route:

strickvl / blink_ipad
Created November 24, 2019 10:21
keystrokes on iPad running Colemak for Blink

Keybase proof

I hereby claim:

  • I am strickvl on github.
  • I am strickvl ( on keybase.
  • I have a public key ASADqFs4NfrMI0jdwkLl4v7yfz-fRhQeMEGNQ0kIBCyqNQo

To claim this, I am signing this object: