Mike Coutermarsh
  • Home
  • About
  • Twitter
  • GitHub
Sign in Subscribe

Better Sharing on Product Hunt

  • Mike Coutermarsh

Mike Coutermarsh

Dec 22, 2015

View this post on Medium.

Get notified of new posts

Enter your email
Subscribe

Building a webhooks service

I recently had the chance to work on building webhooks for PlanetScale. As part of this, I learned quite a lot about the possible security vulnerabilities that running a webhooks service can expose you too. You might be surprised with all the risks there are! Everything I learned is over
Nov 21, 2023 3 min read

Easy Rails controller rate limiting with Rails.cache

Here's an easy trick I reach for when wanting to add simple rate limiting to an endpoint. def special_endpoint model = Model.find(params[:id]) cache_key = "rate_limit:mymodel:#{model.id}" # If the key exists, we rate limit if Rails.cache.fetch(cache_key) return render json: { code: "too_
Oct 19, 2023 1 min read

How dare you test a private method

I feel inspired to talk more about “testing a private method” (gasp!). Since people seem to get upset about it. Where did this idea of it being bad even come from? I remember when learning to code it was all over the place. Blog posts, books, podcasts. I remember being
Sep 27, 2023 1 min read
Mike Coutermarsh © 2023
  • HTML/CSS to Image API
  • Twitter
  • GitHub
  • LinkedIn