by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
#!/bin/bash | |
#Force file syncronization and lock writes | |
mongo admin --eval "printjson(db.fsyncLock())" | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
MONGO_HOST="prod.example.com" | |
MONGO_PORT="27017" | |
MONGO_DATABASE="dbname" | |
// Installation: | |
// yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator | |
import jsx from '@babel/plugin-syntax-jsx'; | |
import generate from '@babel/generator'; | |
const COLOR_MAP = { | |
'white': 'white', | |
'near-white': 'gray-100', | |
'light-gray': 'gray-200', |