Skip to content

Instantly share code, notes, and snippets.

View emory's full-sized avatar
💭
threat modeling AI in a lab

Emory L. emory

💭
threat modeling AI in a lab
View GitHub Profile
@emory
emory / 2025-US-HR1-119th-Congress_analyze-claims_fabricAI
Created July 12, 2025 14:34
analyze_claims against "the big bloated bill"
❯ analyze_bill https://www.congress.gov/bill/119th-congress/house-bill/1/text
# BILL ANALYSIS: H.R. 1 - Lower Energy Costs Act
## METADATA
- **Bill Number**: H.R. 1 (119th Congress)
- **Title**: Lower Energy Costs Act
- **Sponsor**: Rep. Cathy McMorris Rodgers (R-WA)
- **Introduction Date**: January 9, 2023
- **Committee**: House Committee on Energy and Commerce
@emory
emory / no-ads-for-YouTube-Geography.md
Created July 8, 2025 16:06
where you should assign your Mullvad exit node for YouTube viewing.

Here's a more organized and formatted list of countries where YouTube doesn't display advertising.

Countries Where YouTube Doesn't Display Ads

Africa:

Benin Botswana Burkina Faso Burundi

@emory
emory / Building a Home Assistant AI Voice Assistant Playbook from Forum Thread Analysis.md'
Last active June 2, 2025 15:55
NathanCu@HASS's Guide to Building Agentic Home Assistant AI Voice Assistant
# Replicating Friday: A Guide to Building an Agentic Home Assistant AI Voice Assistant
> condensed and arranged from NathanCu's thread on the HomeAssistant forums: https://community.home-assistant.io/t/fridays-party-creating-a-private-agentic-ai-using-voice-assistant-tools/855862
> i used fabric to grab it and carve it up for me to run it through Gemini for the resulting documentation below for review, as it wasn't obviously documented anywhere and this information is too good to get lost in a forum post.
> --@emory
## Introduction: Embracing the Agentic AI Philosophy
Nathan Curtis's "Friday" project is a deep dive into creating a truly "agentic" AI within Home Assistant, moving beyond simple command-and-control to enable proactive, reasoning, and conversational interactions. This guide distills Nathan's insights, code, and architectural decisions, aiming to provide a playbook for those looking to build a similar sophisticated AI assistant.
@kudoh
kudoh / google-search.ts
Created October 9, 2024 09:22
OpenAI Realtime API with Function calling
import { customsearch } from '@googleapis/customsearch';
const API_KEY = process.env.CSE_API_KEY ?? '';
const ENGINE_ID = process.env.CSE_ENGINE_ID ?? '';
export async function webSearch({ query }: { query: string }) {
console.log('Web Search:', query);
const api = customsearch({
auth: API_KEY,
version: 'v1'
@usrbinkat
usrbinkat / README.md
Last active July 13, 2025 18:36
Ollama + Open-Webui + Nvidia/CUDA + Docker + docker-compose

image

UPDATE: This is tested and working on both Linux and Windows 11 used for LlaMa & DeepSeek

Here's a sample README.md file written by Llama3.2 using this docker-compose.yaml file that explains the purpose and usage of the Docker Compose configuration:

ollama-portal

A multi-container Docker application for serving OLLAMA API.

@hstagner
hstagner / apple-notes-shortcuts.md
Last active April 12, 2025 12:42
Apple Notes Shortcuts
@emory
emory / Ueshiba in the Morning
Last active May 17, 2024 21:05
asked AI about morning rituals of O'Sensei
After creating Aikido, Morihei Ueshiba (often referred to as O-Sensei, or 'Great Teacher') was known for his stringent and disciplined daily routine, which heavily emphasized both physical and spiritual practices. His morning routine, although not detailed to the minute, typically included:
1. **Misogi** - A Shinto purification ritual that sometimes involved standing under a cold waterfall or engaging in deep breathing exercises. This was meant to purify the body and spirit.
2. **Prayer and Meditation** - Ueshiba dedicated time every morning to prayer and meditation, focusing on harmonizing his spirit with the universe, which was a core philosophy in Aikido.
3. **Aikido Training** - He practiced Aikido rigorously every morning. His training was not just a physical exercise but also a form of moving meditation and a way to further understand and develop the principles of Aikido.
4. **Farming and Gardening** - Ueshiba also spent time working on his farm. He believed in the value of hard, physical work and s
@Artefact2
Artefact2 / README.md
Last active July 15, 2025 01:30
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggml-org/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <[email protected]>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@Drallas
Drallas / High Available Pi-hole failover cluster using Keepalived and Orbital Sync.md
Last active July 11, 2025 17:29
High Available Pi-hole failover cluster using Keepalived and Orbital Sync