Skip to content

Instantly share code, notes, and snippets.

View Maxr1998's full-sized avatar
🏠
Working on Niagara Launcher and Jellyfin!

Max Rumpf Maxr1998

🏠
Working on Niagara Launcher and Jellyfin!
View GitHub Profile
@Maxr1998
Maxr1998 / eac_log_to_musicbrainz_discid.py
Last active January 12, 2024 22:23 — forked from kolen/eac_log_to_musicbrainz_discid.py
Reads EAC log, generates musicbrainz disc TOC listing for use as discid. Opens browser with discid query on musicbrainz.org.
#!/usr/bin/python
"""
Reads EAC log, generates musicbrainz disc TOC listing for use as discid.
Opens browser with discid query on musicbrainz.org.
Warning: may work wrong for discs having data tracks. May generate wrong results on other non-standard cases.
MIT License
Copyright (c) 2018 Konstantin Mochalov
// ==UserScript==
// @name Qobuz audio volume limiter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Limits the usually way too load audio previews on Qobuz to a more sensible value
// @author Maxr1998
// @match https://www.qobuz.com/*/album/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=qobuz.com
// @downloadURL https://gist.githubusercontent.com/Maxr1998/d376ccbd08eade9f6551220de358644c/raw/242f1192b82a601028d33892edd10a19e337adad/qobuz_audio_volume_limiter.user.js
// @grant none
// ==UserScript==
// @name Disable YouTube playlists
// @description Remove playlist part from watched videos
// @namespace https://gist.github.com/Maxr1998/f07175ad05ed5c783da9b98bceee61a6
// @downloadURL https://gist.github.com/Maxr1998/f07175ad05ed5c783da9b98bceee61a6/raw/2b47f9d7949f95b1b6e50f3be79d49ac48f95af7/disable_youtube_playlists.user.js
// @updateURL https://gist.github.com/Maxr1998/f07175ad05ed5c783da9b98bceee61a6/raw/2b47f9d7949f95b1b6e50f3be79d49ac48f95af7/disable_youtube_playlists.user.js
// @author Maxr1998
// @version 0.1.1
// @match *://*.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
@Maxr1998
Maxr1998 / takeout-to-borg.sh
Last active May 30, 2022 18:18
Script that allows to stream Google Takeout tar archives into borg, to download the archives on a high-bandwidth VPS and only copy the changes to your NAS.
#!/bin/bash
# Target repository on your NAS
export BORG_REPO="ssh://user@host/..."
# Disable prompts that would break the script
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
# Direct download links to the Google Takeout archives, extract with your browser's network debugger (F12).
@Maxr1998
Maxr1998 / todoist-cleaner.py
Last active February 21, 2023 13:18
Python script to delete completed tasks from your Todoist Inbox
import todoist
api = todoist.TodoistAPI(token='<your_token_here')
# Initial sync of your account
api.sync()
# Find Inbox in project - can be adapted to delete completed tasks for other projects as well
projects = api.projects.all()
inbox = next(p for p in projects if 'inbox_project' in p)
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2018 Chris Magnussen, Elior Boukhobza and Maxr1998
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
@Maxr1998
Maxr1998 / autocopy.sh
Last active September 20, 2015 13:36
Android Drawable Autocopy
#!/bin/bash
###############################################################################
# Android Drawable Autocopy #
# Copyright (C) 2015 Max Rumpf alias Maxr1998 #
# #
# 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 3 of the License, or #
# (at your option) any later version. #
# #