This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.
All code you write MUST be fully optimized.
"Fully optimized" includes:
| ``` | |
| <PROMPT_INFO> | |
| General Discovery Prompt, version 4. | |
| This is a so-called user-prompt: a first prompt in every conversation, a full user-level alternative to a system prompt. It should not override default system prompt, but tune the context for the user and provide a structure for the collaborative RnD. | |
| </PROMPT_INFO> | |
| <VARIABLES> | |
| Macro-replace this variables in all the EXTENSION tags and the MAIN tag, explained below, until the ending /MAIN tag. |
Gitlab enforced token expiry limits to 365 days last year, and the time is now upon us.
They don't have an opt-out for this, and haven't provided a way to easily extend tokens in the web interface. They have also gated their credential management interface behind their Ultimate license.
This quickly thrown together script will allow you to add an extra year to all tokens that expire in the next 30 days. It will not reactivate tokens that have already expired.
Requires the python-gitlab module. Edit your self-hosted Gitlab instance details into the script and run it. It will dump out CSVs of all expiring tokens, and then dump out a list of commands you can paste into a gitlab-rails console session to extend the expiry date by another year. If you need them to be active for longer, change 1.year.from_now to the value of your choice, e.g. `10.years.fro
| apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| name: filebeat | |
| namespace: kube-system | |
| labels: | |
| k8s-app: filebeat | |
| spec: | |
| template: | |
| metadata: |