Skip to content

Instantly share code, notes, and snippets.

View methanoliver's full-sized avatar

Adam Trzypolski methanoliver

View GitHub Profile
@methanoliver
methanoliver / diff-critic.py
Last active September 14, 2016 23:19
Transmute a git diff of a file into CriticMark markup or raw HTML tags, in case your markdown processor won't accept CriticMark.
#!/usr/bin/python
from __future__ import print_function
import subprocess
import os
import re
def criticize(root, from_ref, to_ref, filename, html=False):
@methanoliver
methanoliver / smallcaps.rpy
Last active November 17, 2023 22:13
Smallcaps tag for RenPy.
# Released under the terms of WTFPL public license: Do whatever you please with it.
# Smallcaps tag: {sc}
#
# Usage:
#
# This will be {sc}excellent{/sc}
#
# In some situations, giving an explicit size to the small caps letters
# may be required:
#
@methanoliver
methanoliver / doc.md
Created October 18, 2022 06:16
DuckyScript commands supported by Flipper's BadUSB

DuckyScript commands supported by Flipper's BadUSB

Explanations are only given for commands not present in the original DuckyScript, for everything else refer to DuckyScript documentation.

Keys

These mean exactly what one would expect and should need no further explanation.

  • Modifiers: CTRL, CONTROL, SHIFT, ALT, GUI, WINDOWS
  • Combos: CTRL-ALT, CTRL-SHIFT, ALT-SHIFT, ALT-GUI, GUI-SHIFT