Skip to content

Instantly share code, notes, and snippets.

View vogler's full-sized avatar

Ralf Vogler vogler

  • Munich, Germany
  • 06:38 (UTC +02:00)
View GitHub Profile
@vogler
vogler / Artillery-Genius.md
Last active December 27, 2023 12:48
Artillery Genius Config

image

Software

  • Mainboard firmware: Marlin 2.0.9.2 (fork with config, see Marlin/Configuration{,_adv}.h)
    • diff: nvim -d {Marlin,config/Artillery/Genius}/Configuration.h, same for Configuration_adv.h
      • mostly calibration, new extruder and noise-free PWM for parts fan
      • LIN_ADVANCE instead of S_CURVE_ACCELERATION (don't work together)
    • before 13.11.2020: Marlin 2.0.5.3 (3dprintbeginner) (branch)
  • TFT firmware: artillery_tft_fw_1.27.x_patch_9.2 (digant@thingiverse) (TFT-config.ini)
    • Put in Marlin mode (long press, persists on reboot) when printing with OctoPrint because TFT shares serial connection.
@vogler
vogler / sound.stories.instagram.tamper.js
Last active January 7, 2024 16:26
Tampermonkey: Instagram: enable sound in stories
// ==UserScript==
// @name Instagram: unmute stories
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/275939bf98efa9ccfd204c0145e1e658/raw/sound.stories.instagram.tamper.js
// @version 0.8
// @description Clicks the button to enable sound in stories. I want to have sound by default, but there's no option. Clicking it manually everytime is annoying and you can't even click it before you reach a story with sound.
// @author Ralf Vogler
// @match https://www.instagram.com/*
// only needed for https://www.instagram.com/stories/*, but that would only execute it on reload, not if clicked on a story from the start page (router just changes the URL)
// @grant none
@vogler
vogler / unmute.videos.epicgames.tamper.js
Last active March 31, 2022 19:56
Tampermonkey: Epic Games: enable sound in videos
// ==UserScript==
// @name Epic Games: unmute videos
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/89e16a9fd170d387aa57c6134a93aa57/raw/unmute.videos.epicgames.tamper.js
// @version 0.2
// @description Clicks the button to enable sound in videos since they start muted by default.
// @author Ralf Vogler
// @match https://store.epicgames.com/*
// @grant none
// ==/UserScript==
@vogler
vogler / esc-to-close.wertpapiere.ing.de.tamper.js
Last active February 11, 2022 13:02
ING watchlist news: make escape key close popups
// ==UserScript==
// @name ING watchlist news: make escape key close popups
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/b0835ed59bbac093c318c28d9af8d9f9/raw/esc-to-close.wertpapiere.ing.de.tamper.js
// @version 0.1
// @description ING watchlist news: make escape key close popups
// @author Ralf Vogler
// @match *://wertpapiere.ing.de/*
// @grant none
// ==/UserScript==
@vogler
vogler / add-rel-next-prev.mydealz.de.tamper.js
Last active April 6, 2022 10:33
mydealz: add rel=next/prev for Nächste/Vorherige Seite
// ==UserScript==
// @name mydealz: add rel=next/prev for Nächste/Vorherige Seite
// @description mydealz: add rel=next/prev for Nächste/Vorherige Seite
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/d3b4622033837df8597fb2ab993888a8/raw/add-rel-next-prev.mydealz.de.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://www.mydealz.de/deals/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=mydealz.de
// @grant none
@vogler
vogler / color-repo-labels.github.com.tamper.js
Created April 10, 2022 23:00
GitHub: repos labels: green for public, red for private
// ==UserScript==
// @name GitHub: repos labels: green for public, red for private
// @description GitHub: repos labels: green for public, red for private
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/6510191f5bd5f790048a68b11014ca35/raw/color-repo-labels.github.com.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://github.com/*?tab=repositories*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
@vogler
vogler / ring-download-all-videos.js
Last active August 2, 2023 04:26
Download all Videos in Ring Event History
// Even with a subscription, videos are saved online only for 3 months.
// Downloading videos manually is a pain since you can only select 50 at a time, and 'Select Multiple' only has up to 'First 100'.
// 1. Go to https://account.ring.com/account/activity-history
// 2. Click button 'Manage'.
// 3. Scroll down in the event list to load as many events as you want.
// 4. Open Chrome Dev Tools (cmd+alt+i) and open Console to paste the following:
f = (xs, i) => {
const n = xs.length;
xs.slice(Math.max(0, n-i*50), Math.max(0, n-(i-1)*50)).map(x => x.click());
@vogler
vogler / ChromeOS-youtube-dl-watchlater.md
Last active August 21, 2022 20:33
Chrome OS: download YouTube Watch later videos

Download YouTube Watch later videos on Chrome OS

The command I use on macOS fails on Chrome OS since the Linux container can not access the Chrome profile to get the cookies:

$ yt-dlp --cookies-from-browser chrome --max-downloads 10 --sponsorblock-remove default :ytwatchlater
[Cookies] Extracting cookies from chrome
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
@vogler
vogler / youtube-progress-always.tamper.js
Last active June 10, 2023 07:51
Tampermonkey: YouTube: always show an additional progress bar below the video (not just on mouse move or pause)
// ==UserScript==
// @name YouTube: always show a progress bar
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/f0bba0a52a6fed61afab19245e72b5d4/raw/youtube-progress-always.tamper.js
// @version 0.5
// @description YouTube: always show an additional progress bar below the video (not just on mouse move or pause)
// @author Ralf Vogler
// @ match https://www.youtube.com/watch?v=* // this will not work if you open youtube.com and then click on a video since it is a SPA
// @match https://www.youtube.com/*
// @grant none
@vogler
vogler / gmail-meet-navbar.tamper.js
Last active May 12, 2023 13:26
Tampermonkey: Gmail: hide/move left Mail/Meet navbar
// ==UserScript==
// @name Gmail: hide/move left Mail/Meet navbar
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/f0e4df4a6fcf5a874f726c45f7440fb0/raw/gmail-meet-navbar.tamper.js
// @version 0.1
// @description Gmail: the navbar only contains two buttons (of which I never use the Meet button) and wastes 68px width -> hide it or move buttons to the bottom.
// @author Ralf Vogler
// @match https://mail.google.com/mail/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none