Skip to content

Instantly share code, notes, and snippets.

View tesla-srt's full-sized avatar

Nick Delfico tesla-srt

View GitHub Profile
@tesla-srt
tesla-srt / sample.service
Created March 16, 2024 18:56
sample unit
[Unit]
Description=hello_env.js
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/node /home/ubuntu/hello_env.js
Restart=on-failure
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2009 Christophe Dumez <[email protected]>
*
* 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.
*
* This program is distributed in the hope that it will be useful,
@tesla-srt
tesla-srt / announce.py
Created October 8, 2023 16:57
qBitTorrent Discord Announcer
import argparse
import subprocess
from discord_webhook import DiscordWebhook, DiscordEmbed
"""
QBittorrent Discord Webhook
Version: 1.0
This script will send a notification to Discord via webhook, that your download are finished.
@tesla-srt
tesla-srt / Emby-Update.sh
Last active August 26, 2023 04:40
[EMBY UPDATE] A short script to shutdown Emby-Server download latest package and install
#!/bin/bash
OF=$(wget -q -O- https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | jq -r '.name')
FTR="emby-server-deb_"$OF"_amd64.deb"
STR="https://github.com/MediaBrowser/Emby.Releases/releases/latest/download/"$FTR
systemctl stop emby-server
wget $STR
dpkg -i $FTR
systemctl start emby-server
rm $FTR
<html><head><style>
/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;vertical-align:baseline;background:transparent;margin:0;padding:0;}
/* BASIC */