Skip to content

Instantly share code, notes, and snippets.

@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": [
@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 / 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 / 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"

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 / docker.md
Last active May 2, 2018 22:03
Notes
@klinki
klinki / UserDto.java
Created April 27, 2018 09:20
DTO Entities - public or private with getters and setters
package cz.profinit.dagensia.tradeportal.backofficegui.rest.dto;
/**
* @author David Klingenberg
*/
public class UserDto {
public Long id;
public String nickname;
public String personName;
public String personSurname;
import { autoinject } from 'aurelia-framework';
import { Redirect } from 'aurelia-router';
import { FirebaseAuthService } from '../shared/firebase/authentication.service';
@autoinject()
export class AuthorizeStep {
protected static LOGIN_ADDRESS = '/login';
constructor(protected auth: FirebaseAuthService) {
#!/usr/bin/env groovy
updateGitlabCommitStatus state: 'pending'
pipeline {
agent any
options {
// Here add name of your saved gitlab configuration with API key
gitLabConnection('Configured gitlab')
}
stages {
stage('Build') {
import { Component, OnInit } from '@angular/core';
import { Crisis } from './crisis.service';
@Component({
template: `.......`
})
export class CrisisDetailComponent implements OnInit, OnChanges {
editName: string;
@RouteParam()