Skip to content

Instantly share code, notes, and snippets.

@tanwald
tanwald / create.yml
Last active November 14, 2023 15:43
tekton-dbaas
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: dbaas-create
labels:
app.kubernetes.io/component: tekton
spec:
description: 'Task to create an Exoscale DBAAS.'
workspaces:
@tanwald
tanwald / serenditree-loc.txt
Last active May 1, 2025 12:21
lines of code in github.com/serenditree
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
Java 145 8976 6337 1097 1542
TypeScript 127 20314 6670 12114 1530
YAML 123 4147 4066 55 26
XML 73 2462 2256 18 188
Sass 49 1460 1177 57 226
Shell 49 4880 3825 655 400
HTML 42 1240 1190 19 31
@tanwald
tanwald / bind.sh
Last active March 16, 2024 13:28
gnome mouse wheel hack for overview triggering and workspace switching without overview
#!/usr/bin/env bash
########################################################################################################################
# INSTALLATION
########################################################################################################################
BIND_SERVICE="[Unit]
Description=binding mouse events to keyboard shortcuts
After=display-manager.service
[Service]
@tanwald
tanwald / glacier.sh
Last active May 9, 2021 16:08
glacier cli - commandline interface for amazon glacier backups
#!/usr/bin/env bash
########################################################################################################################
# USAGE
########################################################################################################################
function usage() {
echo "usage: glacier.sh [backup [init]] [clean [all]] [delete-all] [delete-archive ID] [doctor] [get KEY] "
echo " [help] [last-backup] [list-archives [all]] [list-vaults] [log [all]] [restore-snapshot] "
echo " [set KEY VALUE] [tree-hash ARCHIVE]"
@tanwald
tanwald / darcula-color-scheme.xml
Last active June 15, 2020 14:56
darcula gtksourceview color scheme
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="darcula" name="Darcula" version="1.0">
<author>Paul Neulinger</author>
<description>Darcula color scheme</description>
<!-- COLORS -->
<color name="orange" value="#cc7832"/>
<color name="yellow" value="#ffc66d"/>
<color name="purple" value="#9876aa"/>
<color name="text-fg" value="#a9b7c6"/>
<color name="text-bg" value="#2b2b2b"/>
@tanwald
tanwald / window.py
Last active December 15, 2021 22:18
window cli - manage windows from the command line
#!/usr/bin/env python3
import logging
import re
import shlex
import time
from argparse import ArgumentParser
from functools import reduce
from math import sqrt
from os import path, devnull as DEVNULL