This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh aps1.cluster.turalt.com mysqldump --complete-insert --compatible=ansi --no-create-db --no-create-info --ignore-table=turalt.knex_migrations --ignore-table=turalt.knex_migrations_lock --skip-opt -uturalt -pturalt turalt | sed -e 's/\\\"/"/g' | sed -e "s/\\\'/''/g" > ~/compatible-ansi.sql | |
rm dev.sqlite3 | |
npx knex migrate:latest | |
sqlite3 dev.sqlite3 | |
sqlite> begin transaction; | |
sqlite> .read /Users/stuart/compatible-ansi.sql | |
sqlite> commit; | |
sqlite> .quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Only the DHCP server talking to eth0 is allowed to give us a default | |
## route. Other interfaces only get local-segment configuration. | |
case ${interface} in | |
enp0s8) | |
;; | |
*) | |
unset new_routers | |
;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const morgan = require('morgan'); | |
const path = require('path'); | |
const fastCgi = require('fastcgi-client'); | |
const log4js = require("log4js"); | |
const logger = log4js.getLogger(); | |
logger.level = "debug"; | |
const args = require('minimist')(process.argv.slice(2)); |
OlderNewer