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
// ==UserScript==
// @name Hide JIRA Sidebar Reports
// @namespace http://tampermonkey.net/
// @version 2024-06-14.2
// @downloadURL https://gist.github.com/io41/4975d20286203df3b4b75bcb7f0fa2d0/raw/Hide%2520JIRA%2520Sidebar%2520Reports.user.js
// @updateURL https://gist.github.com/io41/4975d20286203df3b4b75bcb7f0fa2d0/raw/Hide%2520JIRA%2520Sidebar%2520Reports.user.js
// @supportURL https://gist.github.com/io41/4975d20286203df3b4b75bcb7f0fa2d0
// @description Hide reports in JIRA sidebar because it offends our delicate sensibilities
// @author Tim Kersten
// @match https://*.atlassian.net/jira/software/c/projects/*/boards/*
@io41
io41 / rosie.sh
Last active January 31, 2024 22:01
Eine hilfreiche wertschätzende KI
#!/bin/bash
#set -F
VOICE=shimmer
AI_NAME=Rosie
RESPONSE_FILE=~/.ai.${AI_NAME}.response
ospeak -v $VOICE "Wie heist du?" > /dev/null 2>&1
read -p "$AI_NAME: Wie heist du? " NAME
ospeak -v $VOICE "Hallo $NAME, ich bin $AI_NAME. Was brauchst du?" > /dev/null 2>&1
echo "$AI_NAME: Hallo $NAME, ich bin $AI_NAME. Was brauchst du?"
TODAY=$(date)
@io41
io41 / wanda.sh
Last active January 31, 2024 22:01
A more enjoyable AI experience when giving support. Be Patient, it takes a little bit of time to respond. Turn your volume up.
#!/bin/bash
# Install ospeak: https://github.com/simonw/ospeak
# Install llm: https://github.com/simonw/llm
# Set your OpenAI key: export OPENAI_API_KEY="..."
ospeak -v nova "What's your name?"
read -p "Wanda: What's your name? " NAME
ospeak -v nova "Hi $NAME, I'm Wanda. What's up?"
@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
@io41
io41 / code.py
Created June 20, 2023 20:34
Circuit Python Example ST7735 LCD backlight fading
import board
import time
import pwmio
print("Hello world!")
class LCD:
_led = None
_led_max = 65535
@property
# dvorak layout
loadkeys dvorak
export HOSTNAME=thinkpad
export DEVICE=/dev/sda
export EFI_PARTITION=/dev/sda1
export ROOT_PARTITION=/dev/sda2
# as root
timedatectl set-ntp true
@io41
io41 / keybase.md
Last active October 24, 2018 14:57

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Secret Santa

Title Header

h1.title {
  color: red;
  text-shadow: 2px 2px #A00;
}
bind @browser