Skip to content

Instantly share code, notes, and snippets.

View kergoth's full-sized avatar

Christopher Larson kergoth

  • Siemens Digital Industries Software
  • X @kergoth
View GitHub Profile
@marccarre
marccarre / list_kindle_releases.py
Created October 24, 2020 08:46
List all available versions of Kindle for Mac and Kindle for PC.
#!/usr/bin/env python
'''
List all available versions of Kindle for Mac and Kindle for PC.
Dependencies:
- asyncio==3.4.3
- aiohttp==3.6.3
'''
import os
import sys
@mrcomoraes
mrcomoraes / clear_cache_MS_Teams.sh
Last active May 10, 2024 12:07
Clear cache Microsoft Teams on Linux
#!/bin/bash
# This script cleans all cache for Microsoft Teams on Linux
# Tested on Ubuntu-like, Debian by @necrifede, Arch Linux by @lucas-dclrcq and Manjaro with flatpak by @danie1k. Feel free to test/use in other distributions.
# Tested Teams via snap package.
# Tested Teams via flatpak package.
#
# How to use in terminal:
# ./clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap | flatpak )
# or
@tomcritchlow
tomcritchlow / book-urlnotes.json
Last active August 28, 2024 12:40
V0.1 for a library.json spec as outlined here: https://tomcritchlow.com/2020/04/15/library-json/
{
"title": "Tempo - timing, tactics and strategy in narrative-driven decision-making",
"id": null,
"author": "Venkatesh Rao",
"link": "https://www.amazon.com/Tempo-tactics-strategy-narrative-driven-decision-making-ebook/dp/B0069CHSLW",
"image": null,
"date_finished": "09/09/19",
"notes": [
"https://tomcritchlow.com/2020/04/13/tempo-notes-chapter-2/",
"https://tomcritchlow.com/2020/04/13/tempo-notes-chapter-1/"

Vim will move the cursor to the beginning of an object after invoking operator upon it. From an interactive editing perspective this may be considered annoying however it is the consistent choice as operators can be destructive. As such restoring the cursor to its prior position after invoking an operator on an object may not make sense.

There are many ways possible to alter this behaviour to your preference with mappings and/or scripting. But with custom operator mappings this can be particularly ugly.

@SystemDisc
SystemDisc / ynab-improvements.user.js
Last active December 18, 2019 02:48
YNAB's new web software is a million times worse than their desktop software was
// ==UserScript==
// @name YNAB Improvements
// @namespace https://zornco.com/
// @version 0.0.7
// @description Improvements to the YNAB web app by Timothy Zorn (SystemDisc)
// @author SystemDisc
// @updateURL https://rawgit.com/SystemDisc/dc0f2745e8b3cf9e7dd7522c0609299d/raw/50c2268551b5f60d593e3a138e8b1bc4b4e048c8/ynab-improvements.user.js
// @downloadURL https://rawgit.com/SystemDisc/dc0f2745e8b3cf9e7dd7522c0609299d/raw/50c2268551b5f60d593e3a138e8b1bc4b4e048c8/ynab-improvements.user.js
// @match https://app.youneedabudget.com/*
// @run-at document-end
@romainl
romainl / dynaline.gif
Last active March 20, 2024 10:11
How to add dynamic highlighted parts to your status-line
dynaline.gif
@dirty49374
dirty49374 / k_type_breath_animation
Created November 9, 2017 12:41
input club k type
Custom Animations
settings:
========================================
framedelay:2, framestretch, loop, replace:all, pfunc:interp,start
frames
========================================
P[c:0%](0,0,0), P[c:100%](0,0,0);
P[c:0%](0,0,0), P[c:100%](0,0,0);
@danlangford
danlangford / raw_layout.json
Created November 7, 2017 17:00
My K-Type Layout
{
"header": {
"Variant": "standard",
"Generator": "NONE",
"Base": "Base",
"Date": "2017-11-06",
"KLL": "0.5c",
"Author": "bagels mac 2017",
"Version": "0.5",
"Name": "KType",
@woctezuma
woctezuma / hidden_gems_using_players.md
Last active April 7, 2025 13:46
Hidden Gems, using players total (forever) as a popularity measure

This post contains a ranking of Steam games, based on a score intended to favor "hidden gems". A "hidden gem" is defined as a high-quality game (hence the "gem") which only got little attention (hence "hidden"). Therefore, the score of a game is defined as the product of a quality measure (its Wilson score) and a decreasing function of a popularity measure (its players total forever). The quality measure comes from SteamDB and the popularity measure comes from SteamSpy API. Finally, here is a reference to the NeoGAF post explaining the method, and the NeoGAF post explaining the idea behind the optimization of the only free parameter. The Python source code can be found on Github.

Reproducibility

To reproduce the results, use data downloaded betwe