This file contains 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 sh | |
addstuff=y; true && echo "a b$([ $addstuff = "y" ] && echo \" c\")" | |
# a b" c" | |
addstuff=y; stufftoadd=" c d"; true && echo a b$([ $addstuff = "y" ] && echo $stufftoadd) | |
# a bc d |
This file contains 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
/* ==UserStyle== | |
@name Declutter Outlook | |
@namespace https://github.com/solarkraft | |
@version 1.0.2 | |
@description Remove all the unnecessary junk from the Outlook Web App and polish it a little | |
@author solarkraft | |
==/UserStyle== */ | |
@-moz-document domain("outlook.office.com") { | |
#app > div > div:nth-child(2) { |
This file contains 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
[ | |
// Quickly run tasks | |
{ | |
"key": "cmd+r", | |
"command": "workbench.action.tasks.reRunTask" | |
}, | |
{ | |
"key": "shift+cmd+r", | |
"command": "workbench.action.tasks.runTask" | |
}, |
This file contains 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
# This script automatically handles Syncthing conflicts on text files by applying a | |
# git three-way merge between the previously synced version and each divergent version. | |
# It depends on the watchdog package and git. | |
# For automatic dependency installation when running with ´uv run --script deconflicter.py´: | |
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "watchdog", |
This file contains 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 bash | |
path=$1 | |
check() { | |
file=$1 | |
echo "Checking $file" | |
# Anything matching /._* | |
if [[ $file =~ \/\._. ]] || [[ $file =~ \/\.DS_Store ]]; then | |
echo "Shut up $file" |
This file contains 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 python | |
import sys | |
import tty | |
import termios | |
import asyncio | |
import websockets | |
uri = "ws://192.168.2.69:8266" | |
password = "" |
This file contains 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
{ | |
// You can bind "Rerun Last Task" to something convenient like cmd+R | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Run current file", | |
"type": "shell", | |
"command": "echo Running from file: \"$(cat ${file})\"", | |
}, | |
{ |
This file contains 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
{ | |
"useTabs": true, | |
"tabWidth": 4, | |
"semi": false, | |
"printWidth": 120 | |
} |
This file contains 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 Tidal declutterer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.7 | |
// @description Gives the Tidal web app some nice visual tweaks and hides non-personalized recommendations (ads). User configurable. | |
// @author solarkraft@mailbox.org | |
// @match https://listen.tidal.com/* | |
// ==/UserScript== | |
// The app is made with react and it would be preferable to directly hook into that to |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<link href="static/css/style.css" rel="stylesheet" type="text/css" /> | |
<!-- By far the least important --> | |
<!-- <link href="static/css/tabler-icons.min.css" rel="stylesheet" type="text/css" /> --> | |
<link href="custom.css" rel="stylesheet" type="text/css" /> |
NewerOlder