Skip to content

Instantly share code, notes, and snippets.

@ozym4nd145
ozym4nd145 / add_user.sh
Created October 1, 2017 05:24
Add users directly to sqlite3 database of ghost 1.10
#!/bin/bash
if [ -z "$1" ]; then
echo "USAGE: $0 <username> <email>"
exit 1
fi
#DB=/var/www/ghost/content/data/ghost.db
DB=$PWD/ghost.db
ID=`echo "select count(*) from users;"|sqlite3 $DB`
EXITCODE=$?
if [ $EXITCODE == 0 ]; then
@ozym4nd145
ozym4nd145 / 1.mongodb-aws-setup-guide.md
Created February 2, 2019 18:10 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled