Skip to content

Instantly share code, notes, and snippets.

@tanwald
tanwald / serenditree-loc.txt
Last active July 27, 2025 22:03
lines of code in github.com/serenditree
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
Java 148 9060 6409 1096 1555
YAML 133 4613 4522 65 26
TypeScript 127 20328 6723 12084 1521
XML 73 2470 2264 18 188
Shell 50 5119 4021 687 411
Sass 49 1461 1181 57 223
HTML 42 1395 1347 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