Skip to content

Instantly share code, notes, and snippets.

View aloknnikhil's full-sized avatar
🌋

Alok Nikhil aloknnikhil

🌋
View GitHub Profile
@aloknnikhil
aloknnikhil / 1-setup.md
Created October 24, 2019 10:19 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

Keybase proof

I hereby claim:

  • I am aloknnikhil on github.
  • I am aloknnikhil (https://keybase.io/aloknnikhil) on keybase.
  • I have a public key whose fingerprint is DA88 D486 65B6 35CB 156E 693E 64F6 1524 BE77 3853

To claim this, I am signing this object:

@aloknnikhil
aloknnikhil / caching.ex
Created February 2, 2019 00:32 — forked from sb8244/caching.ex
Local/Distributed Caching
defmodule MyApp.AccountLookup.Cache do
@moduledoc """
Provides a cache that can be used for account lookups. This cache is backed by
Cachex for local storage and pg2 for remote distribution. Keys are set to expire
after 7-10 days (randomly distributed) in order to prevent stale data in our cache
over a long time period.
"""
use Cachex.DistributedCache