# Writing

> Notes on Rails, podcasting, and the long unglamorous middle. Occasionally proofread.

- [Exporting my Pieces code snippets to Obsidian](https://andrewm.codes/p/exporting-my-pieces-code-snippets-to-obsidian.md): Pieces put memories behind a paid plan, so I pulled 358 saved snippets out of its local API and turned them into plain Markdown I own.
- [Kill Process Running on a Specific Port](https://andrewm.codes/p/kill-process-on-port.md): I often have to kill processes that weren't stopped correctly on different ports and can never remember the command.
- [Living with ADHD: The Benefits of Openness and Vulnerability](https://andrewm.codes/p/adhd.md): Adventures in adjusting to life with ADHD - Join me on my journey as I talk about working with, and understanding, my ADHD diagnosis.
- [INTP: My Personality Type](https://andrewm.codes/p/personality.md): Notes on my INTP personality type, how I relate to the description, and why it helps explain how I think and work.
- [How to Add a Progress Bar Around Your Twitter Avatar](https://andrewm.codes/p/twitter-avatar.md): Add a personalized progress bar to your Twitter avatar with the help of BlackMagic.so's Profile Progress Bar Tool. Follow me on Twitter to see it in motion!
- [Minimalist Habit Tracking Template for Obsidian](https://andrewm.codes/p/minimalist-habit-tracker-template-for-obsidian.md): A short tutorial on how to build a minimalist habit tracker template for Obsidian using the Dataview plugin.
- [Create Repository from Current Directory with the GitHub CLI](https://andrewm.codes/p/gh-create-repo.md): Use gh to create a repo using your current directory as the source and push to GitHub without having to set your upstream.
- [How to Deploy Your Bridgetown Site to Github Pages](https://andrewm.codes/p/deploy-bridgetown-to-github-pages.md): It has never been easier to deploy your Bridgetown site to GitHub Pages thanks to a new bundled configuration in Bridgetown v1.0
- [Enable Repeating Keys in VS Code on macOS](https://andrewm.codes/p/vscode-enable-repeating-keys-macos.md): If you want to use Vim in VS Code, you have to enable repeating keys, which can be frustrating if you are new to Vim.
- [Install Brew on an Intel Mac](https://andrewm.codes/p/brew-install-intel-mac.md): The one-liner that installs Homebrew on an Intel Mac running macOS Monterey, the PATH export it needs in ~/.zshrc, and how to verify with brew doctor.
- [Install Brew on a M1 Mac](https://andrewm.codes/p/brew-install-m1-mac.md): The one-liner that installs Homebrew on an M1 Mac running macOS Monterey, the /opt/homebrew shellenv line for ~/.zprofile, and how to verify it.
- [Stop Hoarding Notes](https://andrewm.codes/p/stop-hoarding-notes.md): My ideas on why you should become just as comfortable deleting notes as you do code
- [Getting Started with Obsidian](https://andrewm.codes/p/getting-started-with-obsidian.md): A beginners guide to setting up Obsidian, an advanced markdown note taking app, for the first time.
- [Alfred Custom Terminal Snippet](https://andrewm.codes/p/alfred-custom-terminal.md): An AppleScript that wires Alfred's terminal integration to a custom terminal like Warp or Archipelago, plus the Alfred settings that enable it.
- [How to Unhide Desktop Icons on macOS](https://andrewm.codes/p/unhide-macos-desktop-icons.md): If your desktop icons disappear, you may need to toggle the desktop back on via the command line.
- [How to install Ruby on Rails 6.1 with asdf on macOS Big Sur](https://andrewm.codes/p/how-to-install-ruby-on-rails-6-1-with-asdf-on-macos-big-sur.md): Setup Ruby, Node, and PostgreSQL with asdf to quickly get up and running with Rails
- [Automating Ruby Gem Releases with GitHub Actions](https://andrewm.codes/p/automating-ruby-gem-releases-with-github-actions.md): Automate Ruby gem releases with GitHub Actions and Release Please: conventional-commit versioning, changelog generation, and publishing to RubyGems.
- [Redesigning my website](https://andrewm.codes/p/redesigning-my-website.md): Why and how I rebuilt andrewm.codes with Bridgetown to put content first, and the stack behind it: ERB, Tailwind CSS, and Strapi.
- [Webpacker 6: Image Asset Guide](https://andrewm.codes/p/webpacker-6-image-asset-guide.md): How to serve images and SVGs from a Webpacker 6 Rails app using require.context and asset_pack_path. Part of the archived Webpacker 6 guide.
- [Webpacker 6: Troubleshooting Guide](https://andrewm.codes/p/webpacker-6-troubleshooting-guide.md): Tools and techniques for debugging Webpacker 6 and Webpack build errors in Rails. Archived, since Webpacker is no longer maintained.
- [Webpacker 6: SCSS/Sass Loaders](https://andrewm.codes/p/webpacker-6-scss-sass-loaders.md): How to compile SCSS and Sass in a Webpacker 6 Rails app with sass-loader and sass. Part of the archived Webpacker 6 upgrade guide.
- [Webpacker 6: PostCSS Loaders](https://andrewm.codes/p/webpacker-6-postcss-loaders.md): How to process .pcss files in Webpacker 6 with postcss-loader and PostCSS 8. Part of the archived Webpacker 6 upgrade guide.
- [Webpacker 6: CSS Loaders](https://andrewm.codes/p/webpacker-6-css-loaders.md): How to process CSS in Webpacker 6 with css-loader, style-loader, and mini-css-extract-plugin. Part of the archived Webpacker 6 upgrade guide.
- [Webpacker 6: Tailwind CSS 2.0 Integration](https://andrewm.codes/p/webpacker-6-tailwind-css-2-0-integration.md): How to add Tailwind CSS 2.0 to a Rails 6 app running Webpacker 6 with PostCSS. Archived, since Webpacker is no longer maintained.
- [Webpacker 6: Upgrade Guide](https://andrewm.codes/p/webpacker-6-upgrade-guide.md): Upgrade a Rails app from Webpacker 5 to 6: the Gemfile bump, the install task, and the new pack tags. Part of the archived Webpacker 6 guide.
- [Webpacker 6: Tutorial Setup](https://andrewm.codes/p/webpacker-6-tutorial-setup.md): Set up a demo Rails 6.1 app to follow along with the archived Webpacker 6 upgrade series, from new app to root route.
- [Webpacker 6](https://andrewm.codes/p/webpacker-6.md): An archived guide to setting up and upgrading Webpacker 6 in Rails applications, including loaders, assets, and verification steps.
- [gem install mysql2](https://andrewm.codes/p/gem-install-mysql2.md): How to fix the mysql2 gem's 'library not found for -lssl' native extension error on macOS using cmake and OpenSSL build flags.
- [Ruby's Shovel Method: Digging Deeper](https://andrewm.codes/p/ruby-s-shovel-method-digging-deeper.md): A short, fun look at Ruby's shovel operator (<<): what it does on arrays and strings, and why you can chain it even though you probably shouldn't.
- [How I Use VSCode](https://andrewm.codes/p/how-i-use-vscode.md): A snapshot of my Visual Studio Code setup: the settings and extensions I use day to day, shared via How I VSCode.
- [15 Resources I Learned Something From This Weekend](https://andrewm.codes/p/15-resources-i-learned-something-from-this-weekend.md): A weekend roundup of 15 things worth your time: five Ruby on Rails blog posts, five open source projects, and five podcast episodes.
- [8 Tailwind CSS resources to help your next project takeoff](https://andrewm.codes/p/8-tailwind-css-resources-to-help-your-next-project-takeoff.md): Eight Tailwind CSS resources to speed up your next project: component libraries, typography and layout helpers, and developer-experience plugins.
- [How to inline SVG files in your Bridgetown site](https://andrewm.codes/p/how-to-inline-svg-files-in-your-bridgetown-site.md): A short tutorial on how to inline SVG files in your Bridgetown site with bridgetown-svg-inliner.
- [Creating a blog with Bridgetown and Netlify CMS](https://andrewm.codes/p/creating-a-blog-with-bridgetown-and-netlify-cms.md): A step-by-step tutorial on adding Netlify CMS to a Bridgetown site so you can edit and publish content from a Git-backed admin UI.
- [Rails 6 Band-Aid for Webpacker::Manifest::MissingEntryError](https://andrewm.codes/p/rails-6-band-aid-for-webpacker-manifest-missingentryerror.md): A workaround for Webpacker::Manifest::MissingEntryError in the Rails 6 test environment: force Webpacker to compile test packs from your test helper.
- [Build and deploy a static site with Ruby, Bridgetown, TailwindCSS, and Netlify](https://andrewm.codes/p/build-and-deploy-a-static-site-with-ruby-bridgetown-tailwindcss-and-netlify.md): Build a Bridgetown static site with Tailwind CSS and deploy it to Netlify. This older tutorial is archived but still useful.
- [Instantly speed up your Rails application by self-hosting your fonts](https://andrewm.codes/p/instantly-speed-up-your-rails-application-by-self-hosting-your-fonts.md): Improve Rails page speed by self-hosting web fonts instead of relying on third-party font CDNs.
- [Rails Coverage Tools: CodeFactor](https://andrewm.codes/p/rails-coverage-tools-codefactor.md): Add CodeFactor to a Ruby on Rails application for automated code review, repository analysis, and README status badges.
- [A11Y in Rails: Automated Linting with AccessLint🎉](https://andrewm.codes/p/a11y-in-rails-automated-linting-with-accesslint.md): Add automated accessibility (a11y) linting to a Ruby on Rails app with AccessLint, which flags issues on every pull request before they ship.
- [Rails Coverage Tools: Coverband](https://andrewm.codes/p/rails-coverage-tools-coverband.md): Add Coverband to a Rails application to measure production code usage and find unused Ruby code, gems, and views.
- [Stopping a runaway Rails server](https://andrewm.codes/p/stopping-a-runaway-rails-server.md): How to stop a runaway Ruby on Rails server that won't quit on ctrl-c, using the shutup gem to kill it with a single command.
- [Hiding Ruby 2.7 Deprecation Warnings in Rails 6](https://andrewm.codes/p/hiding-ruby-2-7-deprecation-warnings-in-rails-6.md): Three ways to silence noisy Ruby 2.7 deprecation warnings in a Rails 6 app using the RUBYOPT environment variable.
- [How to set up Ruby on Rails 6 and TailwindCSS 1.1.4](https://andrewm.codes/p/how-to-set-up-ruby-on-rails-6-and-tailwindcss-1-1-4.md): Build a Rails 6 app with Tailwind CSS 1.1.4, including setup, Webpack, scaffolding, configuration, and styled views.
- [CI for Ruby on Rails: GitHub Actions vs. CircleCI](https://andrewm.codes/p/ci-for-ruby-on-rails-github-actions-vs-circleci.md): The finale of a three-part series on CI for Ruby on Rails, comparing GitHub Actions and CircleCI to help you choose the right setup.
- [CI for Ruby on Rails: CircleCI](https://andrewm.codes/p/ci-for-ruby-on-rails-circleci.md): Part two of a CI for Ruby on Rails series: build a complete CircleCI pipeline with Docker images, caching, database setup, tests, and linters.
- [Use Tailwind CSS 1.1 in your Rails App](https://andrewm.codes/p/use-tailwind-css-1-0-in-your-rails-app.md): A step-by-step walkthrough of adding Tailwind CSS 1.1 to a new Ruby on Rails app with Webpacker, from the npm install through PostCSS configuration.
