This file contains hidden or 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
<?php | |
require_once( 'wp-config.php' ); | |
$db = array(); | |
$db['host'] = DB_HOST; | |
$db['user'] = DB_USER; | |
$db['password'] = DB_PASSWORD; | |
$db['database'] = DB_NAME; |
This file contains hidden or 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 | |
# From The Logstash Book | |
# The original of this file can be found at: http://logstashbook.com/code/index.html | |
# | |
### BEGIN INIT INFO | |
# Provides: logstash-forwarder | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog |
This file contains hidden or 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 | |
# Creating a 1G swap file | |
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
# Changing the file permission | |
sudo chmod 600 /swapfile | |
sudo chown root:root /swapfile |