Skip to content

Instantly share code, notes, and snippets.

View armando-basile's full-sized avatar

Armando Basile armando-basile

View GitHub Profile
From 2bb3b2a57c0c5b44a0dbe37758041f6c00b73b77 Mon Sep 17 00:00:00 2001
From: Rainer Hochecker <fernetmenta@online.de>
Date: Sun, 10 May 2015 19:51:43 +0200
Subject: [PATCH] dvdplayer: add a method to avoid requeting HTTP Header
---
xbmc/FileItem.h | 6 ++++++
xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp | 2 +-
xbmc/cores/dvdplayer/DVDFileInfo.cpp | 6 +++---
xbmc/cores/dvdplayer/DVDInputStreams/DVDFactoryInputStream.cpp | 9 +++++++--
--- PVRIptvData.cpp.old 2015-05-24 17:48:10.058116268 +0200
+++ PVRIptvData.cpp.new 2015-05-24 17:50:04.641520052 +0200
@@ -531,6 +531,9 @@
strncpy(xbmcChannel.strIconPath, channel.strLogoPath.c_str(), sizeof(xbmcChannel.strIconPath) - 1);
xbmcChannel.bIsHidden = false;
+ // WORKAROUND FOR Channel start/change delay
+ PVR_STRCPY(xbmcChannel.strInputFormat, "video/mp2t");
+
PVR->TransferChannelEntry(handle, &xbmcChannel);
@armando-basile
armando-basile / set-touchpad
Created June 22, 2015 21:46
ASUS Touchpad disable/enable script (require xinput and gxmessage)
#!/bin/bash
CMD="gxmessage -borderless -ontop -title Information -center -timeout 3 "
IS_TOUCHPAD=`xinput list-props "FocalTechPS/2 FocalTech FocalTech Touchpad" | grep "Device Enabled (145): 1"`
# detect if is superuser
if [[ $EUID -ne 0 ]]
then
echo -e "This script must be run as rootn"
/opt
|-- bin
| |-- autopoint
| |-- busybox
| |-- bzip2-bzip2
| |-- bzip2recover
| |-- captoinfo -> tic
| |-- cjpeg
| |-- curl
| |-- curl-config
execve("/opt/bin/update-alternatives", ["/opt/bin/update-alternatives", "--install", "/opt/bin/bzip2", "bzip2", "/opt/bin/bzip2-bzip2", "80"], [/* 23 vars */]) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
gettid() = 3074
set_tls(0x417c4, 0xfffffe8c, 0, 0x417c4, 0x419f8) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0xb6fb8000
madvise(0xb6fb8000, 8192, 0xc /* MADV_??? */) = -1 EINVAL (Invalid argument)
sigaltstack({ss_sp=0xb6fb8000, ss_flags=0, ss_size=8192}, NULL) = 0
open("/dev/__properties__", O_RDONLY|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0444, st_size=131072, ...}) = 0
# tarball: http://download.mono-project.com/sources/mono/mono-4.2.0.207.tar.bz2
# require to add AUTHORS file missing and rename into mono-4.2.0.tar.bz2
%define major 0
%define major1 1
%define libname %mklibname %{name} %{major}
%define libnamellvm %mklibname %{name}llvm %{major}
%define libname1 %mklibname %{name} 2.0 %{major1}
%define libnamedev %mklibname -d %{name}
%define bootstrap 0
[armando@localhost msgpack-php-msgpack-0.5.7]$ phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
@armando-basile
armando-basile / comex.spec
Last active November 9, 2015 21:45
comex mageia spec file
# enable build of Gtk gui
%define with_gtk 1
# enable build of Qt gui
%define with_qt 1
%define archivename comex-project
%define g_gtk %{name}-gtk
%define g_qt %{name}-qt
%define min_ver 0.1.9
@armando-basile
armando-basile / comex-gtk.spec
Created October 19, 2015 15:21
spec file for comex-gtk
%define archivename comex-project
%define comexbase comex-base
%define comexfolder comex
Summary: GTK user interface for comex project
Name: comex-gtk
Version: 0.1.9
Release: %mkrel 1
License: GPLv2
#ExcludeArch: ppc64
Group: Office/Utilities
@armando-basile
armando-basile / comex-qt.spec
Created October 19, 2015 15:22
spec file for comex-qt
%define archivename comex-project
%define comexbase comex-base
%define comexfolder comex
Summary: Qt user interface for comex project
Name: comex-qt
Version: 0.1.9
Release: %mkrel 1
License: GPLv2
#ExcludeArch: ppc64
Group: Office/Utilities