This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { parse, print } from 'graphql' | |
/** | |
* Merges multiple graphql definitions into a single one | |
* with the ability to merge fields and perform conflict | |
* resolution on types and fields with custom functions | |
*/ | |
export function mergeDefinitions(documents, options) { | |
const types = {}; | |
const opts = Object.assign({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crypto from 'crypto'; | |
// decrypt a v3 databag | |
export function decryptV3(data, key) { | |
try { | |
const decipher = crypto.createDecipheriv( | |
data.cipher.trim(), | |
crypto | |
.createHash('sha256') | |
.update(key.trim()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker pull plexinc/pms-docker | |
docker stop plex | |
docker rm plex | |
# set volumes per your environment | |
docker run \ | |
-d \ | |
--name plex \ |