Skip to content

Instantly share code, notes, and snippets.

View cbrooker's full-sized avatar

Chris Brooker cbrooker

  • Avanade Digital Innovation Studio
  • Houston, Tx
View GitHub Profile
0.0.0.0 settings-win.data.microsoft.com
0.0.0.0 us-v10c.events.data.microsoft.com
0.0.0.0 captive.apple.com
0.0.0.0 clients3.google.com
0.0.0.0 self.events.data.microsoft.com
0.0.0.0 x1.c.lencr.org
0.0.0.0 splnke-pidx49.s02.chevron.net
0.0.0.0 gate-tcoaty.vpn.chevron.com
0.0.0.0 gate-lon.vpn.chevron.com
@cbrooker
cbrooker / AddCollection.py
Last active June 19, 2022 08:47
AudioBookshelf - Bulk add books to a collection
# Run 'pip install' to install dependency.
# Change variables at top to adjust parameters.
#
# This script will:
# 1) loop through the titles listed in the "booklist" file.
# 2) Search ABS for that book
# 3) Add the book to the specified collection.
#
# a "notFound.txt" will be created with the Title of the Books that couldn't be found.
#
@cbrooker
cbrooker / gist:6055010
Created July 22, 2013 15:57
Use HTMLAgility Pack to parse out the Vine Thumbnail meta attribute
var thumbnailUrl = string.Empty;
var hw = new HtmlWeb();
var doc = hw.Load("https://vine.co/v/b3V1zmK2dv3");
foreach (var metatags in doc.DocumentNode.SelectNodes("//meta"))
{
if (metatags.Attributes["property"] != null && metatags.Attributes["property"].Value == "twitter:image")
{
thumbnailUrl = metatags.Attributes["content"].Value;
}