Skip to content

Instantly share code, notes, and snippets.

View simonkberg's full-sized avatar
:shipit:

Simon Kjellberg simonkberg

:shipit:
View GitHub Profile
# to execute this gist, run the line bellow in terminal
\curl -L https://gist.githubusercontent.com/SimonKberg/110d1e7a4aaa9a255d2f/raw/b1ab0653403081c97ae3d7567ec45963883ed6d6/install_source_code_pro.sh | sh
2015-02-15 15:31:49 ERROR Thread-59 :: cannot concatenate 'str' and 'exceptions.IOError' objects
KeyError: 14
fd_obj, handler_func = self._handlers[fd]
File "/media/sdk1/home/**********/.sickrage/tornado/ioloop.py", line 836, in start
Traceback (most recent call last):
2015-02-15 15:31:24 ERROR Exception in callback None
2015-02-15 15:31:08 INFO POSTPROCESSER :: Successfully processed
2015-02-15 15:31:08 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-15 15:31:08 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-15 15:31:08 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-15 15:31:54 ERROR Thread-62 :: cannot concatenate 'str' and 'exceptions.TypeError' objects
KeyError: 14
fd_obj, handler_func = self._handlers[fd]
File "/media/sdk1/home/**********/.sickrage/tornado/ioloop.py", line 836, in start
Traceback (most recent call last):
2015-02-15 15:31:49 ERROR Exception in callback None
KeyError: 14
fd_obj, handler_func = self._handlers[fd]
File "/media/sdk1/home/**********/.sickrage/tornado/ioloop.py", line 836, in start
Traceback (most recent call last):
2015-02-17 16:49:15 ERROR Thread-37 :: Failed doing webui callback: Traceback (most recent call last):
KeyError: 13
fd_obj, handler_func = self._handlers[fd]
File "/media/sdk1/home/**********/.sickrage/tornado/ioloop.py", line 836, in start
Traceback (most recent call last):
2015-02-17 16:49:15 ERROR Exception in callback None
2015-02-17 16:48:23 INFO POSTPROCESSER :: Successfully processed
2015-02-17 16:48:23 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-17 16:48:23 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-17 16:48:23 DEBUG POSTPROCESSER :: You're trying to post process a video that's already been processed, skipping
2015-02-17 16:48:09 ERROR Thread-28 :: Failed doing webui callback: Traceback (most recent call last):
2015-02-17 16:47:59 DEBUG Thread-28 :: Getting recommended shows from Trakt.tv
2015-02-17 16:47:33 DEBUG Thread-61 :: formatting pattern: Season %0S -> Season 02
2015-02-17 16:47:33 DEBUG Thread-61 :: Parsed Show.Name.003.HDTV.XviD-RLSGROUP into Show Name - S0E3 [ANIME VER: -1] [GROUP: RLSGROUP] [ABD: False] [ANIME: False] [whichReg: ['bare']]
2015-02-17 16:47:33 DEBUG Thread-61 :: Using ANIME regexs
2015-02-17 16:47:33 DEBUG Thread-61 :: formatting pattern: %S.N.S%0SE%0E.%Q.N-%RG -> Show.Name.S02E03.HD.TV-RLSGROUP
2015-02-17 16:47:33 DEBUG Thread-61 :: Episode has no release group, replacing it with 'RLSGROUP'
2015-02-17 16:47:33 DEBUG Thread-61 :: Parsed Show.Name.003.HDTV.XviD-RLSGROUP into Show Name - S0E3 [ANIME VER: -1] [GROUP: RLSGROUP] [ABD: False] [ANIME: False] [whichReg: ['bare']]
2015-02-17 16:47:33 DEBUG Thread-61 :: Using ANIME regexs
2015-02-17 16:47:33 DEBUG Thre
<?php
/* Place in /wp-content/ */
include('../wp-config.php');
include('../wp-load.php');
global $wpdb;
//Settings
$type = 0; //1 for post, everything else for pages
$category_id = 1; // ID of the category, or...
_gaq.push(['_trackEvent', thisel.parents('[id!=""]:first').get(0).id, 'clicked', (thisel.text() || thisel.children('img:first').attr('alt'))]);
@simonkberg
simonkberg / OS-Browser_classes.php
Created August 7, 2010 11:58
This PHP function detects which Browser (+version) and OS a user is running and returns or print it in a class-friendly format to use in e.g. Body-class
<?php
//
// This PHP function detects which Browser (+version) and OS a user is running and returns or
// print it in a class-friendly format to use in e.g. Body-class
//
// Use like <?php echo "<body class=\"".OSbodyClass(false)."\">"; ?>
// or <body class="<?php OSbodyClass(); ?>">
//
// example output for Firefox 3.6.8 running on Windows 7: <body class="windows firefox ff3">
@simonkberg
simonkberg / LICENSE.txt
Created June 13, 2011 12:30 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@simonkberg
simonkberg / gist:3878162
Created October 12, 2012 08:54
ffmpeg convert loop
#!/bin/bash
for f in *.mov
do
ffmpeg -i "$f" -s 728x410 -sameq -acodec libmp3lame -aq 0 "../${f%.mov}.mpg"
done
for f in *.mov
do
ffmpeg -i "$f" -s 960x540 -sameq -vprofile baseline -acodec copy "../mov2/${f%.mov}.mov"