View ghostsitemap.sh
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 | |
############################################## | |
# modified version of original http://media-glass.es/ghost-sitemaps/ | |
# for ghost.centminmod.com | |
# http://ghost.centminmod.com/ghost-sitemap-generator/ | |
############################################## | |
url="ghost.centminmod.com" | |
webroot='/home/nginx/domains/ghost.centminmod.com/public' | |
path="${webroot}/sitemap.xml" | |
user='nginx' # web server user |
View ghost1
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 | |
########################################### | |
# chkconfig: 2345 98 02 | |
# | |
# description: PM2 next gen process manager for Node.js | |
# processname: ghost1 | |
# | |
### BEGIN INIT INFO | |
# Provides: ghost1 | |
# Required-Start: |
View rsnapshot_email_sample
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
SOURCE TOTAL FILES FILES TRANS TOTAL MB MB TRANS LIST GEN TIME FILE XFER TIME | |
-------------------------------------------------------------------------------------------------------------------- | |
/etc 1553 3 23.14 0.01 0.001 seconds 0.000 seconds | |
/home/nginx 22 0 0.02 0.00 0.001 seconds 0.000 seconds | |
/root/centminlogs 4 0 2.48 0.00 0.001 seconds 0.000 seconds | |
/root/centminmod 8 0 0.00 0.00 0.001 seconds 0.000 seconds | |
/root/tools 2 0 0.00 0.00 0.001 seconds 0.000 seconds | |
/usr/local/etc 9 0 0.04 0.00 0.001 seconds 0.000 seconds | |
/usr/local/nginx/conf 41 0 0.06 0.00 0 |
View ghost.sh
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/sh | |
# | |
# ghost - this script starts the ghost blogging package | |
# | |
# chkconfig: - 95 20 | |
# description: ghost is a blogging platform built using javascript \ | |
# and running on nodejs | |
# | |
# Source function library. |
View default.vcl
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
# Varnish VCL file for Ghost blogging platform. | |
# http://ghost.org/ | |
# | |
# Written for Ghost v0.3.0. | |
backend default { | |
.host = "blog-jniedbalski.rhcloud.com"; | |
.port = "80"; |
View renamedb
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 | |
# Copyright 2013 Percona LLC and/or its affiliates | |
set -e | |
if [ -z "$3" ]; then | |
echo "rename_db <server> <database> <new_database>" | |
exit 1 | |
fi | |
db_exists=`mysql -h $1 -e "show databases like '$3'" -sss` | |
if [ -n "$db_exists" ]; then | |
echo "ERROR: New database already exists $3" |
View wpcli.sh
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 | |
############################################### | |
# Official centminmod.com addon: wpcli.sh installer | |
# written by George Liu (eva2000) vbtechsupport.com | |
############################################### | |
# http://wp-cli.org/ | |
# WP-CLI is a set of command-line tools for managing WordPress | |
# installations. You can update plugins, set up multisite installs, | |
# create posts etc | |
############################################### |
View geoip.sh
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 | |
###################################################### | |
# written by George Liu (eva2000) vbtechsupport.com | |
###################################################### | |
# variables | |
############# | |
DT=`date +"%d%m%y-%H%M%S"` | |
CENTMINLOGDIR='/root/centminlogs' | |
DIR='/svr-setup' | |
###################################################### |
View gist:8773625
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
jk_cp -j /home/chroot_shell/ /etc/centminmod/php.d | |
/home | |
Copying /etc/centminmod/php.d/memcache.ini to /home/chroot_shell/etc/centminmod/php.d/memcache.ini | |
Copying /etc/centminmod/php.d/imagick.ini to /home/chroot_shell/etc/centminmod/php.d/imagick.ini | |
Copying /etc/centminmod/php.d/apc.ini to /home/chroot_shell/etc/centminmod/php.d/apc.ini | |
Copying /etc/centminmod/php.d/memcached.ini to /home/chroot_shell/etc/centminmod/php.d/memcached.ini | |
Copying /etc/centminmod/php.d/igbinary.ini to /home/chroot_shell/etc/centminmod/php.d/igbinary.ini | |
jk_cp -j /home/chroot_shell/ /usr/local/lib/php/extensions | |
/home |
OlderNewer