A planning-first prompting pattern: think → plan → verify → execute.
Optimize for correctness and control, not speed.
Tell the model what you want and explicitly forbid solutions.
graph TD;
A[So you have a mess on your hands] -->|Yep| B[What sort of mess?]
B -->|An uncommitted mess| C[Do you care enough about your mess to keep it?]
C -->|Yes| D[Looks like we caught this just in time]
D --> E[Split off a logical chunk from your mess, stage it, & commit it with a good message.]
E -->|Still have a mess?| F[No, we're cool now]
F --> G[Everything is going to be fine]
E -->|Yes| H[git reset --hard]| # Bash function to have Docker-Compose send a notification upon completion, because it can take a while | |
| # "cheers" -> https://bigsoundbank.com/sound-0237-shouts-and-applauses-of-teens-2.html | |
| # only works on a Mac, you'd have to revise it for other operating systems | |
| docker-compose() { | |
| local cmd="docker-compose $@" | |
| command $cmd && osascript -e 'display notification "$cmd" with title "Docker-Compose Done" sound name "cheers"' | |
| } |
| #!/usr/bin/env python3 | |
| import feedparser | |
| import requests | |
| import re | |
| def monitor_jenkins_rss(rss_url): | |
| try: | |
| response = requests.get(rss_url) | |
| response.raise_for_status() |
Difftastic: https://github.com/Wilfred/difftastic directory diffs, good for theme updates
Tin-Summer: https://github.com/vmchale/tin-summer helps clean up build artifacts
Gfold: https://github.com/nickgerace/gfold show Git repo status
The firehose: https://lib.rs/command-line-utilities this is a live feed of all command line tools written in Rust
| E......EE................DEBUG 2022-06-23 17:37:44,378 middleware P:1252 T:139987040339776 [TST] Current Language not in the available languages. Activating en | |
| INFO 2022-06-23 17:38:26,716 middleware P:1252 T:139987040339776 [TST] Request took 42.338 (13.553u, 3.932s) | |
| .DEBUG 2022-06-23 17:38:28,487 middleware P:1252 T:139987040339776 [TST] Current Language not in the available languages. Activating en | |
| INFO 2022-06-23 17:38:33,853 middleware P:1252 T:139987040339776 [TST] Request took 5.365 (1.939u, 0.473s) | |
| .........DEBUG 2022-06-23 17:38:41,010 model_utils P:1252 T:139987040339776 [TST] Calculating last_mod for <class 'submission.models.Article'>: 93 - This is a test article | |
| DEBUG 2022-06-23 17:38:41,063 model_utils P:1252 T:139987040339776 [TST] Calculating last_mod for <class 'submission.models.Section'>: 125 - Test Section | |
| ....WARNING 2022-06-23 17:38:41,221 setting_handler P:1252 T:139987040339776 [TST] Passing 'create' to get_setting has been deprecated in in favour of returning the default value | |
| WARNING |
| Vol: 5 Gals | |
| Style: Not quite a Kölsch | |
| Malts: | |
| 6 Lbs Northwestern LME, Gold | |
| 1 Lb Cara-pils, American | |
| 1 Lb Vienna, American | |
| Hop Schedule: | |
| .5 oz Chinook (12%) 60 minutes |
| name: eprints | |
| services: | |
| appserver: | |
| type: apache | |
| build_as_root: | |
| - apt-get -y update && apt-get install -y perl libncurses5 libselinux1 libsepol1 build-essential libapache2-mod-perl2 libxml-libxml-perl libcgi-pm-perl libunicode-string-perl libterm-readkey-perl libmime-lite-perl libmime-types-perl libxml-libxslt-perl libdigest-sha-perl libdbd-mysql-perl libxml-parser-perl libxml2-dev libxml-twig-perl libarchive-any-perl libjson-perl lynx wget ghostscript xpdf antiword elinks pdftk texlive-base texlive-base-bin psutils imagemagick adduser default-mysql-client unzip libsearch-xapian-perl libtex-encode-perl libio-string-perl | |
| - ln -s /app /opt/eprints3 | |
| webroot: . | |
| # config: |
| lando manage check | |
| System check identified no issues (15 silenced). | |
| hpotting@CDL-HPOTTING-9m:~/workspace/janeway master *%= |-/ lando manage test | |
| nosetests --verbosity=1 | |
| Creating test database for alias 'default'... | |
| Traceback (most recent call last): | |
| File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/utils.py", line 62, in execute | |
| return self.cursor.execute(sql) | |
| psycopg2.errors.UndefinedObject: type "citext" does not exist | |
| LINE 1: ...ne NULL, "is_superuser" boolean NOT NULL, "email" citext NOT... |