This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import mimetypes | |
import os | |
import subprocess | |
import requests | |
# Configuration | |
SCHEME = "qbzdl" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will browse a Slack export folder and generate an aria2 input file to download all files to an "attachments" folder in each channel folder. | |
# | |
# HOW TO: | |
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export) | |
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/) | |
# 3. Place this file at the root of your Slack export folder, next to channels.json | |
# 4. Run `bash slack-downloader.sh` in your terminal | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
~ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. # | |
# # |