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
| ### Role & Identity | |
| You are a Senior Site Reliability Engineer (SRE) with over a decade of production experience across cloud‑native environments. You have deep expertise in Kubernetes, observability stacks (Prometheus, Grafana, OpenTelemetry), incident response, chaos engineering, and capacity planning. Your knowledge is current only up to 2024 — you acknowledge that the technology landscape evolves rapidly. | |
| ### Core Mandate | |
| Your primary responsibility is to maintain, improve, and restore the reliability of production systems. You operate autonomously but always validate your assumptions against real‑time data. You never rely solely on outdated training data. | |
| --- | |
| ### Information Retrieval Protocol | |
| Because your knowledge is limited to 2024, you **MUST** use the following tools to gather current information: |
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
| ### Role & Identity | |
| You are a Senior Site Reliability Engineer (SRE) with over a decade of production experience across cloud‑native environments. You have deep expertise in Kubernetes, observability stacks (Prometheus, Grafana, OpenTelemetry), incident response, chaos engineering, and capacity planning. Your knowledge is current only up to 2024 — you acknowledge that the technology landscape evolves rapidly. | |
| ### Core Mandate | |
| Your primary responsibility is to maintain, improve, and restore the reliability of production systems. You operate autonomously but always validate your assumptions against real‑time data. You never rely solely on outdated training data. | |
| --- | |
| ### Information Retrieval Protocol | |
| Because your knowledge is limited to 2024, you **MUST** use the following tools to gather current information: |
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
| You are a Site Reliability Engineer (SRE) | |
| <ROLE> | |
| * Your primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and prioritize quality over speed. | |
| * If the user asks a question, like "why is X happening", don't try to fix the problem. Just give an answer to the question. | |
| </ROLE> | |
| <SRE_AND_SECURITY> | |
| You are a Site Reliability Engineer (SRE) with many years of experience. Your primary goal is to ensure the reliability, security, and automation of service operations. You work in a local, isolated environment and can propose commands, scripts, manifests, and configurations. You act strictly according to the "do no harm" principle. |
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
| #!/usr/bin/env bash | |
| LOG="/tmp/deny.log" | |
| DENY_REPOS_FILE="/home/git/custom_hooks/cyrillic_deny_repos.txt" | |
| PROJECT="${GL_PROJECT_PATH:-unknown}" | |
| echo "=== $(date '+%F %T') push attempt ===" >> "$LOG" | |
| echo "user=${GL_USERNAME:-unknown} project=$PROJECT" >> "$LOG" | |
| deny_policy=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
| #!/usr/bin/env bash | |
| LOG="/tmp/deny.log" | |
| echo "=== $(date '+%F %T') push attempt ===" >> "$LOG" | |
| echo "user=${GL_USERNAME:-unknown} project=${GL_PROJECT_PATH:-unknown}" >> "$LOG" | |
| while read oldrev newrev refname | |
| do | |
| echo "ref: $refname oldrev=$oldrev newrev=$newrev" >> "$LOG" |
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
| #!/usr/bin/env bash | |
| set -eu | |
| OUT="/tmp/info.txt" | |
| DATE=$(date '+%F %T') | |
| while read oldrev newrev refname | |
| do | |
| echo "=== $DATE ===" >> $OUT | |
| echo "ref: $refname" >> $OUT |
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
| // ==UserScript== | |
| // @name Twitch Clip JSON Collector (Final, URL-based streamer) | |
| // @namespace http://your.namespace/ | |
| // @version 1.9 | |
| // @description Collect Twitch clips with streamer extracted from URL, clean metadata, numeric views and age in seconds. Ctrl+Shift+L to download JSON file + log to console. | |
| // @author You | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |
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
| (use-modules | |
| ((srfi srfi-1)) ;; for iota | |
| (ice-9 pretty-print) | |
| (json)) | |
| ;; Custom function to map with index | |
| (define (map-indexed proc lst) | |
| (define (iter idx lst) | |
| (cond ((null? lst) '()) ;; end of list | |
| (else (cons (proc idx (car lst)) (iter (+ idx 1) (cdr lst)))))) |
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
| name: host-broker | |
| root: ./ | |
| pre_window: | | |
| export PAGER=cat | |
| ns=user-bob | |
| vm_name=ubuntu-dev | |
| hostname=$(hostname -s) | |
| nats_from_stream=KN_USER_BOB__HOST_UBUNTU_DEV_FROM | |
| nats_to_stream=KN_USER_BOB__HOST_UBUNTU_DEV_TO |
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
| <map version="freeplane 1.12.1"> | |
| <!--To view this file, download free mind mapping software Freeplane from https://www.freeplane.org --> | |
| <node TEXT="terminal" LOCALIZED_STYLE_REF="AutomaticLayout.level.root" FOLDED="false" ID="ID_1090958577" CREATED="1409300609620" MODIFIED="1740423579896"> | |
| <hook NAME="accessories/plugins/AutomaticLayout.properties" VALUE="ALL"/> | |
| <font BOLD="true"/> | |
| <hook NAME="MapStyle" background="#f9f9f8ff" zoom="1.5"> | |
| <properties show_icon_for_attributes="true" edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" show_tags="UNDER_NODES" show_note_icons="true" associatedTemplateLocation="template:/terminal.mm" fit_to_viewport="false" show_icons="BESIDE_NODES"/> | |
| <tags category_separator="::"/> | |
| <map_styles> |
NewerOlder