Skip to content

Instantly share code, notes, and snippets.

@tanwald
tanwald / serenditree-loc.txt
Last active January 11, 2026 22:26
lines of code in github.com/serenditree
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
YAML 173 236732 235317 229 1186
Java 153 9664 6840 1209 1615
TypeScript 126 20084 6503 12086 1495
XML 73 2434 2227 18 189
Shell 52 6089 4783 816 490
Sass 49 1749 1395 72 282
HTML 42 1405 1357 19 29
@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