Skip to content

Instantly share code, notes, and snippets.

@darekkay
darekkay / trakt-backup.php
Last active May 10, 2024 23:16
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";
<?php
/*
Backup script for trakt.tv.
Live demo: http://eclectide.com/blog/2014/08/12/trakt-tv-backup/
*/
// You can find your personal api key under:
// https://trakt.tv/api-docs/authentication
<?php
########################################################################
### Trakt.tv backup script
######## By: ###########################################################
### darekkay / areon
######## Current version: ##############################################
### 2.0
######## api version: ##################################################
### v2
######## Additional Comments: ##########################################
@leosuncin
leosuncin / JDownloader2.sh
Last active May 28, 2024 09:44
JDownloader 2 headless startup script
#!/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/var/run/$NAME.pid
COMMAND="/usr/bin/java -- -Djava.awt.headless=true -jar /home/osmc/jDownloader2/JDownloader.jar"
RUN_AS=osmc
d_start() {
start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND
@sultanqasim
sultanqasim / zram.sh
Created June 21, 2016 02:41
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Raspberry Pi ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm
@WtfJoke
WtfJoke / jd.sh
Last active August 19, 2021 09:51
JDownloader 2 headless startup script (starts jdownloader as non root user jd)
#! /bin/sh
### BEGIN INIT INFO
# Provides: JDownloader2
# Required-Start: networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: JDownloader2 server daemon
# Description: JDownloader2 server daemon
### END INIT INFO
@BKPepe
BKPepe / jd.sh
Last active January 15, 2020 06:47 — forked from WtfJoke/jd.sh
JDownloader 2 headless startup script (starts jdownloader as non root user jd)
#! /bin/sh
### BEGIN INIT INFO
# Provides: JDownloader2
# Required-Start: networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: JDownloader2 server daemon
# Description: JDownloader2 server daemon
### END INIT INFO
@RupGautam
RupGautam / rclone+filebot.md
Last active May 10, 2020 11:47
Rclone Script

Filebot

Tv Shows

filebot -script fn:amc "/home/docker/transmission/downloads/complete" --db TheTVDB --action move --conflict override -non-strict -r --output "/home/docker/transmission/downloads/media" --format "{episode.special ? 'Specials' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{ext=='srt' ? ".en" : ''}" --log all --def unsorted=y music=y artwork=y

Movies

filebot -script fn:amc "/root/Media/" --db TheMovieDB --action move --conflict override -non-strict -r --output "/root/Downloads/movies" --format "{n} ({y})/{n} ({y}){ext=='srt' ? ".en" : ''}" --log all --def unsorted=y music=y artwork=y
@AveYo
AveYo / @ batch scripts for power users.md
Last active May 18, 2024 02:01
Windows batch scripts for power users

windows_update_toggle.bat v10.1 final
~ one script to rule them all!
~ block build upgrades and/or automatic updates without breawking Store downloads and Defender protection updates
~ there is a lot of focus on Defender updates working independently, unlike any other updates "management" solution
~ ifeo safe blocking with no destructive changes of ownership, deleting files, removing tasks, or over-blocking
~ toggle everything from the Desktop right-click context menu!
but wait, there is more:
~ hide/unhide/install update lists with counter at the Desktop right-click context menu!

Previous update toggle batch suite scripts have been overwritten on pastebin, but will still be available here:

@mcevskb
mcevskb / trakt-remove-history.js
Last active July 8, 2021 21:07 — forked from hugoboos/trakt-remove-history.js
Remove duplicate episodes from Trakt
// Run in console on the history page (http://trakt.tv/users/<username>/history)
// Will remove all the duplicate episodes, on that page, from the watched history.
var episodesRemoved = []
// episodeItems = $("[data-type=episode]")
episodeItems.each(function(){
var $this = $(this);
var episodeId = $this.data('episode-id')
var showId = $this.data('show-id')