Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Auto Close Slack Tab on Redirect
// @namespace https://*.slack.com/archives/*
// @version 0.3
// @description Auto close Slack's "We’ve redirected you to the desktop app." tabs.
// @author Tim Kersten
// @match https://klarna.slack.com/archives/*
// @grant none
// @homepageURL https://gist.github.com/io41/304b1af0f83f82dd4408612b31bb25b5
// @updateURL https://gist.github.com/io41/304b1af0f83f82dd4408612b31bb25b5/raw/auto-close-slack-tab-on-redirect.user.js
@io41
io41 / no-toolbars-for-slack-lists.user.js
Last active August 5, 2024 11:51
No toolbars for slack lists (Toggleable), aka Fullscreen Lists userscript. Published to: https://greasyfork.org/en/scripts/501755-no-toolbars-for-slack-lists-toggleable
// ==UserScript==
// @name No toolbars for slack lists (Toggleable), aka Fullscreen Lists
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Hides toolbars for any given Slack List, toggleable with Command + . Useful when combined with Chrome's ability to turn any webpage into an App.
// @author Tim Kersten
// @match https://app.slack.com/client/*/lists
// @grant GM_addStyle
// @homepageURL https://gist.github.com/io41/7ff3dfa815dd7566237234f7b699a529
// @downloadURL https://update.greasyfork.org/scripts/501755/No%20toolbars%20for%20slack%20lists%20%28Toggleable%29%2C%20aka%20Fullscreen%20Lists.user.js
@io41
io41 / .rgr.zsh
Last active July 4, 2023 12:47
ripgrep (rg) replace all files inplace, just like sed -i
# install ripgrep & moreutils (for the sponge tool) See https://www.putorius.net/moreutils.html
# On mac: brew install moreutils ripgrep
# Source this file in your zsh config by adding `source .rgr.zsh` to your .zshrc
function rgr() {
local context_lines=2
local search="$1"
local replace="$2"
shift 2