Skip to content

Instantly share code, notes, and snippets.

Bill Thornton thornbill

Block or report user

Report or block thornbill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
thornbill / jellyfin-web.patch
Last active Sep 26, 2019
jellyfin-web development patch
View jellyfin-web.patch
diff --git a/src/components/apphost.js b/src/components/apphost.js
index e67d79522..56763ee4a 100644
--- a/src/components/apphost.js
+++ b/src/components/apphost.js
@@ -277,7 +277,7 @@ define(["appSettings", "browser", "events", "htmlMediaHelper"], function (appSet
// allows users to connect to more than one server
- //features.push("multiserver");
+ features.push("multiserver");
thornbill /
Created May 26, 2019
Jellyfin ApiClient.js publishing guide
thornbill / Caddyfile
Last active Apr 13, 2020
Caddyfile for Jellyfin
View Caddyfile {
basicauth username "password" {
# web interface
# sensitive api endpoints
# valid api prefixes
thornbill / .gitlab-ci.yml
Created Nov 22, 2016
Example Node GitLab CI Yamlfile
View .gitlab-ci.yml
# Official framework image. Look for the different tagged releases at:
image: node:6
- npm install
# This folder is cached between builds

Keybase proof

I hereby claim:

  • I am thornbill on github.
  • I am thornbill ( on keybase.
  • I have a public key whose fingerprint is 1C10 E633 38B3 11CE DB7E FBD0 A7B1 5071 CEF5 AB38

To claim this, I am signing this object:

thornbill /
Created Feb 10, 2016
Bash function to update installed node.js versions in nvm
nvm_update() {
for NVM_UPDATE_VER in 0.10 0.12 4 5
# Install the latest versions of node only if they are already installed
nvm which $NVM_UPDATE_VER &>/dev/null && nvm install $NVM_UPDATE_VER
# Switch back to the default version of node
echo "Switching to default version of node..."
nvm use default
View sudoku
% helper predicates
square_to_subgrid(Row, Col, Subgrid) :-
floor((Row - 1)/3, RowBase),
floor((Col - 1)/3, ColBase),
Subgrid is 3 * RowBase + ColBase + 1.
one_to_nine(X) :-
member( X, [1, 2, 3, 4, 5, 6, 7, 8, 9] ).
next_square( Puzzle, Row, Col ) :-
thornbill /
Last active Aug 29, 2015
Convert a jpg, png or gif to a data-uri
for file;
echo -e "\033[0;32m>> $file\033[0m"
if [ -e $file ]; then
if [[ "gif png jpg jpeg" =~ $_ext ]]; then
if [ $_ext == "jpg" ]; then _ext="jpeg"; fi
php -r "echo(\"data:image/$_ext;base64,\".base64_encode(file_get_contents(\"$file\")).\"\\n\");"
thornbill / find_tables.js
Created Nov 12, 2014
Bookmarklet that highlights any table elements on a page
View find_tables.js
javascript:(function(d){function h(e){if(typeof e!=='object')return;function o(e){var _x=0,_y=0;while(e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop)){_x+=e.offsetLeft;_y+=e.offsetTop;e=e.offsetParent;}return {top:_y,left:_x};}var p=o(e);c(p.left,,e.clientWidth,e.clientHeight);}function c(x,y,w,h){var e=d.createElement('div');'999999';'rgba(255,0,0,0.6)';'absolute';'px';'px';'px';'px';d.body.appendChild(e);}var t=d.getElementsByTagName('table'),i,l=t.length;for(i=0;i<l;i++){h(t[i]);console.log(t[i]);}})(document);
thornbill / check_jquery_version.js
Created Sep 16, 2014
Bookmarklet to Check the Version of jQuery
View check_jquery_version.js
You can’t perform that action at this time.