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 October 18, 2024 15:43
lines of code in github.com/serenditree
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
Java 148 8958 6238 1085 1635
YAML 135 3327 3252 23 52
TypeScript 124 7092 6023 193 876
XML 76 2520 2307 17 196
Shell 51 4958 3819 674 465
Sass 48 1460 1164 68 228
HTML 41 1205 1158 19 28
@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