This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| A coworker of mine is trying to build the infra for a service we're writing, and things are going horribly wrong! | |
| He has a restatedeployment that looks like (cut down to remove noise): | |
| ``` | |
| apiVersion: restate.dev/v1beta1 | |
| kind: RestateDeployment | |
| metadata: | |
| annotations: | |
| reloader.stakater.com/auto: "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"taskName": null, "dd.version": "sha-706dda9", "dd.env": "develop", "dd.service": "dashboard-web", "dd.trace_id": "6847162b000000008fab73b0cf9fd2f0", "dd.span_id": "6642344976348217129", "source": "python", "filename": "fields.py", "funcName": "__get__", "levelname": "WARNING", "lineno": 43, "module": "fields", "name": "core.fields", "pathname": "/app/core/fields.py", "process": 60, "processName": "MainProcess", "stack_info": null, "thread": 139622537836224, "threadName": "ThreadPoolExecutor-0_0", "message": "{\"msg\": \"Extra DB lookup to get field value, creating potential N+1 queries. This is probably caused by a .only() or .defer() call without the proper fields.\", \"field\": \"uuid\", \"model\": \"Customer\", \"stack\": \" File \\\"/usr/local/lib/python3.12/threading.py\\\", line 1032, in _bootstrap\\n self._bootstrap_inner()\\n\\n File \\\"/usr/local/lib/python3.12/threading.py\\\", line 1075, in _bootstrap_inner\\n self.run()\\n\\n File \\\"/app/.venv/lib/python3.12/site-packages/sentry_sdk/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # scrabble_validator.py | |
| from typing import List, Set, Tuple, Optional | |
| from collections import deque | |
| class ScrabbleValidator: | |
| """Validates Scrabble boards according to official rules.""" | |
| BOARD_SIZE = 15 | |
| CENTER = (7, 7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python torrent_symlink_matcher.py /path/to/file.torrent /path/to/DirectoryA /path/to/DirectoryB | |
| How It Works | |
| Torrent Parsing: | |
| The script uses bencodepy to decode the torrent file. It then extracts the file entries (for multi‐file torrents, it also records the parent folder found in info["name"]). | |
| Directory Scanning: | |
| It recursively walks through DirectoryA (using os.walk), filtering for video files by extension. For each file it finds, it grabs its size and uses a regular expression (S\d{1,4}E\d{1,4}) to look for a season/episode code in the filename. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| host_list declined parsing /home/apenney/git/Radico/tmp/inventory/ec2.py as it did not pass its verify_file() method | |
| [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details | |
| Parsed /home/apenney/git/Radico/tmp/inventory/ec2.py inventory source with script plugin | |
| [WARNING]: Could not match supplied host pattern, ignoring: main.yml | |
| [WARNING]: No hosts matched, nothing to do | |
| hosts (0): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 1.044933] ACPI: EC: interrupt unblocked | |
| [ 1.044952] ACPI: EC: event unblocked | |
| [ 1.044967] ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62 | |
| [ 1.044968] ACPI: EC: GPE=0x16 | |
| [ 1.044969] ACPI: \_SB_.PCI0.LPCB.EC__: Boot ECDT EC initialization complete | |
| [ 1.044970] ACPI: \_SB_.PCI0.LPCB.EC__: EC: Used to handle transactions and events | |
| [ 1.045033] ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62 | |
| [ 1.045034] ACPI: EC: GPE=0x16 | |
| [ 1.045035] ACPI: \_SB_.PCI0.LPCB.EC__: Boot ECDT EC initialization complete | |
| [ 1.045036] ACPI: \_SB_.PCI0.LPCB.EC__: EC: Used to handle transactions and events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| failed: | |
| key: | | |
| stuff here | |
| more stuff | |
| [blank] | |
| stuff | |
| worked: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: removing perl breaks dependency 'perl' required by automake | |
| :: removing perl breaks dependency 'perl' required by ckbcomp | |
| :: removing perl breaks dependency 'perl' required by foomatic-db-engine | |
| :: removing perl breaks dependency 'perl' required by git | |
| :: removing perl breaks dependency 'perl' required by groff | |
| :: removing perl breaks dependency 'perl' required by hspell | |
| :: removing perl breaks dependency 'perl' required by hwinfo | |
| :: removing perl breaks dependency 'perl' required by hyphen | |
| :: removing perl breaks dependency 'perl' required by inxi | |
| :: removing perl breaks dependency 'perl' required by lm_sensors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ansible-playbook --extra-vars packer_build_name=amazon-ebs packer_builder_type=amazon-ebs | |
| -i inventory/packer-provisioner-ansible734665103 /Users/apenney/code/ansible/playbooks/sl-email/main.yml -e ansible_ssh_pri | |
| vate_key_file=/var/folders/cy/7m77wht10pd5l2_2dm_1mtkr0000gp/T/ansible-key183318768 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ⟩ cat packer/sl-email/main.json | |
| { | |
| "variables": { | |
| "aws_access_key": "", | |
| "aws_secret_key": "" | |
| }, | |
| "builders": [ | |
| { | |
| "type": "amazon-ebs", | |
| "access_key": "{{user `aws_access_key`}}", |
NewerOlder