Skip to content

Instantly share code, notes, and snippets.

View wiseman's full-sized avatar

John Wiseman wiseman

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Red Team versus the Agents

At a nuclear weapons lab, a team of elite hackers matches wits with undefeated autonomous defenders

ALBUQUERQUE, N.M.--By the time my escort steers me past the armed guards, key-coded doors, and bags of shredded paper into the heart of Sandia National Laboratories, the rematch has already begun. Inside the Advanced Information Systems Lab, six men sit around a large table loaded with laptops and network cables, which snake over to a rack of high-powered machines labeled BORG SERVER CLUSTER. These men are the defense--the Blue Team in this high-tech version of capture the flag--and they lean back in their chairs confidently. This past March, they claim, their "agents"--computer programs that autonomously cooperate to protect a networked system--became the first defenders ever to thwart Sandia's esteemed Red Team of professional hackers. But that was in a two-day skirmish. Now Steven Y. Goldsmith, the research group's lead scientist, has invited the Red Team to spend this entire we

@wiseman
wiseman / summary.md
Created April 24, 2024 02:40
Claude 3 Sonnet evaluation of court documents
llm prompt --model claude-3-opus --system "You are a paralegal prodigy, with an astute sense of the law." "Tell me how you think this case is progressing."

Based on the latest filings in the Golden Hammer Ops, LLC v. JETNET, LLC case, here are my key takeaways on the current status and progression of the litigation:

  1. Both the plaintiff Golden Hammer and the defendants JETNET, ADSBExchange.com, and Daniel Streufert have filed their initial pleadings - the complaint, cross-complaints, answers, and demurrers. This indicates the key claims and defenses of each party are now outlined.

  2. There are disputes over whether the contracts at issue properly named Golden Hammer as a party and whether Golden Hammer has standing to enforce the agreements. JETNET claims the contracts are defective, while Golden Hammer argues any misnaming was a technical error that doesn't invalidate its rights. The court will need to resolve these threshold issues.

@wiseman
wiseman / broadcastify_listen.py
Last active April 15, 2024 22:51
Python 3 code for taking an mp3 stream, such as a police scanner feed from broadcastify, and running it through speech recognition.
"""Does utterance segmentation and speech recognition on an mp3 stream
(like from broadcastify...)
Requires that ffmpeg be installed, and a Microsoft cognitive speech
services API key
(see https://azure.microsoft.com/en-us/try/cognitive-services/?api=speech-services).
"""
import audioop
import collections
@wiseman
wiseman / agent.py
Last active March 30, 2024 12:51
Langchain example: self-debugging
from io import StringIO
import sys
from typing import Dict, Optional
from langchain.agents import load_tools
from langchain.agents import initialize_agent
from langchain.agents.tools import Tool
from langchain.llms import OpenAI
{"features":[{"geometry":{"coordinates":[[104.03997846633071,30.500014319125118,0.0],[104.03997846633071,30.500014319125118,0.0],[104.03997846558002,30.500014320590076,0.0],[104.03997838935855,30.50001446886775,0.0],[104.0399780723623,30.50001510609422,0.10000000149011612],[104.03997791836827,30.50001543525879,0.20000000298023224],[104.0399777776056,30.500015742284077,0.30000001192092896],[104.03997765344245,30.50001601579098,0.5],[104.03997755142437,30.500016242372126,0.699999988079071],[104.03997747728093,30.500016409066706,0.8999999761581421],[104.03997743518065,30.500016506464956,1.2000000476837158],[104.03997745034341,30.500016484838632,1.899999976158142],[104.03997750055206,30.500016380474342,2.4000000953674316],[104.03997756857571,30.500016236488737,2.799999952316284],[104.03997764616679,30.500016070856457,3.299999952316284],[104.03997772780959,30.500015895762992,3.799999952316284],[104.03997780982523,30.500015719389836,4.300000190734863],[104.03997796555181,30.500015383792523,5.300000190734863],[104.0
@wiseman
wiseman / gps.ipynb
Created March 3, 2024 17:23
GPS RF strength analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >N150MT track</name>
<Placemark ><name >N150MT</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>ET602/ETH602</name>
<description><![CDATA[<div style="width:220px; text-align:center;">
<div style="width:210px; text-align:center;">
<div style=" background: #000; color: #fff; font-size: 14px; text-align:left; border: 1px solid #000; padding: 2px 6px; text-shadow: 0 1px 0 #000; box-shadow: 0 1px 3px rgba(0,0,0,0.6); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#808080), color-stop(2%,#303030), color-stop(100%,#0c0c0c));"><span style="font-size: 14px; font-weight: bold;"><a href="https://www.flightradar24.com/flight/et602" style="color: #fff; cursor: pointer;text-decoration: none;">ET602</a></span> / ETH602<br/>Ethiopian Airlines</div>
<div>
<span style="margin: 125px 0 0 10px; color: #f0f0f0; font-size: 0.7em !important; padding: 2px 3px; position: absolute; text-align: right; text-shadow: 0 1px 0 #000; width: 194px; background: -moz-linear-gradient(left, rgba(0,0,0,0)
@wiseman
wiseman / axis2.py
Last active February 24, 2024 16:32
Commands an Axis IP PTZ camera to track aircraft.
#!/usr/bin/env python
# Point a PTZ camera at aircraft.
import math
import time
from typing import Any, Dict, Iterable, List, Union
import urllib.parse
import requests