Skip to content

Instantly share code, notes, and snippets.

View crubier's full-sized avatar
🛰️

Vincent Lecrubier crubier

🛰️
View GitHub Profile
@oney
oney / README.md
Last active March 27, 2023 02:14
Use sql.js in sequelize on web browser

The following patch is generated from patch-package. Apply the patch by patch-package or manually. BTW, patch-package is amazing!

The patch is basically remove require('pg-hstore') because we don't need it and it may cause a require error.

You can also notice that we use window.SQL this thing. That means we need window.SQL be present.

My way is initSqlJs and set it to window.SQL somewhere at the very beginning (before you call sequelize).

@kvudata
kvudata / label-ns.yaml
Created June 27, 2018 20:20
Use Helm hook to add labels to a namespace before chart installation
# This hook depends on helm creating the target namespace if it doesn't exist
# before the hook is called. This is the case on Helm v2.9.1
apiVersion: batch/v1
kind: Job
metadata:
name: label-ns
namespace: kube-system
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}