Skip to content

Instantly share code, notes, and snippets.

View azhurb's full-sized avatar

Oleksii Zhurbytskyi azhurb

View GitHub Profile
@azhurb
azhurb / cur_weather.patch
Created August 26, 2015 10:33
Display day min and max temperature in the current weather widget.
Index: c/weather.current.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/weather.current.js (revision 0f15c773e5d7d29b7400860ad2aba209ef0a2898)
+++ c/weather.current.js (revision )
@@ -62,10 +62,10 @@
var cur = '<div class="curweather_img"><img src="template/' + loader.template + '/i' + resolution_prefix + '/' + this.current.pict + '"/></div>';
<?php
/**
* Exchange rate
*
* @package stalker_portal
* @author [email protected]
*/
class Course
{
@azhurb
azhurb / on_unsubscribe.php
Last active August 29, 2015 14:18
on_unsubscribe.php
<?php
include "../common.php";
if (empty($_REQUEST['mac']) || empty($_REQUEST['tariff_id']) || empty($_REQUEST['package_id'])){
echo '{"status":"ERROR","results":false,"error":"mac and tariff_id required"}';
exit;
}
//$mac = $_REQUEST['mac'];
@azhurb
azhurb / on_subscribe.php
Last active August 29, 2015 14:18
on_subscribe.php
<?php
include "../common.php";
if (empty($_REQUEST['mac']) || empty($_REQUEST['tariff_id']) || empty($_REQUEST['package_id'])){
echo '{"status":"ERROR","results":false,"error":"mac and tariff_id required"}';
exit;
}
//$mac = $_REQUEST['mac'];
@azhurb
azhurb / Exit_on_TV_page.patch
Created December 4, 2014 09:53
Exit on TV page
Index: c/tv.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/tv.js (revision 30037ac84237b815bc382726a9809625e1cdd7af)
+++ c/tv.js (revision )
@@ -380,8 +380,7 @@
return;
}
@azhurb
azhurb / Fix_vclub_current_video_info.patch
Created October 23, 2014 14:37
Fix vclub current video info
Index: server/lib/stb.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/stb.class.php (revision 122b15b5b3f603a8a0cbcd19f63f2a61d99f90e0)
+++ server/lib/stb.class.php (revision )
@@ -1115,11 +1115,11 @@
$video = $this->db->from('video')->where(array('rtsp_url' => $param, 'protocol' => 'custom'))->get()->first();
Index: server/lib/stb.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/stb.class.php (revision fdf2e501d81c6959e9dc589fa0b45023f75a1b1e)
+++ server/lib/stb.class.php (revision )
@@ -724,6 +724,9 @@
$profile['tv_channel_default_aspect'] = Config::getSafe('tv_channel_default_aspect', 'fit');
@azhurb
azhurb / get_info.php
Created July 28, 2014 12:47
Soap API example
<?php
require "StalkerSoapClient.php";
$client = new StalkerSoapClient();
$info = $client->GetAccountInfo(array('stb_mac' => '00:1A:79:01:01:01', 'login' => '1'));
var_dump($info);
@azhurb
azhurb / Fix_EPG_start_time_(issue_#4185).patch
Created June 16, 2014 15:35
Fix EPG start time (issue #4185)
Index: server/lib/epg.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/epg.class.php (revision 08772adb8e4997da0e6318585b78e2252e6c609c)
+++ server/lib/epg.class.php (revision )
@@ -351,16 +351,6 @@
if (!array_key_exists($date, $this->cleaned_epg[$itv_id]) || $this->cleaned_epg[$itv_id][$date] > $real_date){
$this->cleaned_epg[$itv_id] = array($date => $real_date);
@azhurb
azhurb / Fix_NBU_course_update_(issue_#4053).patch
Created April 25, 2014 12:35
Fix NBU course update (issue #4053)
Index: server/lib/course.class.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- server/lib/course.class.php (date 1397743696000)
+++ server/lib/course.class.php (revision )
@@ -10,7 +10,7 @@
{
public $db;