Skip to content

Instantly share code, notes, and snippets.

View gwpantazes's full-sized avatar

George Pantazes gwpantazes

View GitHub Profile
@gwpantazes
gwpantazes / v0-technical-interview-ai-disclaimer.md
Last active July 27, 2026 12:15
Technical Interview - AI Use Without Disclosure is Not Allowed

The following is a disclaimer (draft) to be given to candidates before an interview, and at the start of an interview. The GOAL is to CONVINCE the applicant to put down the AI-driven sidechat (window on computer, phone on the side), and answer from their own experience and knowledge. We have actually had applicants who seem great on paper, and then shoot themselves in the foot by operating during the interview as if they were using an AI sidechat to literally drive all their answers for them. AI answers are always short, simplistic, don't contain the nuance we want in a technical interview, and most importantly completely hide the applicant's own skills and knowledge (not to mention the extremely annoying ~5 second robotic processing time while the bot processes the question on the side, the requests to repeat the question...). This is just a draft, so it's currently a bit rought, but the idea is there.

@gwpantazes
gwpantazes / psa-macos-tahoe-26-container-ssh-agent-soocket-mount-change
Last active June 18, 2026 14:47
PSA: After updating to macOS Tahoe 26, changes how SSH agent sockets should be mounted into Docker/OrbStack containers.
# PSA: macOS Tahoe 26 changes how SSH agent sockets should be mounted into Docker/OrbStack containers.
After updating MacOS from 15.7.3 to 26.5.1, the update broke my existing setup for mounting SSH agent sockets to docker containers.
After updating to Tahoe, bind-mounting the host’s `SSH_AUTH_SOCK` path directly into a Linux container can stop working if you were pointing to the `launchd` socket path directly:
What used to work:
```bash
docker run \
@gwpantazes
gwpantazes / How to Install JDK MacOS Homebrew.md
Last active May 4, 2026 09:10
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents

@gwpantazes
gwpantazes / check-venv.sh
Created June 25, 2019 18:41
Check if you are in a Python Virtual Environment
# 100% surefire way to detect a virtual environment: Check for the real_prefix system attribute.
echo $(python <<EOF
import sys
if(hasattr(sys, 'real_prefix')):
print("Yes, you are in a virtual environment. (" + getattr(sys, 'real_prefix') + ")")
else:
print("No, you are not in a virtual environment.")
EOF
)
@gwpantazes
gwpantazes / README.md
Last active November 7, 2023 18:52
Testing for "cannot allocate memory" error in Ruby TCPSocket.open against `elasticloadbalancing.us-west-2.amazonaws.com:443`

Test Ruby TCPSocket.open against elasticloadbalancing.us-west-2.amazonaws.com:443

We are poking around and looking for the following "cannot allocate memory" error message:

Failed to open TCP connection to elasticloadbalancing.us-west-2.amazonaws.com:443 (Cannot allocate memory - connect(2) for \"elasticloadbalancing.us-west-2.amazonaws.com\" port 443)

Target testing Ruby 3.2's TCPSocket.open call here: https://github.com/ruby/net-http/blob/v0.3.2/lib/net/http.rb#L1271-L1273. (Ruby TCPSocket implementation: https://github.com/ruby/ruby/blob/master/ext/socket/tcpsocket.c)

@gwpantazes
gwpantazes / idfg.idaho.gov-species.csv
Created September 10, 2023 22:47
Scrape Full Species List from Idaho Fish and Game
We can't make this file beautiful and searchable because it's too large.
commonName,scientificName,native,phenology,url
A Moth,Abagrotis apposita,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474133
A Moth,Abagrotis brunneipennis,Native,Year-round,https://idfg.idaho.gov/species/taxa/25522
A Moth,Abagrotis discoidalis,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474134
A Moth,Abagrotis dodi,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474135
A Moth,Abagrotis duanca,Native,Year-round,https://idfg.idaho.gov/species/taxa/26322
A Moth,Abagrotis erratica,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474136
A Moth,Abagrotis forbesi,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474137
A Moth,Abagrotis glenni,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474138
A Moth,Abagrotis hermina,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474139
@gwpantazes
gwpantazes / Dockerfile
Created May 25, 2023 01:07
Jobs Done Dockerfile
FROM node:16.18
RUN git clone --single-branch https://github.com/skidding/jobs-done.git /jobsdone
WORKDIR /jobsdone
COPY data.js data.js
RUN yarn install \
&& yarn build \
&& yarn global add http-server
@gwpantazes
gwpantazes / generateNameFromCommitShortHash.js
Last active March 6, 2023 18:10
Generate Code Name from Commit Short Hash
#!/usr/bin/env node
/**
* @file Generate a deterministic name from a commit's short hash.
* Inspired by Docker 0.7.x which generates names from notable scientists and hackers.
*/
const adjectives = [
'admiring',
'adoring',
@gwpantazes
gwpantazes / envByProperties.md
Last active February 11, 2023 13:39
Environment Variables via properties file in bash
@gwpantazes
gwpantazes / todoproject.sh
Created January 30, 2023 04:24
todoproject - A very simple project idea logger
#!/usr/bin/env bash
# Configure by exporting TODOPROJECT_FILE, the file path to write to.
# Recommended: alias tp="path/to/todoproject.sh"
todoproject_file="${TODOPROJECT_FILE:-$HOME/todoproject.tsv}"
function initFile {
if [[ -f "${todoproject_file}" ]]; then return 0; fi
mkdir -p "$(dirname "${todoproject_file}")"
printf "Timestamp of Thought\tProject\n" > "${todoproject_file}"