Skip to content

Instantly share code, notes, and snippets.

@klinki
klinki / docker.md
Last active May 2, 2018 22:03
Notes

Keybase proof

I hereby claim:

  • I am klinki on github.
  • I am klinki (https://keybase.io/klinki) on keybase.
  • I have a public key whose fingerprint is AF02 FE0E 1E79 AF1D 5769 7674 3A76 C709 1857 571D

To claim this, I am signing this object:

@klinki
klinki / remove-lfs.py
Created September 9, 2021 17:15
Git filter repo - remove LFS
What to do:
1. Get list of tracked files `git lfs track` - look for .gitattributes files
2. Prepare replace.txt file based on previous command results
3. Fetch all files from LFS `git lfs fetch --all`
4. Look into `.git/lfs/objects` and copy all files from all subdirectories into lfs-objects directory
git-filter-repo --replace-text replace.txt
./remove-lfs.py --relevant 'return filename.endswith(b".JPG") or filename.endswith(b".EXE")' --dir "lfs-objects"
@klinki
klinki / first.js
Last active October 6, 2022 17:27
Marbles
const { rxObserver } = require('api/v0.3');
const { timer, from, of, concat } = require('rxjs');
const { filter, tap, concatMap, take, map, debounceTime, interval, delay, first } = require('rxjs/operators');
// Try chaning 0 to baa
matching = '0';
$urls = from(['a', 'b', 'c'])
.pipe(
@klinki
klinki / Boat.ts
Last active February 1, 2023 23:54
OpenApi TS Inheritance Generator Bug
/* tslint:disable */
/* eslint-disable */
/**
* OpenApiBug
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@klinki
klinki / swagger.json
Last active February 3, 2023 00:15
OpenApi TS Inheritance Generator Bug 2
{
"openapi": "3.0.1",
"info": {
"title": "OpenApiBug",
"version": "1.0"
},
"paths": {
"/vehicles": {
"get": {
"tags": [