I am not responsible, directly or indirectly for the loss of funds using these commands. Use at your own risk.
alias lrecv="lncli listchannels | jq '[ .channels | .[] | select(.total_satoshis_received|tonumber>0) ]'"
#!/bin/bash | |
fileogg=$1 | |
name=${fileogg%.ogg} | |
file=$name.flac | |
ffmpeg -i $fileogg -ar 16000 $file 2>/dev/null | |
gsutil cp $file gs://transcribe | |
gcloud ml speech recognize-long-running gs://transcribe/$file --sample-rate 16000 --encoding flac --language-code='sk-SK' --async > $$.id | |
id=`jq -r .name < $$.id ` | |
gcloud ml speech operations wait $id > $name.json |
const explorers = require('bitcore-explorers') | |
const insight = new explorers.Insight('https://test-bch-insight.bitpay.com') | |
const bch = require('bitcoincashjs') | |
const buf = new Buffer('__your_64_bit_private_key__', 'hex') | |
const privateKey = new bch.PrivateKey(buf, 'testnet') | |
const address = privateKey.toAddress('testnet') | |
insight.getUnspentUtxos(address.toString(), function (error, utxos) { | |
if error { |
module.exports = { | |
promisify: function (web3) { | |
// Pipes values from a Web3 callback. | |
var callbackToResolve = function (resolve, reject) { | |
return function (error, value) { | |
if (error) { | |
reject(error); | |
} else { | |
resolve(value); | |
} |
# Don't show errors which contain full path diclosure (FPD) | |
# Use that line only if PHP is installed as a module and not per CGI | |
# try using a php.ini in that case. | |
# Change mod_php5.c to mod_php7.c if you are running PHP7 | |
<IfModule mod_php5.c> | |
php_flag display_errors Off | |
</IfModule> | |
# Don't list directories | |
<IfModule mod_autoindex.c> |
#!/usr/bin/env ruby -wKU | |
# Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
# Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
# Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
# – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
# – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
# – make smart typography processing optional (set SMARTY to 'false' to bypass processing; | |
# note smart typography cannot be disabled in MMD 3.0 and 3.0.1 | |
# – handle both smart typography processing scripts (ie. SmartyPants.pl) |