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
#!/usr/bin/env python | |
r"""Command-line tool to validate and pretty-print JSON | |
Usage:: | |
$ echo '{"json":"obj"}' | python jsonformat.py | |
{ | |
"json": "obj" | |
} | |
$ echo '{ 1.2:3.4}' | python jsonformat.py | |
Expecting property name enclosed in double quotes: line 1 column 3 (char 2) | |
""" |
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 | |
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
# enable remi and remi-php56 repository | |
sed -i -e "0,/php55/s/enabled=0/enabled=1/" -e "/\[remi\-php56\]/,/\[remi-/s/enabled=0/enabled=1/" /etc/yum.repos.d/remi.repo | |
rpm -e --nodeps php-mysql | |
rpm -e --nodeps php-pecl-apc | |
yum update php -y |
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 | |
AddEventHandler("iblock", "OnIBlockPropertyBuildList", Array("CIBlockPropertyUserGroup", "GetUserTypeDescription")); | |
class CIBlockPropertyUserGroup | |
{ | |
public static function GetUserTypeDescription() | |
{ | |
return array( | |
"PROPERTY_TYPE" => "N", | |
"USER_TYPE" => "USER_GROUP", | |
"DESCRIPTION" => "Привязка к группе пользователей", |