Skip to content

Instantly share code, notes, and snippets.

View alexose's full-sized avatar

Alexander Ose alexose

  • Parse.ly
  • Jacksonville, Oregon
View GitHub Profile
@alexose
alexose / README.md
Created August 28, 2017 05:16 — forked from calvinmetcalf/README.md
Reprojected Raster Tiles
@alexose
alexose / assertions-compareScreenshot.js
Created January 15, 2018 16:34 — forked from umarmw/assertions-compareScreenshot.js
Nightwatch with Visual Regression testing
// location: ./assertions/compareScreenshot.js
var resemblejs = require('node-resemble-js'),
fs = require('fs');
exports.assertion = function(filename, expected) {
var screenshotPath = 'test/screenshots/',
baselinePath = screenshotPath + 'baseline/' + filename,
resultPath = screenshotPath + 'results/' + filename,
diffPath = screenshotPath + 'diffs/' + filename;
@alexose
alexose / keybase.md
Created July 20, 2018 01:19
keybase.md

Keybase proof

I hereby claim:

  • I am alexose on github.
  • I am alexose (https://keybase.io/alexose) on keybase.
  • I have a public key ASAhtsPORvCBn7MyJcmks4HZpcK9E1yFUIKzW9fXyAnNMAo

To claim this, I am signing this object:

@alexose
alexose / index.js
Last active December 21, 2021 17:49
Plex livetv cli tuner
const PlexAPI = require("plex-api");
const spawn = require("child_process").spawn;
const http = require("http");
const identifier = "cli12345";
const session = "123456789";
const dvr = 7; // Find by querying '/livetv/dvrs' and looking for tv.plex.providers.epg.cloud:<number>
const channel = process.argv[2];
if (!channel) {
@alexose
alexose / youtube2podcast.js
Last active November 29, 2023 18:32
Simple YouTube to Podcast RSS (Node.js)
/*
* YouTube to Podcast using Node.js and not much else
*
* I got annoyed by all of the clunky and/or paid solutions to this problem, so I
* thought I'd just roll my own. My guess was that it'd be about 200 lines of code,
* and I wasn't too far off. It's not perfect but it works and it's relatively easy
* to follow.
*
* No half-hour Docker installs or 20gb Go libraries to download. Just throw it on a
* free EC2 micro server and serve the files using nginx like the good ol days. It