Post concise notes that can be used for quick reference here!

Add an email alias on Gmail for a domain in Google Domain

Step 1: Generate your app password On your computer, go to your Google Account. At the left, click Security. Under "Signing in to Google," click App passwords and sign in, if required. If you don...

  • Updated 7 days ago by vince
Build a Rails App With the Shopify Gem

  • Updated 9 days ago by vince
Re-enable Google Workspace email delivery

  • Updated about 1 month ago by vince
TextEdit history/undo/versions

File > Revert To and select "Browse All Versions"

  • Updated about 2 months ago by vince
GPG encrypt and decrypt a file with a passphrase

Encrypt the file bash gpg -c example.txt Clear the cache bash echo RELOADAGENT | gpg-connect-agent Decrypt the file bash gpg -d example.txt.gpg

  • Updated 2 months ago by vince
Rails Multi Environment Credentials

I ended up deleting master.key and credentials.yml.enc since I'd rather use development and production specific keys and credentials per below bash EDITOR="mate --wait" bin/rails credentials:edit -...

  • Updated 2 months ago by vince
Install Tailwind CSS with Rails 6

  • Updated 3 months ago by vince
Host a website for free on Amazon S3 with SSL

Create a bucket (note the region which will be used in step 7) called It's not necessary but I also recommend turning on versioning so it's possible to rollback changes Properties ...

  • Updated 4 months ago by vince
Freeze your credit

I thought I had good privacy hygiene and keep my information safe. But today I got a notice that I got hard inquiries from the following so someone is probably trying to open an account with my ide...

  • Updated 4 months ago by vince
Lua syntax highlighting with nano on mac

bash brew install nano Download to /usr/local/share/nano nano ~/.nanorc include /usr/local/share/nano/lua.nanorc Repe...

  • Updated 4 months ago by vince
Forking, cloning, updating, and creating a pull request on Github

Fork the repo Clone it to your local machine with git clone Make changes and commit Push to GitHub with git push master origin/master Click "Pull Request"

Pessimistic locking in Rails Locking::Pessimistic provides support for row-level locking ruby Account.lock.find(1) Start a transaction and lock at the same time by calli...

  • Updated 7 months ago by vince
Set up CORS on Amazon S3

  • Updated 7 months ago by vince
Use different credit cards for different Heroku apps

  • Updated 7 months ago by vince

bash require 'sidekiq/api' ```yml :verbose: false :concurrency: 15 :max...

  • Updated 7 months ago by vince
Create a random password in Rails

ruby SecureRandom.alphanumeric

  • Updated 8 months ago by vince
Run a Rails server on https and localhost

openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt then rails s -b 'ssl://localhost:3000?key=localhost.key&cert=localhost.crt' This will give y...

  • Updated 8 months ago by vince
Add Stripe to a Rails app

  • Updated 8 months ago by vince
Modeling double entry accounting in a relational database https://c...

  • Updated 9 months ago by vince
Pass persisted params in a Rails form

If the params you want to persist are state and order ruby <% request.params.slice('state', 'order').each do |key, value| %> <%= hidden_field_tag key, value %> <% end %>

  • Updated 9 months ago by vince