Skip to content

Instantly share code, notes, and snippets.

@codespool
codespool / keybase.md
Last active November 10, 2023 10:16
keybase.md

Keybase proof

I hereby claim:

  • I am codespool on github.
  • I am codespool (https://keybase.io/codespool) on keybase.
  • I have a public key ASDEa-lT6Zz4H4SbuuF6JbI0pmylqP2pxFHgJIZcjHQa_go

To claim this, I am signing this object:

@codespool
codespool / create_kube_secret.md
Created September 16, 2022 12:34
Creating a kubernetes secret

From file:

kubectl create secret generic $SECRET_NAME --namespace=$NAMESPACE --from-file=./$FILE
  • file name will be the key, contents the value
  • multiple --from-file= blocks for multiple key-value pairs inside $SECRET_NAME
  • to rename the key, --from-file=NEW_KEY=./$FILE
@codespool
codespool / generate_EC_keypar.md
Created September 16, 2022 12:31
Generate EC keypar

Private key:

openssl ecparam -name $CURVE -genkey -noout -out private.ec.key

where $CURVE is:

  • prime256v1 for ES256
  • secp384r1 for ES384
  • secp521r1 for ES512
@codespool
codespool / codestyle_init.sh
Last active October 2, 2018 11:29
Adds all needed codestyle dependencies
#!/bin/bash
#####################################
# npm 5+ required
# run in the root of your npm project
# edit env as needed (browser or node)
#####################################
npm i -D eslint prettier eslint eslint-config-prettier eslint-plugin-prettier babel-eslint@8
npx install-peerdeps --dev eslint-config-airbnb