Skip to content

Instantly share code, notes, and snippets.

@trangtungn
trangtungn / setup-multiple-github-accounts.md
Last active September 16, 2024 08:12 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC
@trangtungn
trangtungn / middleware.rb
Created May 12, 2024 01:52 — forked from rubenmoya/middleware.rb
Rails middleware to convert request params and response data from camelCase to snake_case
module CaseConverter
class Transformations
class << self
def transform(value)
case value
when Array then value.map { |item| transform(item) }
when Hash then value.deep_transform_keys! { |key| transform(key) }
when String then camelize(value)
else value
end
@trangtungn
trangtungn / postgres-brew.md
Last active September 28, 2022 19:10 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update