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
| var getBaseUrl = function(){ | |
| return 'http://wednesdaywolf.com'; | |
| } | |
| var page = require('webpage').create(); | |
| var base_url = getBaseUrl(); | |
| var i = 0; | |
| var counter = 0; | |
| var main_links = []; | |
| var global_flag = true; |
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
| for dbname in `echo show databases| mysql -u user -ppass`; do | |
| echo "Dump $dbname..." | |
| mysqldump -u user -ppass $dbname > "$dbname.sql" | |
| done; |
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
| mysql -uroot -p123 databasename < dump.sql |
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
| mysqldump -uroot -p --add-drop-database databasename > dump_$( date +%Y-%m-%d-%H-%M ).sql |
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
| Yii::app()->clientScript->scriptMap=array( | |
| 'jquery.js'=>'/js/jquery.1.8.3.min.js', | |
| ); |
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
| час: 3 600 секунд; | |
| день: 86 400 секунд; | |
| неделя: 604 800 секунд; | |
| месяц (30 дней): 2 592 000 секунд; | |
| полгода (6 месяцев по 30 дней): 15 552 000 секунд; | |
| год (12 месяцев по 30 дней): 31 104 000 секунд. |
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
| { | |
| "Алматы": "76.943776,43.295904", | |
| "Актобе": "57.183733,50.28778", | |
| "Актау": "51.230058,43.644656", | |
| "Астана": "71.480124,51.151817", | |
| "Атырау": "51.92592,47.110271", | |
| "Аркалык": "66.91043,50.243627", | |
| "Балхаш": "74.977283,46.847493", | |
| "Жезказган": "67.718563,47.790534", | |
| "Караганда": "73.105248,49.874558", |
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
| // ~strpos вхождение строки в строку | |
| var strpos = function ( haystack, needle, offset){ | |
| // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
| var i = haystack.indexOf( needle, offset ); // returns -1 | |
| return i >= 0 ? i : false; | |
| } |