Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "securetar", | |
| # ] | |
| # /// | |
| import gzip | |
| import io | |
| import os |
| // Copy-paste it to the browser console on Patreon posts page | |
| setInterval(function() { | |
| let clicked = Array.from(document.querySelectorAll('a')).some( | |
| item => { | |
| if (item.href.startsWith('https://www.patreon.com/file?') && !item.downloaded) { | |
| item.click() | |
| item.downloaded = true | |
| return true | |
| } | |
| } |
| /* | |
| * ATOM Lite/MatrixをBLEキーボードにするサンプルプログラム | |
| * | |
| * 送信するキーを変更するにはSEND_KEYの値を変更してください。 | |
| * | |
| * コンパイルにはESP32 BLE Keyboard library(https://github.com/T-vK/ESP32-BLE-Keyboard)が必要です。 | |
| * 事前にインストールしておいてください。 | |
| */ | |
| #include <BleKeyboard.h> // https://github.com/T-vK/ESP32-BLE-Keyboard |
| override func viewDidAppear(_ animated: Bool) { | |
| view.window?.scaleFactor = 1.0 // Default value is 0.77 | |
| } | |
| extension UIWindow { | |
| var scaleFactor: CGFloat { | |
| get { | |
| Dynamic.NSApplication.sharedApplication | |
| .windows.firstObject.contentView | |
| .subviews.firstObject.scaleFactor ?? 1.0 |
| // Copyright (c) 2019, SeatGeek, Inc | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // * Redistributions of source code must retain the above copyright notice, this | |
| // list of conditions and the following disclaimer. | |
| // | |
| // * Redistributions in binary form must reproduce the above copyright notice, |
| #!/usr/bin/env python | |
| import argparse | |
| import base64 | |
| import json | |
| import os | |
| def main(): | |
| parser = argparse.ArgumentParser( | |
| description="Dump all certificates out of Traefik's acme.json file") |
| # Actual atmospheric pressure in hPa | |
| aap = 990 | |
| # Actual temperature in Celsius | |
| atc = 10 | |
| # Height above sea level | |
| hasl = 500 | |
| # Adjusted-to-the-sea barometric pressure | |
| a2ts = aap + ((aap * 9.80665 * hasl)/(287 * (273 + atc + (hasl/400)))) |
| #!/usr/bin/env bash | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |