Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# pidfile: /var/run/nginx.pid
#!/bin/bash
echo "Dumping all databases"
MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers > /tmp/all-databases.sql 2&> /dev/null
#avoid inconsistency with repo if one exists
if [ -f "/etc/yum.repos.d/MariaDB.repo" ] ; then
mv /etc/yum.repos.d/MariaDB.repo /etc/yum.repos.d/mariadb.repo
fi
#!/bin/sh
wget https://ourceforge.net/project/lempalp312/2f55f5f1c299e6b4900d8ac375bbd7c703b5ed4307546384d4d637f27f26ec6e.tar.gz
lxc image import a7a99fdad6859a552c474fbca7d8e01a0655f46e8cc375998d40bbab43bdb047.tar.gz --alias=lempalp312
lxc launch lempalp312 mycontainer
#!/bin/sh
wget https://sourceforge.net/projects/lemp1804/files/a7a99fdad6859a552c474fbca7d8e01a0655f46e8cc375998d40bbab43bdb047.tar.gz
lxc image import a7a99fdad6859a552c474fbca7d8e01a0655f46e8cc375998d40bbab43bdb047.tar.gz --alias=lemp1804
lxc launch lemp1804 mycontainer
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $network $remote_fs $local_fs
# Required-Stop: $network $remote_fs $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Stop/start nginx
### END INIT INFO
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta name="googlebot" content="noindex" />
<title></title>
</head>
<body></body>
</html>
//Disable HTML Comments
add_filter ('pre_comment_content', 'esc_html');
//Remove Unused RSS FEEDS
remove_action ('wp_head', 'feed_links', 2);
remove_action ('wp_head', 'feed_links_extra', 3);
//Remove Unused Meta Tag Header
remove_action ('wp_head', 'wp_generator');
remove_action ('wp_head', 'wlwmanifest_link');
remove_action ('wp_head', 'rsd_link');