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 Auto darkmode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Toggle darkmode on supported sites based on your OS's darkmode setting | |
// @author You | |
// @match https://www.tradingview.com/chart/* | |
// @match https://www.coinex.com/* | |
// @exclude https://www.coinex.com/assets/trading_chart/* | |
// @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
#!/bin/bash | |
# rqrcp is a wrapper around 'qrcp receive' which improves desktop integration | |
# by adding support for copying file paths or contents to the clipboard, | |
# opening files in the default application, sending notifications, and using a | |
# GUI window to display the QR code. | |
# | |
# Copyright (C) 2021 Maddison Hellstrom <https://github.com/b0o> | |
# | |
# This program is free software: you can redistribute it and/or modify |
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
# Assorted zsh zle widgets that I've made over the years | |
# (c) 2017-2021 Maddison Hellstrom (github.com/b0o) | |
# License: GPL v3.0 or later | |
## smartie-hands | |
function _smart_l() { | |
local cmd="${1:-l}" | |
local p="" | |
if [[ -n "$BUFFER" ]]; then | |
zmodload -e zsh/pcre || zmodload zsh/pcre |
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
# fzf path finding filesystem navigation thing by maddy (github.com/b0o) | |
# | |
# key bindings: | |
# - return: accept final | |
# - alt-return: accept final (absolute) | |
# - esc: escape | |
# - ctrl-g: escape (absolute) | |
# - alt-o: accept query | |
# - alt-P append query | |
# - ctrl-o: replace query |
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 zsh | |
function _progress_bar() { | |
{ | |
local -i width=$COLUMNS | |
local -i terminfo=1 | |
local -i overwrite=1 | |
local -i head_set=0 | |
local msg="" | |
local progress="step" |
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 Sway Popup Window Detector | |
// @namespace https://maddison.io/ | |
// @version 0.1 | |
// @description Detect "pop-up" windows because for some reason Wayland doesn't have a built-in way to do it??! | |
// @author Maddison Hellstrom <github.com/b0o> | |
// @include /^.*$/ | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
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 | |
awk 'tolower($0) ~ /^[b-df-hj-np-tv-z]*a[b-df-hj-np-tv-z]*e[b-df-hj-np-tv-z]*i[b-df-hj-np-tv-z]*o[b-df-hj-np-tv-z]*u[b-df-hj-np-tv-z]*$/{ print $0 }' words.txt |
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
module { | |
name: "neuron-autoindex", | |
version: "0.1.0", | |
description: "generate hierarchical indices for neuron notes", | |
authors: ["Maddison Hellstrom <[email protected]>"], | |
license: "GPL-3", | |
}; | |
def invert_tags: | |
. |
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 | |
# | |
# ag with logical AND of multiple searches | |
# | |
# Copyright (C) 2020 Maddison Hellstrom <https://github.com/b0o> | |
# | |
# 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. |
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 | |
# iqalc = fzf + qalc ^ love | |
# | |
# (c) 2020 Maddison Hellstrom (github.com/b0o) | |
# | |
# 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. |