The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
As of 079ecd7 (2014-11-19), the hook script is now integrated into mpv and will be avaiblable when compiled with LUA support. It is (currently) disabled by default, to enable it add --ytdl=yes to your command-line or ytdl=yes to your mpv.conf.
| # Read full instructions here: http://tmblr.co/ZdZmSx1TH7iuF | |
| # User setup, you should edit this if it differs (NO TRAILING SLASH!): | |
| RTORRENT_INSTALL_DIR='/volume1/@appstore/rutorrent' | |
| RTORRENT_SCRIPT_PATH='/var/packages/rutorrent/scripts/start-stop-status' | |
| # Look for the "inet addr" line for ifconfig on the ppp0 device, get | |
| # the actual IP, and assign it to the CURRENT_VPN_IP variable. | |
| # If your VPN is on another network device, replace "ppp0" below with | |
| # your device interface. | |
| CURRENT_VPN_IP=$(ifconfig ppp0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}') |
| require 'formula' | |
| class ZshNotify < Formula | |
| homepage 'https://github.com/marzocchi/zsh-notify' | |
| head 'https://github.com/marzocchi/zsh-notify.git' | |
| depends_on 'terminal-notifier' | |
| def install | |
| prefix.install Dir['*'] |
| # /etc/sysconfig/transmission-daemon | |
| INTERFACE=ppp0 # Set this to the interface you want the daemon to bind to | |
| if /sbin/ifconfig $INTERFACE >>/dev/null 2>&1; then | |
| BIND_ADDR="`/sbin/ifconfig $INTERFACE | awk '$1 == \"inet\" {print $2}' | awk -F: '{print $2}'`" | |
| else | |
| BIND_ADDR="127.0.0.1" | |
| fi |
#README:
This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm
##Installation:
You need:
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| #!/bin/bash | |
| # vars | |
| IPTABLESFILE="/tmp/iptables.vpn" | |
| # Get openvpn configuration zip from PIA | |
| echo "piavpn: getting openvpn.zip" | |
| mkdir -p /tmp/pia |
| #!/bin/sh | |
| # Script to route traffic from home network through VPN selectively. | |
| # Based off the discussion at http://www.smallnetbuilder.com/forums/showthread.php?t=9311 | |
| # The setup is a Roku box, a Home PC running Plex, and a Synology NAS with a torrent client running a web interface. | |
| # The aim is to have all traffic from Roku go through the VPN, all traffic from the Home PC (and all other devices) bypassing the VPN, | |
| # and the Synology NAS using the VPN. There are however some exceptions. Since Plex uses port 32400, Roku has to bypass the VPN when | |
| # using that port. In addition, port 9091 has to bypass the VPN as well in order to access the Synology torrent client. | |
| # | |
| # Requirements: Asuswrt-Merlin with OpenVPN already set up |
Others have recently developed packages for this same functionality, and done it better than anything I could do. Use the packages instead of this script:
Gargoyle package by @lantis1008
OpenWRT package by @dibdot
In its basic usage, this script will modify the router such that blocked addresses are null routed and unreachable. Since the address blocklist is full of advertising, malware, and tracking servers, this setup is generally a good thing. In addition, the router will update the blocklist weekly. However, the blocking is leaky, so do not expect everything to be blocked.