I hereby claim:
- I am stepankuzmin on github.
- I am stepankuzmin (https://keybase.io/stepankuzmin) on keybase.
- I have a public key ASCWLpkncB3DnGAurt2ByOWZzp4u9bSulAlEeF3A_wBELQo
To claim this, I am signing this object:
| git config --global alias.fixup "\!f(){ git reset --soft HEAD~${1} && git commit --amend -C HEAD; };f" | |
| git fixup 1 # squashes last commit into it's parent |
| const fs = require("fs"); | |
| const Mbox = require("node-mbox"); | |
| const { simpleParser } = require("mailparser"); | |
| const mbox = new Mbox("./some.mbox/mbox"); | |
| const stream = fs.createWriteStream("./emails.json"); | |
| stream.write("["); | |
| mbox.on("message", function (msg) { |
| brew cask install oracle-jdk | |
| export JAVA_HOME=$(/usr/libexec/java_home) |
I hereby claim:
To claim this, I am signing this object:
| /* eslint-disable @typescript-eslint/no-explicit-any */ | |
| type DiscriminatedUnionOfReturnTypes<T> = | |
| T[keyof T] extends (...args: any[]) => any ? ReturnType<T[keyof T]> : never; |
| type Immutable<T> = { | |
| readonly [K in keyof T]: Immutable<T[K]>; | |
| }; |
| onMoveEnd = (event) => { | |
| const map = this._mapRef.current.getMap(); | |
| map.off('moveend', this.onMoveEnd); | |
| const zoom = map.getZoom(); | |
| const { lat, lng } = map.getCenter(); | |
| const viewport = { longitude: lng, latitude: lat, zoom }; | |
| this.props.onViewportChange(viewport); | |
| }; |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys and look for sec, use the key ID for the next stepgit to use GPG -- replace the key with the one from gpg --list-secret-keys| const { Pool, Client } = require('pg'); | |
| const groupBy = require('lodash.groupby'); | |
| const pool = new Pool({ | |
| host: 'localhost', | |
| database: 'db' | |
| }); | |
| const oldPoolQuery = pool.query; | |
| pool.query = (...args) => { |
Manual issue certificate:
sudo certbot certonly \
--agree-tos \
--email [email protected] \
--manual \
-d domain.tld