Skip to content

Instantly share code, notes, and snippets.

View wernerhp's full-sized avatar

Werner Pieterson wernerhp

View GitHub Profile
@wernerhp
wernerhp / keybase.md
Created October 16, 2017 11:43
Keybase Proof

Keybase proof

I hereby claim:

  • I am wernerhp on github.
  • I am wernerhp (https://keybase.io/wernerhp) on keybase.
  • I have a public key ASAgFebyCLdeSl-Qb_6XF2sjao0FefRtRZkzPkaq8QxUGwo

To claim this, I am signing this object:

2016-02-09 19:24:18 ERROR Thread-915 :: git symbolic-ref -q HEAD returned :
2016-02-09 19:24:18 DEBUG Thread-915 :: Executing git symbolic-ref -q HEAD with your shell in /opt/sickbeard
None
2016-02-09 19:24:18 ERROR Thread-915 :: git symbolic-ref -q HEAD returned :
2016-02-09 19:24:18 DEBUG Thread-915 :: Executing git symbolic-ref -q HEAD with your shell in /opt/sickbeard
2016-02-09 19:24:18 DEBUG Thread-915 :: Using: git
2016-02-09 19:24:18 DEBUG Thread-915 :: git version : returned successful
2016-02-09 19:24:18 DEBUG Thread-915 :: Executing git version with your shell in /opt/sickbeard
2016-02-09 19:24:18 DEBUG Thread-915 :: Checking if we can use git commands: git version
2016-02-09 19:23:52 DEBUG Thread-955 :: The name Show Name - S02E03E04E05 - Ep Name.ext parsed into Show Name - S02E03E04E05 [ABD: False] [ANIME: False] [whichReg: ['standard']]
2015-11-20 22:43:16 ERROR Thread-58 :: Exception generated in issue submitter, please check the log
2015-11-20 22:43:16 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [BinSearch] :: Attempting to add item to cache: "Usenet.Index.Post.1447743371.yEnc.(1/01)"
BadCredentialsException: 401 {u'documentation_url': u'https://developer.github.com/v3', u'message': u'Bad credentials'}
raise self.__createException(status, responseHeaders, output)
File "/opt/sickbeard/lib/github/Requester.py", line 179, in __check
return self.__check(*self.requestJson(verb, url, parameters, headers, input, cnx))
File "/opt/sickbeard/lib/github/Requester.py", line 171, in requestJsonAndCheck
"/orgs/" + login
File "/opt/sickbeard/lib/github/MainClass.py", line 188, in get_organization
reports = gh.get_organization(gh_org).get_repo(gh_repo).get_issues(state="all")
2015-11-20 22:45:28 ERROR Thread-41 :: Exception generated in issue submitter, please check the log
BadCredentialsException: 401 {u'documentation_url': u'https://developer.github.com/v3', u'message': u'Bad credentials'}
raise self.__createException(status, responseHeaders, output)
File "/opt/sickbeard/lib/github/Requester.py", line 179, in __check
return self.__check(*self.requestJson(verb, url, parameters, headers, input, cnx))
File "/opt/sickbeard/lib/github/Requester.py", line 171, in requestJsonAndCheck
input=post_parameters
File "/opt/sickbeard/lib/github/AuthenticatedUser.py", line 473, in create_gist
gist = gh.get_user().create_gist(True, {"sickrage.log": InputFileContent(paste_data)})
File "/opt/sickbeard/sickbeard/logger.py", line 249, in submit_errors
@wernerhp
wernerhp / nsprintf.php
Created June 1, 2015 09:24
Formats a string using an associative array.
/**
* Formats a string using an associative array.
* Example:
* echo nsprintf(":name :surname is :age", array('name' => 'John', 'age' => '29', 'surname' => 'Doe'));
*
* @param string $format A formatted string with named template fields
* @param array $args An associative array of values to place in the formatted string.
* @return string A formatted string
*/
function nsprintf($format, $args)

Keybase proof

I hereby claim:

  • I am wernerhp on github.
  • I am wernerhp (https://keybase.io/wernerhp) on keybase.
  • I have a public key whose fingerprint is 8C54 106C 9967 862B 3B49 EF94 2931 7F92 1A58 CE12

To claim this, I am signing this object: