Skip to content

Instantly share code, notes, and snippets.

Avatar

Ismael Nobre ianobre

View GitHub Profile
@ianobre
ianobre / removecompletedtorrents.sh
Created Feb 26, 2020 — forked from ffcruz85/removecompletedtorrents.sh
Transmission-Daemon: Remove Completed Torrents
View removecompletedtorrents.sh
#!/bin/bash
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/data/complete
USER=YOUR_USER_NAME
PASS=YOUR_PASS
# 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
TORRENTLIST=`transmission-remote -n $USER:$PASS --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited -d ' ' --fields=1`
@ianobre
ianobre / .gitconfig
Created Apr 1, 2019 — forked from Wirone/.gitconfig
GIT & GitFlow aliases for ~/.gitconfig
View .gitconfig
# GIT aliases for ~/.gitconfig file
# @author Grzegorz Korba <grzegorz.korba@codito.net>
# Credits: Miscellaneous places on the Internet...
# GitFlow related sections
[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
@ianobre
ianobre / helpful-docker-commands.sh
Created Oct 18, 2018 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
View helpful-docker-commands.sh
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
You can’t perform that action at this time.