redgreen
RSS About
    Jan 25, 2021

    Extend ActiveStorage::Blob with callbacks

    ActiveStorage is currently missing both validations and callbacks, but you can easily extend it with the callbacks you need.

    Jan 24, 2021

    Writing a custom analyzer for ActiveStorage

    Writing custom analyzers for your ActiveStorage blogs is not well documented, but quite easy. This is how I implemented a simple EDI file analyzer for my neverending hobby project.

    Jan 23, 2021

    Manjaro/Arch: transfer packages to another computer

    How to make a backup of all installed packages on a Arch/Manjaro distro, and install them on a different machine.

    Jan 22, 2021

    Getting Norwegian characters on a US keyboard in Linux

    Using a aluminum Apple keyboard in Linux, and getting accessible Norwegian characters like MacOS.

    May 10, 2020

    xterm-kitty: unknown terminal type

    Using kitty terminal emulator on remote sessions

    May 1, 2020

    Temperature module for Polybar

    Setting up a temperature module in Polybar for AMD Ryzen 3950X

    May 1, 2020

    Switching to i3 from XFCE

    My log of configuration changes, when switching from XFCE to i3

    Jan 3, 2017

    Upgrade PostgreSQL from 9.4/9.5 to 9.6

    How to upgrade your homebrew installed PostgreSQL to 9.6

    Jan 3, 2017

    Split your Rails routes into smaller files

    In most monolithic Rails projects, the routes.rb gets huge. Here's a little trick to split it for readability

    Dec 30, 2016

    Five simple guidelines for unit testing

    These guidelines helps you minimize the effort taken to develop and maintain your unit tests

Get in touch!

  • Want to have a chat about code or something else? Email me or tweet @lobolars

Redgreen is a blog about programming, funny code and tech written by Norwegian developer and rubyist Lars O. Overskeid.