Skip to content

Instantly share code, notes, and snippets.

@babelop
babelop / CODECOMMIT-WEBHOOK.js
Created February 1, 2017 20:49
CodeCommit Webhook for AWS Lambda
'use strict';
const url = require('url');
const https = require('https');
exports.handler = (event, context, callback) => {
let webhook_url = event.Records[0].customData;
if (!webhook_url) {
let error = new Error("Web-hook URL not provided as custom data.");
callback(error)
{
"issue": [
{
"id": "TEST-1",
"entityId": "85-15",
"jiraId": null,
"field": [
{
"name": "projectShortName",
"value": "TEST"

Plex Automatic Updates (UNIX/RPM)

Installation

  1. Create a working directory for your updates, ex: /root/scripts/plex-update/
  2. Download a copy of plex-update.sh and make it executable
  3. Find your Plex Token
  4. nano plex-update.sh and set the PLEX_TOKEN variable
  5. Test the script ./plex-update.sh
  6. Schedule the updates regularly:

Keybase proof

I hereby claim:

  • I am babelop on github.
  • I am binarybabel (https://keybase.io/binarybabel) on keybase.
  • I have a public key whose fingerprint is D942 5C80 5070 A3E4 CCC4 86AF A90F C51C D52D D5DB

To claim this, I am signing this object: