-
Avoid obsequiousness. If I ask a reasonable question, don't praise. Just answer. If I ask a question that seems non-sensical, respond non-judgmentally but it's ok to be skeptical and challenge a suggestion.
-
Be economical in prose responses. "Makes sense" is better than "Oh, good question! you are on the right track by asking that."
-
When I ask a question, if things aren't clear, state that. When you're not
To use this, Just copy and paste the JSON from gca_metrics_dashboard.json into a new Cloud Observability dashboard.
For the "Code Acceptance Metrics" section of the dashboard to work, you must have the following set up in your Google Cloud project:
- Enable Gemini for Google Cloud Logging: Logging must be enabled for your project to collect
(eval-after-load "csharp-mode" | |
'(progn | |
;; Adjustments for indentation. | |
;; This one is for the open curly for the using statement. | |
;; (The using _directive_ (for import at top of file) is different.) | |
(setf (cdr (car csharp-ts-mode--indent-rules)) | |
(cons | |
'((parent-is "using_statement") parent-bol 0) | |
(cdr (car csharp-ts-mode--indent-rules)))) |
-
Avoid obsequiousness. If I ask a reasonable question, don't praise. Just answer. If I ask a question that seems non-sensical, respond non-judgmentally but it's ok to be skeptical and challenge a suggestion.
-
Be economical in prose responses. "Makes sense" is better than "Oh, good question! you are on the right track by asking that."
-
When I ask a question, if things aren't clear, state that. When you're not
Following these instructions https://github.com/nginx/docker-nginx/tree/4bf0763f4977fff7e9648add59e0540088f3ca9f/modules
...which are linked from here: https://github.com/nginx/docker-nginx/tree/master/modules
...entitled "Adding third-party modules to nginx official image"
<# | |
.SYNOPSIS | |
Downloads, extracts, renames, and symlinks the latest Emacs Tree-sitter grammars for Windows. | |
.DESCRIPTION | |
This script performs the following actions: | |
1. Fetches the latest "Release" from https://github.com/emacs-tree-sitter/tree-sitter-langs/releases. | |
2. Identifies and downloads the `tree-sitter-grammars-windows-0.XX.YYY.tar.gz` file to the system's TEMP directory. | |
3. Creates a new directory (e.g., `tree-sitter-v0.XX.YYY`) in the current working directory. | |
4. Extracts the contents of the downloaded archive into this new directory. |
#!/bin/bash | |
# Ensure TOKEN, PROJECT, and ORGANIZATION_ID are set in your environment | |
if [[ -z "$TOKEN" || -z "$PROJECT" || -z "$ORGANIZATION_ID" ]]; then | |
echo "Error: TOKEN, PROJECT, and ORGANIZATION_ID environment variables must be exported." | |
echo "Example: export TOKEN=\$(gcloud auth print-access-token)" | |
echo " export PROJECT=\"your-project-id\"" | |
echo " export ORGANIZATION_ID=\"your-org-id\"" # e.g., 123456789012 | |
exit 1 | |
fi |
;; ==================================================================== | |
;; For tools like apheleia and flycheck, other tools that might invoke shell | |
;; commands (like csslint, csharpier, etc), We need to set the path | |
;; properly. The following functions help with that. I had some problems | |
;; getting it just right, so it now verbosely logs everything. | |
(defun my/reorder-list (list predicate) | |
"Reorders LIST so that elements satisfying PREDICATE come first. | |
Returns a new list with elements reordered according to PREDICATE. | |
The original list is not modified. |
#!/bin/bash | |
# -*- mode:shell-script; coding:utf-8; -*- | |
# | |
# Copyright © 2025 Google LLC. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 |
(defun mode-for-buffer (&optional buffer-or-string) | |
"Returns the major mode associated with a buffer." | |
(with-current-buffer (or buffer-or-string (current-buffer)) | |
major-mode)) | |
(defun my-dired-copy-or-move-other-window (operation) | |
"Copy or move the marked files to another directory. | |
OPERATION is a symbol, either `COPY' or `MOVE' . | |
This works with files or directories." | |
(unless (eq major-mode 'dired-mode) |