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
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr | |
http://support.godaddy.com/help/article/3601/generating-a-certificate-signing-request-nginx | |
http://support.godaddy.com/help/article/4976/rekeying-an-ssl-certificate | |
# Be sure to remember to chain them! | |
cat gd_bundle-g2-g1.crt >> yourdomain.crt | |
# Move 'em | |
sudo mv yourdomain.crt /etc/ssl/certs/yourdomain.crt |
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
javascript:(function(){function%20read(url){var%20r=new%20XMLHttpRequest();r.open('HEAD',url,false);r.send(null);return%20r.getAllResponseHeaders();}alert(read(window.location))})(); |
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
/* | |
* Дано $foo и массив. Значения элементов -- уникальны. | |
* Как найти родителей элемента? | |
* Т.е., если $foo = 22, надо найти "MSK" и "Street_1" | |
* Или как найти индекс элемента: $cities["MSK"]["Street_2"][1]? | |
* Элемент не равен $foo, их связь вычисляется некоторой функцией | |
* | |
* Или, хотя бы, надо проверить, что элемент building_22 находится в массиве $cities["MSK"] | |
* | |
*/ |
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
function closeWindow() { | |
window.open('','_self',''); | |
window.close(); | |
} |
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
.b-cartographic-care-centres-searching-form .b-form-contents .b-form-contents-map-points .b-form-contents-map-points-collection .b-form-contents-map-points-collection-cash-machines-clause .b-form-contents-map-points-collection-clause-icon { | |
background: url(i/_b-form-contents-map-points-collection-cash-machine-clause-icon.png) no-repeat 0 0; | |
} |
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
$id = intval($_REQUEST['sec']); | |
if ($id == '') { // будет TRUE, но зачем переводить в int, чтобы сравнивать со строкой? | |
$id = MENU_DEFAULT; | |
} |
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
td { | |
padding:1em; | |
border-bottom:solid 1px #ccc; | |
line-height:1.5; | |
} | |
tr[bgcolor="#cccccc"] td, | |
tr[bgcolor="#ffffff"] td | |
{ | |
padding:0; |
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
.b-accordion { | |
padding:0; | |
margin:0; | |
} |
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
.b-accordion .b-accordion-item .b-accordion-item-title .b-accordion-item-title-arrow { | |
float:left; | |
width:14px; | |
height:11px; | |
margin-top:7px; | |
background:url(../i/graphic.png) 0 -30px no-repeat; | |
} | |
.b-accordion .b-accordion-current-item .b-accordion-item-title .b-accordion-item-title-arrow { | |
float:left; |
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
/** | |
* Widgets Library | |
* @version 0.1 | |
* @author Alexey Karunos (alkaruno@gmail.com) | |
* @example | |
* var widgets = new Widgets('http://site.com/widgets/'); | |
* widgets.show('userinfo'); | |
*/ | |
; | |
function Widgets(urlPrefix, urlSuffix) { |
OlderNewer