Skip to content

Instantly share code, notes, and snippets.

@Flashwalker
Flashwalker / flatpak-theme-takeover.sh
Last active January 16, 2023 01:27
Copy and set your current GTK3 theme over another's Flatpak theme
#!/bin/bash
# Copy and set your current GTK3 theme over another's Flatpak theme.
# It's like a raider takeover of some Flatpak theme 😁 🙃.
# NOTICE: some Flatpak theme must be already installed.
#
# What if you set your custom GTK3 theme for your desktop and want it for Flatpak?
# Use this script to takeover of another's Flatpak theme and set it!
USAGE(){
@Flashwalker
Flashwalker / open-url-prompt.user.js
Last active May 2, 2023 15:10
Open url alert prompt userscript
// ==UserScript==
// @name Open url prompt
// @version 0.0.3
// @match *://*/*
// @author Flashwalker
// @description Press Ctrl+Shift+: or Ctrl+Shift+' to open location prompt
// @updateURL https://gist.githubusercontent.com/Flashwalker/c02e28809a897c4955f34e271db0e427/raw/open-url-prompt.user.js
// @downloadURL https://gist.githubusercontent.com/Flashwalker/c02e28809a897c4955f34e271db0e427/raw/open-url-prompt.user.js
// @homepage https://gist.github.com/Flashwalker/c02e28809a897c4955f34e271db0e427
// ==/UserScript==
@Flashwalker
Flashwalker / yandex-dzen-dark-theme.user.js
Last active April 2, 2023 06:47
Set the dark theme on Yandex dzen
// ==UserScript==
// @name Yandex dzen dark theme
// @namespace http://tampermonkey.net/
// @version 0.0.3
// @description Set the dark theme on Yandex dzen
// @author You
// @match http*://dzen.ru/*
// @match http*://*.dzen.ru/*
// @match http*://*.*.dzen.ru/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=dzen.ru
@Flashwalker
Flashwalker / readme.md
Last active August 16, 2025 07:05
Switch input-remapper presets

Usage:

Cycle toggle all presets

$ switch-preset-mxmaster3s.sh

Toggle to specific preset

$ switch-preset-mxmaster3s.sh 
@Flashwalker
Flashwalker / Disable Ryzen turboboost.md
Created March 5, 2024 12:29
Disable Ryzen turboboost

Disable Ryzen turboboost

Tests first

Check if turboboost is active

$ sudo cpupower frequency-info | grep 'boost state support' -A2 | grep Active

Active: yes ❌

Check the current driver