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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
export DBNAME="openvbxexmpl" | |
export DBUSER="openvbx" | |
export DBPASS="openVbxSecretPass" |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
apt-get -y install git | |
git clone https://gist.github.com/52816fa390eb681b6d83.git | |
cd 52816fa390eb681b6d83 |
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
jQuery(document).ready(function(){ | |
var currentDate = new Date(); | |
var day = currentDate.getDay(); | |
var hour = currentDate.getHours(); | |
var targetURL = "http://pvdb.ru/live/"; | |
if (day == 7 && hour >= 17 && hour < 19) | |
{ | |
window.location.href = targetURL; |
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
jQuery(document).ready(function(){ | |
console.log(window.location.href); | |
if (window.location.href == "http://pvdb.ru/question/") | |
{ | |
jQuery("#reply-title").text("Задать вопрос"); | |
jQuery(".comment-form-comment").children("label").text("Вопрос"); | |
jQuery("#submit").val("Отправить вопрос"); | |
} | |
}); |
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 | |
# | |
# A script that will upgrade the version of OpenVBX that resides in the /OpenVBX | |
# directory, back-up the database, copy the current version for backup and replace | |
# it with the develop branch. The old version is not deleted. | |
# | |
# Used for testing, not approved for production! | |
# Does not take 3rd party plugins in to account. | |
# customize this for your install |
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 | |
# | |
# A script that will upgrade the version of OpenVBX that resides in the /OpenVBX | |
# directory, back-up the database, copy the current version for backup and replace | |
# it with the develop branch. The old version is not deleted. | |
# | |
# Used for testing, not approved for production! | |
# Does not take 3rd party plugins in to account. | |
# customize this for your install | |
DBHOST='***' |