| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| ### | |
| ### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
| ###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
| ###. things to watch out for: | |
| ### - Check out the `nix-darwin` instructions, as they have changed. | |
| ### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
| ### | |
| # I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
| # So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
| # Put *unversioned* requirements in `requirements-to-freeze.txt` as described below. | |
| # `requirements.txt` will be automatically generated from `pip freeze` | |
| # https://www.kennethreitz.org/essays/a-better-pip-workflow | |
| venv/bin/activate: requirements-to-freeze.txt | |
| rm -rf venv/ | |
| test -f venv/bin/activate || virtualenv -p $(shell which python3) venv | |
| . venv/bin/activate ;\ | |
| pip install -Ur requirements-to-freeze.txt ;\ | |
| pip freeze | sort > requirements.txt |
| // | |
| // This scripts builds wget commands for you to paste into a terminal. It will download | |
| // all formats of all books currently showing on the page. | |
| // | |
| cmds = ""; | |
| for (a of document.getElementsByTagName("a")) { | |
| if (a.href.startsWith("https://dl.humble.com")) cmds += "wget --content-disposition '" + a.href + "'<br>"; | |
| }; |
| from __future__ import unicode_literals | |
| from django.db import models | |
| from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa | |
| class RelationNotLoaded(Exception): | |
| pass |
| Traceback (most recent call last): | |
| File "/Users/cadams/.virtualenvs/wdl/bin/django-admin", line 11, in <module> | |
| sys.exit(execute_from_command_line()) | |
| File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line | |
| utility.execute() | |
| File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute | |
| django.setup() | |
| File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/__init__.py", line 18, in setup | |
| apps.populate(settings.INSTALLED_APPS) | |
| File "/Users/cadams/.virtualenvs/wdl/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate |
| #!/bin/bash | |
| ## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html | |
| cd /tmp | |
| # install unzip just in case the user doesn't already have it. | |
| if [[ `uname` = Linux ]]; then | |
| sudo apt-get install unzip -y | |
| wget "http://www.carrois.com/downloads/fira_4_1/FiraFonts4106.zip" |
| #!/bin/bash | |
| if [ ! -d .git ] ; then | |
| if [ ! -f PKGBUILD ] ; then | |
| echo "ERROR: need PKGBUILD to do anything!" >&2 | |
| exit 1 | |
| fi | |
| echo "--> initializing git repository" | |
| git init | |
| echo "--> rebuilding .SRCINFO file" |
| Adyen Test Card Numbers | |
| These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform. | |
| For all cards use the following expiration and CVV2/CVC2/or CID for Amex. | |
| For all cards: | |
| Expiration Dates CVV2 / CVC3 CID (American Express) | |
| 08/2018 OR 10/2020 737 7373 |