Skip to content

Instantly share code, notes, and snippets.

View russkel's full-sized avatar
😴
likely tired

Russ russkel

😴
likely tired
View GitHub Profile
@bulljit
bulljit / removecompletedtorrents.sh
Created January 22, 2011 23:17
Transmission-Daemon: Remove Completed Torrents
#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/home/mjdescy/media # the folder to move completed downloads to
# …or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces
# use cut to get first field from each line
@stoermerjp
stoermerjp / dronemapper_buildmosaic.sh
Created July 12, 2012 12:24
DroneMapper.com: Automated 2D Mosaic Construction using Hugin/Panotools
#!/bin/bash
###
### DroneMapper.com
### Jon-Pierre Stoermer 04-01-2012
###
### Cleanup
rm ./project_*.tif
rm ./project.pto
@stoermerjp
stoermerjp / dronemapper_buildgdalmosaic.sh
Created July 12, 2012 13:30
DroneMapper.com: Basic Geo-referenced Mosaic Construction w/ GDAL (projection)
#!/bin/bash
###
### JP Stoermer
### DroneMapper.com
###
### Clean up
rm -rf ./*._tif
rm -rf ./mosaic.tif
@Schnouki
Schnouki / popcorntime-vpn.sh
Last active November 12, 2024 00:33
OpenVPN for a single application using network namespaces -- helper scripts
#!/usr/bin/env zsh
# Initialize VPN
sudo vpnns up
sudo vpnns start_vpn
# Popcorn time!
sudo ip netns exec frootvpn sudo -u $USER popcorntime
# Cleanup
@russkel
russkel / aliases.sh
Last active April 19, 2019 00:55
Handy aliases
# obtains external IP address
alias whatismyip="curl -s ipecho.net/plain | xargs -0 echo"
# linux xorg copy/paste implementation - mirroring the macos commands
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
# pipe the destination machines clipboard to local clipboard
alias osxnetwork-paste='ssh OSX_MACHINENAME.local pbpaste | pbcopy'