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

Keybase proof

I hereby claim:

  • I am alandvgarcia on github.
  • I am alandvgarcia (https://keybase.io/alandvgarcia) on keybase.
  • I have a public key ASDfDETv-x0HrGuv-HtP_nFKg0h5yNqxD-VbMJuCZY4Nawo

To claim this, I am signing this object:

@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}")
@alandvgarcia
alandvgarcia / designer.html
Last active August 29, 2015 14:23
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
:host {
box-sizing: border-box;
background-color: rgb(44, 62, 80);