Cheatsheets

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

Recurring Events on Rails

Get this gem https://github.com/seejohnrun/ice_cube Go Rails videos https://www.youtube.com/watch?v=0tczntjIrKc https://www.youtube.com/watch?v=-nZedbdrTd8 Drifting Ruby videos https://www.youtube....

  • Updated about 2 hours ago by vince
Create Amazon IAM user

Step 1: https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-startedcreate-admin-group.html Step 2: https://console.aws.amazon.com/iam/home?#/securitycredentials

  • Updated 3 days ago by vince
SendGrid on Heroku

Not sure why everything I looked online makes it look complicated but this worked. And you don't even need to add the SendGrid gem. /config/environments/production.rb ruby config.action_mailer.de...

  • Updated 5 days ago by vince
Installing Bootstrap in Rails 6

% yarn add bootstrap jquery popper.js app/config/webpack/environment.js ```javascript const { environment } = require('@rails/webpacker') const webpack = require('webpack') environment.plugins.ap...

Run Heroku Rails apps in production mode locally

Procfile web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} .env RACK_ENV=production PORT=3000 .gitigore .env % rails assets:precompile % heroku local

  • Updated 8 days ago by vince
Manage Ruby versions with rbenv

update rbenv ``` $ brew upgrade rbenv ruby-build list all available versions: $ rbenv install -l install a Ruby version: $ rbenv install 2.7.1 ``` set default/global version of ruby ~/.rbenv % ls ...

  • Updated 8 days ago by vince
Self Publish on Amazon

Sign in at https://kdp.amazon.com/en_US/ Choose eBook or Paperback (see subtopics below)

Forward root to www on Google Domains

Go to "DNS" > "Synthetic records" Select subdomain forward option in the dropdown menu Enter @ for the subdomain. This represents the naked or root domain. Enter the subdomain URL which is the URL ...

  • Updated 8 months ago by vince
Compute instances

“Google Cloud today announced the launch of its new E2 family of compute instances” https://techcrunch.com/2019/12/11/google-cloud-gets-a-new-family-of-cheaper-general-purpose-compute-instances/

  • Updated 8 months ago by vince
Encrypt your HD on a Mac

Open Disk Utility Click on "Encrypt" Choose APFS encrypted

  • Updated 9 months ago by vince
Revert Git to a previous commit

Working on your own and just want it to work? To revert to a previous commit, ignoring any changes: ruby git reset --hard HEAD To revert to a commit that's older than the most recent commit: ```r...

  • Updated 9 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 10 months ago by vince
Use Git to quickly manage documents on a Mac

/Users/Sosie/Documents/deeds ruby git init git add . git commit -m "init" Work on the docs, make changes and then ruby git commit -a -m "edit summary" If you add a document ruby git add . git com...

  • Updated 10 months ago by vince
Reach IKEA with online order problem

888-888-4532 -> 3 -> 2 -> 3 (missing item) -> 2 (online purchase) Finally got a hold of a rep and she claims that this would reach them sooner 888-888-4532 > 3 > 2 > 4

  • Updated 10 months ago by vince
Setup family sharing

iOS -> settings -> iCloud -> Manage Storage -> Change Storage Plan

  • Updated 12 months ago by vince
Create expiring S3 URLs

Email secure links that expire after a chosen time With Ruby: https://stackoverflow.com/questions/26690490/s3-link-expire-with-aws-sdk With Python: https://medium.com/runascloud/creating-a-secure-u...

  • Updated 12 months ago by vince
Getting Adobe CS5 to work on Mojave

I don't need the new version or want pay a monthly fee and I'm happy enough with CS5 but it does crap out on you if you do a regular installation. Here's how I got photoshop, illustrator, and premi...

Accept credit card payments on your website

https://stripe.com/docs/payments/checkout/client

  • Updated about 1 year ago by vince
Host a website for free on Amazon S3 with SSL

Create a bucket called www.example.com. It's not necessary but I also recommend turning on versioning so it's possible to rollback changes Properties > Static website hosting > Turn on Permissions ...

  • Updated about 1 year ago by vince
Replace batteries for Mazda remote control key fobs

Buy a CR2025 (https://www.amazon.com/Duracell-Lithium-Battery-Lasting-Count/dp/B07G7L5M4J/ref=sr_1_14?crid=1RO433C45NHZ6&keywords=cr2025+battery&qid=1557267362&s=gateway&sprefix=CR2025+%2Caps%2C218...

  • Updated about 1 year ago by vince