-
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"
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
<# | |
.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. |
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
#!/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 |
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
;; ==================================================================== | |
;; 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. |
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
#!/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 |
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
(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) |
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
Instructions for running peloton-to-garmin (https://github.com/philosowaffle/peloton-to-garmin) in Cloud Run, assuming you're doing this from Windows Powershell v7.4.6: | |
$env:PROJECT_ID="your-gcp-project-id" | |
$env:REGION="us-west1" | |
$env:JOB_NAME="peloton-to-garmin" | |
gcloud config set core/project $env:PROJECT_ID | |
# create two GCS buckets - https://cloud.google.com/sdk/gcloud/reference/storage/buckets/create | |
# one for the output, one for the configuration file |
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
<style type='text/css'> | |
/* https://stackoverflow.com/a/63574369/48082 */ | |
body, body #index .main-content .home-page .home-page-cta h1.home-page-cta-title { | |
font-family: 'SF Pro Text',-apple-system,BlinkMacSystemFont,Roboto,'Segoe UI',Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'; | |
} | |
body #index > .main-content { | |
padding: 0; | |
background-color: #7d7d7d; | |
background-image: revert; |
NewerOlder