Skip to content

Instantly share code, notes, and snippets.

View gravelfreeman's full-sized avatar

Freeman gravelfreeman

View GitHub Profile
@gravelfreeman
gravelfreeman / torrent-complete.sh
Created April 26, 2023 16:39 — forked from paul-chambers/torrent-complete
Helper script for deluge or qBittorrent. It hardlinks completed torrents into a destination folder. It also unrars it, if it includes a rar archive.
#!/bin/bash
# Helper script for deluge or qBittorrent bittorrent clients
# Intended to be run when the torrent download completes
#
# for qBittorrent, enable 'Run external program on torrent completion' under 'Downloads' in the options dialog.
# in the text field, enter:
#
# <path to>/torrent-complete.sh "%K" "%N" "%D"
#
@gravelfreeman
gravelfreeman / TwitchTvEmbedOnlyWhenLive.html
Created February 14, 2023 20:02 — forked from TheCyberQuake/TwitchTvEmbedOnlyWhenLive.html
A simple script for embedding Twitch stream only when the channel is live, otherwise it is hidden.
<html>
<head>
<style>
.hide { display:none; }
/* Optional: The following css just makes sure the twitch video stays responsive */
#twitch {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;