This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Primitive, Simplify, WritableKeysOf } from "type-fest" | |
/** | |
* Create a JSON-patch dto type for a given type. | |
* * Strips out readonly properties (WritableKeysOf) | |
*/ | |
export type Patch<T> = PatchRoot<Pick<T, WritableKeysOf<T>>> | |
/** Make patch schema for all useful keys in type */ | |
type PatchRoot<TRoot extends object> = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi":"3.0.2", | |
"info": { | |
"title":"Multi content-type generator spec", | |
"version":"1.0" | |
}, | |
"servers": [ | |
{"url":"https://api.server.test/v1"} | |
], | |
"paths": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq 'walk(if type == "object" then del(.examples) | del(.example) else . end)' < spec-with-examples.json > spec-without-examples.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region License | |
// -------------------------------------------------- | |
// Copyright © PayEx. All Rights Reserved. | |
// | |
// This software is proprietary information of PayEx. | |
// USE IS SUBJECT TO LICENSE TERMS. | |
// -------------------------------------------------- | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace JAY_Z | |
{ | |
class Problem : Exception { } | |
class Bitch : Problem { } | |
static class I | |
{ | |
static void Got() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ehvattum on github. | |
* I am hvattum (https://keybase.io/hvattum) on keybase. | |
* I have a public key whose fingerprint is C7F7 3929 9BE9 69EE D456 D127 FC87 1E8B 7D9F 5E45 | |
To claim this, I am signing this object: |