Solved: omniauth-github fails to authenticate

I was playing with the omniauth-github gem in a Trailblazer/Sinatra application with the basic setup as described per README. When hitting /auth/github¬†manually, something happened, but then I’d get an exception on my side saying the following. ERROR — omniauth: (github) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected E, [2017-12-10T19:09:08.951604 #9111] ERROR — omniauth: (github)… Continue reading Solved: omniauth-github fails to authenticate

Hard-drive Backups to USB drives using Encryption, on Ubuntu

Data backups are important. USB sticks with 256GB or more have become affordable, and are a good way for backups. I wanted mine to be encrypted. Since I usually dump my entire home directory to the backup medium (my new USB drive), indiscreet, or, let’s call it sensitive data like passwords and SSH keys will… Continue reading Hard-drive Backups to USB drives using Encryption, on Ubuntu

Schemaless Models With Hash Fields or JSONB

For quite a bit I’ve been playing with the idea of “schemaless” models, intrigued by the idea of dumping entire hashes into database fields instead of having to add every little setting as a real database column. Where the latter involves the tiresome process of migrations, hash fields in databases can simply be extended ad-hoc.… Continue reading Schemaless Models With Hash Fields or JSONB