Skip to content

Instantly share code, notes, and snippets.

View philihp's full-sized avatar
👨‍💻
Turning caffeine into code

‮Philihp Busby philihp

👨‍💻
Turning caffeine into code
View GitHub Profile
@philihp
philihp / goon-voice-SKILL.md
Created November 17, 2026 09:13
goon-voice-SKILL.md
name goon-voice
description Draft EVE-mail replies in the voice of a Goonswarm Federation goon. Use when answering in-game mail for a goon pilot, or when you need goon culture, history, people, slang or running jokes.

Writing EVE mail like a goon

You are drafting EVE-mail replies for a pilot in Goonswarm Federation (GSF), the lead alliance of The Imperium. The reply must read like a real goon wrote it. Goons are funny, profane, smug, well informed and loyal to each other. They are never lazy cruel. This file holds what a goon knows: where we came from, how we talk, who our people are, what we fought, and the jokes everyone gets.

It is distilled from the old Goon wiki (about 2,500 pages, written 2005–2022; the writing stops around 2022). The current year is 2026. The history here is old history, not the news. Facts after 2022 are not here, except the few in "Where we live now". If a mail needs something newer, stay vague and do not invent it.

@philihp
philihp / index.cjs
Last active July 5, 2024 23:11
openskill-test
const openskill = require('openskill')
console.log(openskill);
@philihp
philihp / dayOfWeek.test.ts
Last active May 24, 2023 07:47
Day of Week
import { getDayOfWeek } from './dayOfWeek'
import test from 'node:test'
import assert from 'node:assert/strict'
describe('dayOfWeek', () => {
test('returns Sunday', () => {
assert.strictEqual(getDayOfWeek(1), ('Sunday'))
})
test('returns Monday', () => {
assert.strictEqual(getDayOfWeek(2), ('Monday'))
export const append = (demo = '', file = '') => {
const params = new URLSearchParams({
...(file ? { file } : {}),
ctl: 1,
embed: 1,
})
return `/${demo}?${params}`
}
@philihp
philihp / arizona.jsx
Last active November 19, 2022 02:22
histogram of arizona votes for congress
const W = (n) => `${Math.ceil(n / 500)}px`;
const baseBar = {
display: 'inline-block',
paddingTop: '8px',
paddingBottom: '8px',
overflow: 'hidden',
textOverflow: 'ellipsis',
fontFamily: 'Helvetica',
};
@philihp
philihp / benchmark.js
Last active March 23, 2022 18:03
Functional Benchmarks
const Benchmark = require("benchmark");
const Suite = new Benchmark.Suite();
const numColumns = 3;
const arr = Array(100).map((_, i) => i);
const testControl = (index) => {
const ret = [];
for (let kk = 0; kk < numColumns; kk++) {
const item = data[index * numColumns + kk];
@philihp
philihp / ec2-airflow.md
Last active April 14, 2023 00:34
How to get Apache Airflow running on a bare AWS EC2 node

How to get Apache Airflow running on a bare AWS EC2 node

Amazon Managed Workflows for Apache Airflow (AWS MWAA) is prohibitively expensive for someone tinkering around on a personal account, and unprepared to pay a few hundred dollars a month at a minimum for their smallest environment. Here are the commands I used to get it running on Ubuntu 20.

Prepare the box

sudo apt-get update
@philihp
philihp / setup.sh
Created June 15, 2021 19:58
Setting up Apache Superset on an AWS Amazon Linux AMI in 2021
sudo yum update -y
# install Docker
# RE: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# install docker-compose
# RE: https://docs.docker.com/compose/install/
@philihp
philihp / install-asdf-with-nodejs.md
Created June 25, 2020 02:59
Installing ASDF with NodeJS

Install packages from Brew

brew install asdf
brew install gnupg

Create/update an asdf repo

if [ ! -d ~/.asdf ]; then
 git clone https://github.com/asdf-vm/asdf.git ~/.asdf
@philihp
philihp / gist:e14f40c974834e47704e85918ab61471
Created June 4, 2020 03:17
60f23428-ffa8-4a73-90b9-e11e0b7ed852
see rfong