Skip to content

Instantly share code, notes, and snippets.

View sasimpson's full-sized avatar

Scott Simpson sasimpson

View GitHub Profile
@sasimpson
sasimpson / lyra.txt
Created July 17, 2025 21:00 — forked from xthezealot/lyra.txt
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock Al's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@sasimpson
sasimpson / LogDemo.cs
Created April 28, 2025 19:31
Demo of using structured logging with SeriLog in .NET
using Serilog;
using Serilog.Formatting.Compact;
namespace LogDemo;
class Foo(string name, string description)
{
public string Name { get; set; } = name;
public string Description { get; set; } = description;
public string[] Things { get; set; } = [];
[{
"name": "Connecticut",
"abbr": "CT",
"section": "1"
}, {
"name": "Eastern Massachusetts",
"abbr": "EMA",
"section": "1"
}, {
"name": "Maine",
@sasimpson
sasimpson / sections.json
Last active September 27, 2022 01:50
ARRL Field Day sections in JSON
{
"sections": [
{
"name": "Connecticut",
"abbr": "CT",
"area": "1"
}, {
"name": "Eastern Massachusetts",
"abbr": "EMA",
"area": "1"
@sasimpson
sasimpson / tmux.md
Last active August 29, 2015 14:14 — forked from bylatt/tmux.md

Download Libevent and Tmux.

mkdir ~/build
cd ~/build
curl -OL http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz
@sasimpson
sasimpson / keybase.md
Created April 14, 2014 21:22
keybase verification

Keybase proof

I hereby claim:

  • I am sasimpson on github.
  • I am sasimpson (https://keybase.io/sasimpson) on keybase.
  • I have a public key whose fingerprint is 24E2 0C0F FF97 6865 E969 5840 A4AE 2A7C 582F 2A14

To claim this, I am signing this object:

@sasimpson
sasimpson / isitquesoweek.py
Created October 30, 2013 16:20
determines if it is queso week at Biff Buzby's Burgers. Assumes the beginning of the week is Monday.
#!/usr/bin/python
import sys
import datetime
import argparse
def is_queso_week(today=None):
if today is None:
today = datetime.datetime.now()
if today.weekday() is not 0:
@sasimpson
sasimpson / gist:5136553
Created March 11, 2013 18:42
simcity status
Antarctica: available
Europe East 4: available
Europe West 5: available
Europe West 6: available
North America West 3: available
North America West 4: available
North America East 3: available
North America East 4: available
Oceanic 2: full
Asia: available
@sasimpson
sasimpson / cloudfiles_blog.py
Created April 13, 2012 20:08
upload a static blog directory named 'output' to a container named 'blog'
import mimetypes
import requests
import cloudauth
import os
import re
token, storage_url = cloudauth.getauth('object-store')
headers = {'x-auth-token': token}
regexp = re.compile('./output/')
@sasimpson
sasimpson / dnsupdate.py
Created April 13, 2012 19:43
tool to periodically update dns from a remote location
import requests
import json
from cloudauth import getauth
def update_record(domain_name=None, record_name=None):
token, dns_url = getauth('dnsextension:dns')
headers = {'x-auth-token': token, 'content-type': 'application/json'}
my_ip_resp = requests.get('http://automation.whatismyip.com/n09230945.asp')
if my_ip_resp.ok: