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 / switch-preset-mxmaster3s
Last active May 19, 2024 19:26
Switch input-remapper presets
#!/bin/bash
# Cycle through input-remapper presets
# https://github.com/sezanzeb/input-remapper
## First create presets in input-remapper GUI. Do not use spaces in presets names.
## Edit your device name and default preset name here:
######### Customize this config #######
device='Logitech USB Receiver' # or e.g. 'MX Anywhere 3S Mouse' # See your device name in the GUI
configdir=~/'.config/input-remapper-2'
@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