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
function yourhrme_preprocess_node(&$vars) { | |
$vars['content'] = 'this is my content'; | |
} |
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
<?php | |
$url_a = parse_url($base_url . drupal_encode_path($url)); | |
$fp = fsockopen($url_a['host'], 80, $errno, $errstr, 5); | |
if (!$fp) { | |
echo "$errstr ($errno)<br />\n"; | |
} else { | |
$out = "GET $url_a[path] HTTP/1.1\r\n"; | |
$out .= "Host: $url_a[host]\r\n"; | |
$out .= "Connection: Close\r\n\r\n"; | |
fwrite($fp, $out); |
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
<?php | |
function migrate_site_migrate_api() { | |
$api = array( | |
'api' => 2, | |
'groups' => array( | |
'site' => array( | |
'title' => t('Site'), | |
) | |
), |
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
<div x-ng-repeat="item in data[key]" x-sd-toggle-fold class="item"> | |
<div> | |
<div x-ng-bind-html="item.field_fc_info.teaser || item.field_fc_info.full | unsafe" class="left"></div> | |
<div x-ng-bind-html="item.body.teaser || item.body.full | unsafe" class="center"></div> | |
<div ng-if="item.body.teaser" class="right"><a href="#" class="toggle">Unfold</a></div> | |
</div> | |
<div ng-if="item.body.teaser" style="display: none"> | |
<div x-ng-bind-html="item.field_fc_info.full || item.field_fc_info.teaser | unsafe" class="left"></div> | |
<div x-ng-bind-html="item.body.full || item.body.teaser | unsafe" class="center"></div> | |
<div class="right"><a href="#" class="toggle">Fold</a></div> |
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
function preRender(data) { | |
_.each(data, function (el, key) { | |
if (_.isObject(el) && el.date_type == 'datetime') { | |
var date = []; | |
date[0] = moment(el.value + ' ' + el.timezone_db, 'YYYY-MM-DD H:m:s z', lang); | |
date[1] = moment(el.value2 + ' ' + el.timezone_db, 'YYYY-MM-DD H:m:s z', lang); | |
el = date; | |
} | |
else if (_.isObject(el)) { | |
el = preRender(el); |
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
Delivered-To: [email protected] | |
Received: by 10.216.192.69 with SMTP id h47csp286089wen; | |
Fri, 18 Jul 2014 10:45:18 -0700 (PDT) | |
X-Received: by 10.112.180.70 with SMTP id dm6mr6927057lbc.32.1405705518235; | |
Fri, 18 Jul 2014 10:45:18 -0700 (PDT) | |
Return-Path: <[email protected]> | |
Received: from forward3m.mail.yandex.net (forward3m.mail.yandex.net. [2a02:6b8:0:2519::3:12]) | |
by mx.google.com with ESMTPS id bm6si21109644lbb.30.2014.07.18.10.45.18 | |
for <[email protected]> |
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
ffmpeg started on 2014-07-18 at 19:57:08 | |
Report written to "ffmpeg-20140718-195708.log" | |
Command line: | |
ffmpeg -i rtsp://web:[email protected]:554 -an -c copy -f flv rtmp://localhost:1935/full/go -report | |
ffmpeg version 0.10.12-7:0.10.12-1~precise1 Copyright (c) 2000-2014 the FFmpeg developers | |
built on Apr 26 2014 09:49:36 with gcc 4.6.3 | |
configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.12-1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static | |
libav |
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
fantomas@app-1:~/src$ apt-cache policy nginx | |
nginx: | |
Installed: (none) | |
Candidate: 1.1.19-1ubuntu0.6 | |
Version table: | |
1.1.19-1ubuntu0.6 0 | |
500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages | |
1.1.19-1ubuntu0.5 0 | |
500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages | |
1.1.19-1 0 |
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
$ vlc -vvv http://192.168.1.103:8082/go | |
VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b) | |
[0x1418108] main libvlc debug: VLC media player - 2.0.8 Twoflower | |
[0x1418108] main libvlc debug: Copyright © 1996-2013 VLC authors and VideoLAN | |
[0x1418108] main libvlc debug: revision 2.0.8a-0-g68cf50b | |
[0x1418108] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0ubuntu0.12.04.1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' |
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
{"slideshow":{"slides":[{"src":"http://sodr-server/sites/default/files/slides/slide-1.jpg","html":"<div class=\"left-2 top-3\">\u042d\u0442\u043e HTML <b>\u043f\u0435\u0440\u0432\u043e\u0433\u043e</b> \u0441\u043b\u0430\u0439\u0434\u0430!</div>","reference":"4"},{"src":"http://sodr-server/sites/default/files/slides/slide-2.jpg","html":"Second slide description","reference":"2"}]},"affiche":{"events":[{"title":"\u0412\u0441\u0435\u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0441 \u0430\u0440\u0442\u0438\u0441\u0442\u043e\u0432 \u0431\u0430\u043b\u0435\u0442\u0430 \u0438 \u0445\u043e\u0440\u0435\u043e\u0433\u0440\u0430\u0444\u043e\u0432","\u0434\u0430\u0442\u0430":{"value":"2014-07-25 20:00:00","value2":"2014-07-25 20:00:00","timezone":"Europe/Moscow","timezone_db":"UTC","date_type":"datetime"},"poster":"<img src=\"http://sodr-server/sites/default/files/styles/medium/public/event-vkb_7.png?itok=fHygdxWW\" width=\"149\" height=\"220\" alt=\"\" />","\u0442\u043 |