Skip to content

Instantly share code, notes, and snippets.

View alandvgarcia's full-sized avatar
:octocat:
Working from home

Alan D V Garcia alandvgarcia

:octocat:
Working from home
  • Solinftec
  • Araçatuba, São Paulo, Brazil
View GitHub Profile
@alandvgarcia
alandvgarcia / 1-setup.md
Last active August 3, 2022 19:37 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with GPG on MacOS

Last updated June 23, 2022

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

@alandvgarcia
alandvgarcia / Sample.kt
Created July 22, 2020 11:31 — forked from bentrengrove/Sample.kt
Sample code demonstrating using Kotlin for type safe unit conversion
val miles = 1.kilometers.to(Distance.Mile)
val kilometers = 1.miles.to(Distance.Kilometer)
val total = 2.kilometers + 1.miles + 10.meters + 1.centimeter + 1.millimeter
Log.d("MainActivity", "Total distance is ${total.meters.amount} meters")
val totalTime = 2.hours + 2.minutes + 2.seconds + 2.milliseconds
Log.d("MainActivity", "Total time is ${totalTime.amount} ${totalTime.unit}")