Skip to content

Instantly share code, notes, and snippets.

View ahoward's full-sized avatar
💭
probably outside if i'm not hacking.

ara.t.howard ahoward

💭
probably outside if i'm not hacking.
  • https://drawohara.io
  • Palmer, Alaska
  • 02:18 (UTC -08:00)
  • Instagram drawohara
View GitHub Profile
@ahoward
ahoward / a.rb
Last active July 11, 2025 19:33
why add an exception tracker to your rails (or ruby) app's dependency list when you already have s3?
# file: app/controllers/concerns/s3_errors.rb
=begin
TL;DR;
class ApplicationController
include S3Errors
end

ABOUT

  • this is sample output from disco, short for discovery
  • disco brings millions of social voices to bear in any AI application
  • in addition to providing insights into disparate voices from a variety of audiences, it gives confirmation of correctness through citations of the actual conversations that inform its analyses
  • disco brings the voice of humans front and center, inside AI
  • we will resist our robot overlords by amplifying the voices of analog inteligence!
  • disco, is a @drawohara joint, to follow along, and gain early access, goto -> https://drawohara.io/disco
  • developer preview API in the works

ABOUT

  • this is sample output from disco, short for discovery
  • disco brings millions of social voices to bear in any AI application
  • in addition to providing insights into disparate voices from a variety of audiences, it gives confirmation of correctness through citations of the actual conversations that inform its analyses
  • disco brings the voice of humans front and center, inside AI
  • we will resist our robot overlords by amplifying the voices of analog inteligence!
  • disco, is a @drawohara joint, to follow along, and gain early access, goto -> https://drawohara.io/disco
  • developer preview API in the works

ABOUT

  • this is sample output from disco, short for discovery
  • disco brings millions of social voices to bear in any AI application
  • in addition to providing insights into disparate voices from a variety of audiences, it gives confirmation of correctness through citations of the actual conversations that inform its analyses
  • disco brings the voice of humans front and center, inside AI
  • we will resist our robot overlords by amplifying the voices of analog inteligence!
  • disco, is a @drawohara joint, to follow along, and gain early access, goto -> https://drawohara.io/disco
  • developer preview API in the works

ABOUT

  • this is sample output from disco, short for discovery
  • disco brings millions of social voices to bear in any AI application
  • in addition to providing insights into disparate voices from a variety of audiences, it gives confirmation of correctness through citations of the actual conversations that inform its analyses
  • disco brings the voice of humans front and center, inside AI
  • we will resist our robot overlords by amplifying the voices of analog inteligence!
  • disco, is a @drawohara joint, to follow along, and gain early access, goto -> https://drawohara.io/disco
  • developer preview API in the works

ABOUT

  • this is sample output from disco, short for discovery
  • disco brings millions of social voices to bear in any AI application
  • in addition to providing insights into disparate voices from a variety of audiences, it gives confirmation of correctness through citations of the actual conversations that inform its analyses
  • disco brings the voice of humans front and center, inside AI
  • we will resist our robot overlords by amplifying the voices of analog inteligence!
  • disco, is a @drawohara joint, to follow along, and gain early access, goto -> https://drawohara.io/disco
  • developer preview API in the works
@ahoward
ahoward / a.py
Last active November 8, 2023 18:14
# current code. BAD.
import uuid
from uuid import UUID
from typing import cast
from dataclasses import dataclass
@dataclass
class DC:
uuid: UUID
# REF: https://platform.openai.com/docs/guides/rate-limits/overview
class RateLimiter < ApplicationRecord
include Tracing
USAGE = -> do
# a multi-process, mutli-thread, multi-machine (assuming shared db), safe rate limiter
# instance level interface
rl = RateLimiter.for(:some, :api, maximum: 1, window: 3)
s = """Gur Mra bs Clguba, ol Gvz Crgref
Ornhgvshy vf orggre guna htyl.
Rkcyvpvg vf orggre guna vzcyvpvg.
Fvzcyr vf orggre guna pbzcyrk.
Syng vf orggre guna arfgrq.
Fcnefr vf orggre guna qrafr.
Ernqnovyvgl pbhagf.
Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
Nygubhtu cenpgvpnyvgl orngf chevgl.
@ahoward
ahoward / a.sh
Created April 6, 2020 18:27
fixes "# mesg: ttyname failed: Inappropriate ioctl for device" warnings during docker build
# fixes "# mesg: ttyname failed: Inappropriate ioctl for device" warnings when building docker
#
echo '#! /bin/sh' > /usr/bin/mesg
chmod 755 /usr/bin/mesg
# all this does is replace the 'mesg' command with a no-op that always succeeds.
# do this *early* in your Dockerfile somewhere.
# from a security persprective this is also fine because it relates to multi-user unix systems,
# not single user/contrained docker images.