simple uploader script for deluge, assign this script to be called on torrent complete and it will walk a directory and upload it to your google drive
install dependencies:
npm install googleapis async winston lodash mime twilio
<?php | |
define("BENCH_ITERATIONS", 1000); | |
$scenarios = []; | |
// scenario one | |
$scenarios['one'] = function () { | |
$start = microtime(true); | |
// do stuff in between the microtimes | |
return microtime(true) - $start; |
'use strict' | |
const blacklist = [ | |
/analytics/, | |
/fullstory/, | |
/amplitude/, | |
/crashlytics\.com/, | |
/doubleclick\.net/, | |
/chartbeat\.(net|com)/, | |
/deepintent\.com/, |
package main | |
import ( | |
// "io/ioutil" | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"os/exec" |
I hereby claim:
To claim this, I am signing this object:
{ | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"access", | |
"where" | |
], | |
"properties": { | |
"access": { | |
"type": "string", |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"math" | |
"os" | |
"strconv" | |
"strings" | |
"text/template" |
#!/bin/bash | |
goto() { | |
# create the shortcuts dir if necessary | |
if [ ! -d "$HOME/.shortcuts" ] ; then | |
mkdir -p "$HOME/.shortcuts" | |
fi | |
if [[ "$1" == "--list" ]] ; then | |
for f in "$HOME/.shortcuts/"* ; do | |
echo "$(basename "$f") -> $(tr -d '\n' < "$f")" |
var debug = require("debug")("torrent:read"); //npm install debug | |
var bencode = require("bencode"); //npm install bencode - https://en.wikipedia.org/wiki/Bencode | |
var fs = require("fs"); | |
var crypto = require("crypto"); | |
var _ = require("underscore"); //npm install underscore | |
var percent_encoding = { | |
encode: function(buffer) { | |
var ret = "", a2z, AtoZ, zero2nine, other_valid_symbols, all_unreserved_symbols; |