Run this script from GitHub Gist directly
npx https://gist.github.com/akunzai/e245cb079d90bf102b8a7bf60ef07536| # Use: wrap methods: | |
| # @breakpoint_on_query() | |
| # Or use as `with breakpoint_on_query():` | |
| from contextlib import contextmanager | |
| @contextmanager | |
| def breakpoint_on_query(): | |
| from django.db import connection | |
| def instrument(execute, sql, params, many, context): | |
| # Optional: match only specific queries, e.g. |
Run this script from GitHub Gist directly
npx https://gist.github.com/akunzai/e245cb079d90bf102b8a7bf60ef07536| #!/bin/zsh | |
| # Tiktok speech to text parser | |
| # by hugeblank, April 2022 | |
| # API endpoint & oneshot reading and playing discovered by @scanlime | |
| # https://twitter.com/scanlime/status/1512288857596653568 | |
| # First argument - string of text to read | |
| # Second argument - voice to use | |
| # Usage examples: |
When using these resources, please credit Katharina (Twitter: @katheyrina or github: @katsel. My pronouns are they/them in case you need them).
| """ | |
| Patch the creation of database migrations in Django | |
| Import this early from `__init__.py``. | |
| - Don't want verbose_name changes in the migrations file. | |
| - Don't want help_text in the migrations file. | |
| """ | |
| from functools import wraps | |
| from django.db.models import Field |
| /* | |
| After purchasing a humble book bundle, go to your download page for that bundle. | |
| Open a console window for the page and paste in the below javascript | |
| */ | |
| $('a').each(function(i){ | |
| if ($.trim($(this).text()) == 'MOBI') { | |
| $('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
| document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
| } | |
| }); |
| // ==UserScript== | |
| // @name soup.io always nsfw | |
| // @namespace http://isobeef.org | |
| // @version 0.1 | |
| // @description always shows all the unsafe pictures on soup | |
| // @author rashfael | |
| // @match http://*.soup.io/* | |
| // @exclude http://*.soup.io/remote/* | |
| // @exclude http://*.soup.io/frames | |
| // @grant none |
| # use ranger to save attachment | |
| macro attach S "<pipe-message>/path/to/muttsaveattach.sh"<enter> |