Skip to content

Instantly share code, notes, and snippets.

View BluSyn's full-sized avatar

Steven Bower BluSyn

View GitHub Profile
@BluSyn
BluSyn / dvplexfix.sh
Last active February 6, 2024 03:50
Converts Dolby Vision Profile 5 encoded video files into format acceptable to Plex
#!/bin/bash
origfile="$(realpath "${1}")"
basefile="$(basename "${origfile}")"
basedir="$(dirname "${origfile}")"
ext="${basefile##*.}"
newfile="$(basename -s "${ext}" "${origfile}")nodv.${ext}"
echo "Transcoding File ${basefile} in ${basedir}..."
/**
* cache.js - es6 proxy cacher
* Copyright (c) 2019, Steven Bower (MIT License).
*/
'use strict';
/**
* Cache for Clients and Wallets
* Use with ES6 Proxy:
* eg, new Proxy(WalletClient, new Cache());
@BluSyn
BluSyn / update-secret.sh
Last active June 29, 2018 19:11
Update docker swarm secrets
#!/bin/bash
## Update specific secret by name
## (Seriously, this is annoying and should be baked in docker stack deploy)
## Call with env + secret file path, exactly as defined in docker-compose.yml
## Eg: ./update-secret.sh master ./secrets/worker/worker.json
## Dependencies: yq and jq
## yq - pip install yq
## jq - pacman -Sy jq
### Keybase proof
I hereby claim:
* I am blusyn on github.
* I am blusyn (https://keybase.io/blusyn) on keybase.
* I have a public key whose fingerprint is CED1 0C41 AA0B D389 2373 4F40 6DA2 2FB7 B442 87D9
To claim this, I am signing this object:
/**
* FOR COPAY WALLET
* Converts multisig xpubs into addresses
*
* Dependencies:
* npm install bitcore
*
* NOTE: You can retrieve xpubs from copay using JSON backup
* Decrypt json backup using sjcl @ https://github.com/bitwiseshiftleft/sjcl
*/
@BluSyn
BluSyn / derive.js
Last active January 28, 2021 20:21
Bitcoin BIP39 mnemonic seed to extended MPK (watch-only public key)
/**
* Converts mnemonic recovery seed
* into xpub for watch-only services
*
* Dependencies:
* npm install bitcore bitcore-mnemonic
*/
var bitcore = require('bitcore');
var bitcoreMnemonic = require('bitcore-mnemonic');
@BluSyn
BluSyn / gist:9998f668a6732a700cbb
Created January 7, 2015 00:29
onename verification
Verifying that +blusyn is my openname (Bitcoin username). https://onename.io/blusyn