I hereby claim:
- I am jukben on github.
- I am jukben (https://keybase.io/jukben) on keybase.
- I have a public key ASCrxSl-w7_8sf2Iev7n4R4xLnSwDnQFTqofvduxp9dNXAo
To claim this, I am signing this object:
#!/usr/bin/env fish | |
# Get the current Node.js version managed by nvm.fish | |
set nvm_current_version (nvm current) | |
# Check if a Node.js version is currently selected | |
if test "$nvm_current_version" = "none" | |
echo "Error: No Node.js version selected. Please use 'nvm use' to select a version." | |
exit 1 | |
end |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Copyright (c) 2019-present, ProductBoard, Inc. | |
* All rights reserved. | |
*/ | |
export default function transform(file, api) { | |
const j = api.jscodeshift; | |
const imports = j(file.source) | |
.find(j.ImportDeclaration) |
import { withLeaflet, GridLayer } from "react-leaflet"; | |
import L from "leaflet"; | |
class Grid extends GridLayer { | |
createLeafletElement() { | |
const { url, cacheName } = this.props; | |
const Layer = L.TileLayer.extend({ | |
createTile: (coords, done) => { | |
const { x, y, z } = coords; |
#!/bin/bash | |
# http://mywiki.wooledge.org/BashFAQ/105 | |
set -e | |
if [[ $(git config --get husky.hooks) == "false" ]]; then exit 0; fi | |
yarn run lint-staged |
Convert the ISO
hdiutil convert kali-linux-light-2018.4-amd64.iso -format UDRW -o kali.img
Get the USB disk
diskutil list
#!/bin/bash | |
# This is complementary script to our lint-staged setup. This is a bit of magic, but please bare with me. | |
# This script finds new files during the CI job (compared to the master), and | |
# 1. prints all the files in all commits which are not in the master | |
# 2. sorts them and unique them | |
# 3. we care just for src/*.tsx? | |
# 4. ignore return code of grep :) |
socat -t100 -x -v UNIX-LISTEN:/tmp/client,mode=777,reuseaddr,fork UNIX-CONNECT:/tmp/server |
# get PID of the process | |
sudo lsof /Volumes/1TB/ | |
# kill that | |
kill -9 <PID> |