Skip to content

Instantly share code, notes, and snippets.

View simonkberg's full-sized avatar
:shipit:

Simon Kjellberg simonkberg

:shipit:
View GitHub Profile
{
"bold_folder_labels": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme", // CHANGE ME
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"draw_white_space": "selection",
"enable_hexadecimal_encoding": false,
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"font_face": "Source Code Pro", // CHANGE ME
{
// If the indent level of a multi-line selection should be aligned
"align_indent": true,
// If indentation is done via tabs, set this to true to also align
// mid-line characters via tabs. This may cause alignment issues when
// viewing the file in an editor with different tab width settings. This
// will also cause multi-character operators to be left-aligned to the
// first character in the operator instead of the character from the
// "alignment_chars" setting.
# 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
syntax enable " enable syntax processing
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set number " show line numbers
set showcmd " show command in bottom bar
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
set incsearch " search as characters are entered
[core]
editor = vim
[alias]
cm = commit
co = checkout
ac = !git add -A && git commit
st = status -sb
tags = tag -l
branches = branch -a
remotes = remote -v
import flatten from './flatten'
export const replaceString = (input, pattern, replace) => {
const index = input.indexOf(pattern)
const isFunction = typeof replace === 'function'
if (index >= 0) {
const output = []
const lastIndex = index + pattern.length