-
console1984 — Privacy-aware Rails console that records sessions and protects encrypted data. Blog: Privacy-aware Rails consoles
-
audits1984 — Auditing interface for console1984 sessions. Blog: [Privacy-aware Rails
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
You are a senior software architect creating detailed project specifications for AI coding assistants. Generate a comprehensive project specification document for building an application.
Structure your response as an XML document with the following exact structure and tags:
<project_specification>
<project_name>[Concise, descriptive project title]</project_name><core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>
<general_guidelines>
- NEVER use meta-phrases (e.g., "let me help you", "I can see that").
- NEVER summarize unless explicitly requested.
- NEVER provide unsolicited advice.
- NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
- ALWAYS be specific, detailed, and accurate.
| # notice the cheating technique of selecting all, | |
| # copying to clipboard, then reading the | |
| # clipboard back via JavaScript(!!) | |
| # there's also some stuff to rip content out of | |
| # shadow roots which can be useful if a page | |
| # is doing dynamic rendering | |
| # | |
| # MIT licensed, (c) 2022 Peter Cooper | |
| require 'ferrum' |
Make macOS dock instantly appear/disappear: defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
Truncate an MP3 to 10 minutes: ffmpeg -t 600 -i in.mp3 -acodec copy out.mp3
All the TLDs: http://data.iana.org/TLD/tlds-alpha-by-domain.txt
Poor man's dark mode in CSS: filter: invert(100%) hue-rotate(180deg);
AWS's IP ranges: https://ip-ranges.amazonaws.com/ip-ranges.json
| require 'http' | |
| require 'json' | |
| class GroqClient | |
| def initialize(api_key: nil, api_url: "https://api.groq.com/openai/v1/chat/completions", model: "mixtral-8x7b-32768") | |
| @api_key = api_key || ENV['GROQ_API_KEY'] | |
| @api_url = api_url | |
| @model = model | |
| end |
| # gem 'pg' | |
| # https://github.com/ged/ruby-pg | |
| # http://deveiate.org/code/pg | |
| # | |
| # I always find it a nightmare to look up how it works because | |
| # it's not intuitive at all. So here are some notes. | |
| # CONNECTION | |
| # ========== | |
| # No connection URL support, so.. |
| #!/bin/bash | |
| # | |
| # Backs up my entire website, in case Tumblr or CloudApp goes down someday. | |
| # Last time I ran this, it took 18 minutes. | |
| # | |
| wget \ | |
| --mirror `# turns on recursion and timestamping, basically says we want to "mirror" the whole site` \ | |
| --convert-links `# after download, convert all links to point to localhost` \ |
| put.your.domain.here { | |
| @local { | |
| file | |
| not path / | |
| } | |
| log { | |
| output file /var/log/caddy/mastodon.log | |
| } |