Skip to content

Instantly share code, notes, and snippets.

@JMichaelTX
JMichaelTX / JXA Resources.md
Last active May 14, 2025 14:56
JavaScript for Automation (JXA) Resources

JXA Resources

Revised: 2019-11-28 16:16 GMT-6

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 20, 2025 14:16 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@kunishi
kunishi / gist:cdfaa582ffcbe06f9da41c312f374406
Created October 4, 2017 03:28
pyenv install 3.6.2 failed on HighSierra
BUILD FAILED (OS X 10.13 using python-build 20160602)
Inspect or clean up the working tree at /var/folders/nq/5pyc_js10jz0kq7wps9b5gkm0000gn/T/python-build.20171004122245.24032
Results logged to /var/folders/nq/5pyc_js10jz0kq7wps9b5gkm0000gn/T/python-build.20171004122245.24032.log
Last 10 log lines:
import pip
File "/var/folders/nq/5pyc_js10jz0kq7wps9b5gkm0000gn/T/tmpr17v5c3y/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 26, in <module>
File "/var/folders/nq/5pyc_js10jz0kq7wps9b5gkm0000gn/T/tmpr17v5c3y/pip-9.0.1-py2.py3-none-any.whl/pip/utils/__init__.py", line 27, in <module>
File "/var/folders/nq/5pyc_js10jz0kq7wps9b5gkm0000gn/T/tmpr17v5c3y/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/pkg_resources/__init__.py", line 35, in <module>
#!/usr/bin/env python3
"""
Apply database patches.
Applied patches are recorded in the schema_patch table of the database.
The dsn to connect to defaults to a local one (empty connection string). It can
be chosen using the command line or an environment variable. Patches
application is interactive by default.
@hwayne
hwayne / requirements.md
Last active July 21, 2021 17:09
PBT / Example Testing comparison problem

You are writing simple budgeting softare. A Budget consists of a total limit, represented as a positive integer, and a dictionary of category limits, represented as a map from strings to integers. For example:

{
  "total_limit": 50,
  "category_limits": {
    "food": 10,
    "rent": 11,
    "candles": 49
 }
@lysender
lysender / htmx-allow-400-errors-swap-for-validation-errors.md
Created August 19, 2023 13:49
HTMX - Allow HTTP error 400 and 422 swap content to enable showing validation errors

Still a newbie to HTMX.

I was writing some form submit interaction and realized that HTMX won't swap/render if the HTTP status code is not 2xx.

For 404, 500 or 503 errors, I think it's fair enough.

For my use case, I'm returning error 400 or 422 for validation errors. I'm returning the form back with some error decorations for example.

According to the docs, I can change that behavior.