Skip to content

Instantly share code, notes, and snippets.

View jimmoffet's full-sized avatar

Jim Moffet jimmoffet

View GitHub Profile
@jimmoffet
jimmoffet / AI_Resume_Cookbook.md
Last active April 9, 2025 14:51
Some tips for using AI to clean up your resume and tailor it for specific jobs

AI Resume Builder Cookbook

I’ve had decent luck with free models with this method (openai and anthropic).

HINT: Turn web search off, it's not good for this unless you're famous. I get much better results copy-pasting the text I care about (resumes, linkedin content and such) directly into the chat, as opposed to attaching files, or worse, pasting links and asking for web search. Unlike when you paste things directly in the chat, file attachments and webpages are chunked and not all chunks make it to the model when responding to any given request.

You should be able to get from a solidly-written linkedin page or federal resume to a decent two pager in under an hour (still requires lots of human editing, show it to friends, etc...).

After that, you should be able to tailor your resume for a specific job description in just a few minutes.

@jimmoffet
jimmoffet / public-research-engine-v112623.ipynb
Last active December 2, 2023 20:56
[PUBLIC] Research Engine v112623
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimmoffet
jimmoffet / gist:1094d8c46ccf1b98e390cbe7a99a0c07
Last active November 27, 2023 03:00
RE_v112623_requirements.txt
absl-py==1.4.0
aiohttp==3.8.6
aiosignal==1.3.1
alabaster==0.7.13
albumentations==1.3.1
altair==4.2.2
antlr4-python3-runtime==4.9.3
anyio==3.7.1
appdirs==1.4.4
argilla==1.19.0
@jimmoffet
jimmoffet / idle-shutdown.sh
Last active November 3, 2023 21:51
Shut down a GCP instance after N minutes below 10% cpu
#!/bin/bash
# Add to instance metadata with `gcloud compute instances add-metadata \
# instance-name --metadata-from-file startup-script=idle-shutdown.sh` and reboot
# NOTE: requires `bc`, eg, sudo apt-get install bc
# Modified from https://stackoverflow.com/questions/30556920/how-can-i-automatically-kill-idle-gce-instances-based-on-cpu-usage
threshold=0.05
count=0
wait_minutes=30
while true
@jimmoffet
jimmoffet / validate_sns.py
Last active September 21, 2022 02:13
SNS http/s fanout signature verification
import base64
import re
from urllib.parse import urlparse
import requests
from M2Crypto import X509
from app import redis_store