Skip to content

Instantly share code, notes, and snippets.

View index.html
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<!-- This file was created with the aha Ansi HTML Adapter. -->
<html xmlns="">
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
bdmorin / putio_blackhole_uploader.bash
Last active Mar 10, 2021
my blackhole solution for & sonarr
View putio_blackhole_uploader.bash
#!/usr/bin/env bash
# authornote: i need to change all mentions of blackhole -> transferdir or something
# tested on macos, YMMV
# Gist:
# Set ur putio oath token
OAUTH_TOKEN=$(cat ${HOME}/.putio_oauth)
bdmorin / comcast injection.diff
Created Nov 29, 2018
Comcast forces PROXY connections for unencrypted traffic.
View comcast injection.diff
< <script language="JavaScript" type="text/javascript">
< // Copyright (C) 2017 Comcast Cable Communications, LLC
< // Contact Us:
< // Intended use of this message is to display critical and time sensitive notifications to customers.
< /*
< This program is free software; you can redistribute it and/or
< modify it under the terms of the GNU General Public License
< as published by the Free Software Foundation; either version 2
< of the License, or (at your option) any later version.
# Yes you can do this in ansible
jdir = "~/jupyterLocal"
mkdir -p ${jdir}
pip install virtualenv
pip install virtualenvwrapper
bdmorin / prometheus.yml
Created Jun 15, 2018 — forked from skreuzer/prometheus.yml
smokeping style metrics in prometheus
View prometheus.yml
evaluation_interval: 15s
- smokeping.rules
- job_name: 'blackbox_icmp'
metrics_path: /probe
module: [icmp]
scrape_interval: 1s
bdmorin / ELLL20180530.ipynb
Last active May 30, 2018
View ELLL20180530.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
bdmorin /
Created Dec 29, 2017 — forked from 0xcaff/
OpenVPN, rTorrent and Flood Docker Compose Configuration

The Setup

This is a docker-compose file for a simple, secure torrent setup. It includes [rTorrent] (a torrent client), [flood] (a web interface for rTorrent), [OpenVPN] (to tunnel traffic through your ISP) and a simple iptables firewall to allow rTorrent to only access the internet through a VPN.

To run everything, put your open vpn configuration file in ./vpn.ovpn and the other configuration files from this gist in a directory then go to that

bdmorin /
Created Apr 20, 2017 — forked from byllc/
This does something essentially equivalent to if you have a publicly facing server...

This is basically diy ngrok

Usage: show

function show() {
    ssh -tR 1080:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80: localhost"

2014-07-14 Reverse SSHFS mounts (fs push)

sshfs is a neat way of mounting a file system from one machine to another over an encrypted ssh channel. However, for machine CLIENT to access a file system that resides on machine HOST, CLIENT must generally be able to log in to HOST. In addition, CLIENT must be able to connect to HOST in the first place, though a tunnel from HOST to CLIENT can easily mediate this if a connection can only be initiated in that direction.

However, the login itself may still be an issue. You might not want to type your password for HOST on CLIENT, or set up a keyless login using public/private keys. You might not entirely trust CLIENT, from which you want to access the file system. dpipe to the rescue.

Using dpipe, available in the “vde2” package on Debian (and, likely, derivatives), you can initiate the connection the other way and use sshfs in “slave mode”, in which it communicates over standard input and output instead o