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
#https://github.com/paritytech/parity/issues/6171 | |
[Unit] | |
Description=Parity Daemon | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/parity --config /etc/parity/parity.toml | |
[Install] | |
WantedBy=default.target |
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
# Execute :crontab -e | |
# add folow lines (create backup at 4-30 o'clock every day): | |
30 04 * * * /root/mysql-dump.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
<?php | |
/* | |
Plugin for switch context for MODX REVO. Works on nginx and apache. Not required to changing server configs. | |
Attach plugin to event: OnHandleRequest | |
Each context setting is (name,key) => val (comment): | |
(Base URL, base_url) => / (or /en/ for english,etc) | |
(Culture key, cultureKey) => ru (or en for english,etc) | |
(Site start, site_start) => 1 (it's a ID of home document, like 404 eror page id) | |
(Site URL, site_url) => http://example.com/ (or http://example.com/en/ for english. Be careful, should match base_url) | |
*/ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
$(".social-icon").on("click",function(e){ | |
var $this = $(this); | |
if ($this.hasClass("vk_en")){ | |
Share.vkontakte(location.href); | |
} else if ($this.hasClass("fb")){ | |
Share.facebook(location.href); | |
} else if ($this.hasClass("ok")){ | |
Share.odnoklassniki(location.href); | |
} else if ($this.hasClass("g_plus")){ |