Rubble from my attempt to do an impromptu screen-share to chrome on my google-tv for my kids.
Doesn't work, but I think it might be kind of close.
Links:
| require 'parallel' # gem install parallel (https://github.com/grosser/parallel) | |
| # Monkey patch to Sprockets::StaticCompiler, a class provided by actionpack | |
| # that's used by the assets:precompile task. This patch uses the Parallel gem | |
| # to parallelize asset compilation in the simplest way possible. | |
| # | |
| # Parallel wraps Process.fork to handle things like inter-process communication | |
| # via pipes and determining the maximum number of processes to run based on | |
| # your system's total logical processors. So far only tested on MRI 1.9.3 on OS X. | |
| module Sprockets |
| # Make sure you do this from time to time: | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| # Here are the actual packages (feel free to contribute): | |
| sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev nodejs libssl-dev libreadline6-dev libreadline-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev ncurses-term automake libtool bison subversion libcurl4-openssl-dev mysql-client mysql-server postgresql postgresql-contrib imagemagick libmagickwand-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev redis-server vim -y | |
| # Make default editor vim :) | |
| echo "export EDITOR=vim" >> ~/.bashrc | |
| # Install RVM |
Rubble from my attempt to do an impromptu screen-share to chrome on my google-tv for my kids.
Doesn't work, but I think it might be kind of close.
Links:
This is a collection of links, examples and rants about Presenters/Decorators in Rails.
The "Decorator" pattern slowly started gaining popularity in Rails several years ago. It is not part of core Rails, and there's many different interpretations about how it should work in practice.
Jay Fields wrote about it in 2007 (before he switched back to Java and then Clojure): http://blog.jayfields.com/2007/03/rails-presenter-pattern.html
| #!/usr/bin/env bash | |
| # Generic macOS workstation setup | |
| # | |
| # A pragmatic, public bootstrap for developer / technical-productivity Macs. | |
| # It installs Homebrew, common CLI utilities, runtimes, terminal/editor/agentic | |
| # coding apps, viewers, media tools, and a curated font set. | |
| # | |
| # Philosophy: | |
| # - Open-source / cross-platform first. | |
| # - Commercial apps only when explicitly useful/common for this workflow. |
PI is a TypeScript toolkit for building AI agents. It's a monorepo of packages that layer on top of each other: pi-ai handles LLM communication across providers, pi-agent-core adds the agent loop with tool calling, pi-coding-agent gives you a full coding agent with built-in tools, session persistence, and extensibility, and pi-tui provides a terminal UI for building CLI interfaces.
These are the same packages that power OpenClaw. This guide walks through each layer, progressively building up to a fully featured coding assistant with a terminal UI, session persistence, and custom tools.
By understanding how to compose these layers, you can build production-grade agentic software on your own terms, without being locked into a specific abstraction.
Pi was created by @badlogicgames. This is a great writeup from him that explains some of the design decisions made when creating it.