Skip to content

Instantly share code, notes, and snippets.

View davidneelin's full-sized avatar

DavidNeelin davidneelin

  • world
View GitHub Profile
@davidneelin
davidneelin / centos_install_ghost.sh
Last active January 5, 2017 14:03
auto install ghost blog system
curl --L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
unzip -uo ghost.zip -d /data/web/ghost
cd /data/web/ghost && npm install --production && npm start --production
useradd -r -s /bin/false ghost
cat << STR >> /etc/systemd/system/ghost.service
[Unit]
Description=Ghost blog
After=network.target
@davidneelin
davidneelin / centos_install_ngrok.sh
Last active September 6, 2022 10:16
a script that auto install ngrok in centos
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "usage: $0 domain"
exit 0
else
domain=$1
echo "domain is ${domain}"
fi