Skip to content

Instantly share code, notes, and snippets.

View semeano's full-sized avatar
🔧
Remote

Pedro Semeano semeano

🔧
Remote
View GitHub Profile
@semeano
semeano / signing-git-commits.md
Created March 8, 2022 21:41 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@semeano
semeano / keybase.md
Created November 23, 2021 14:21 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@semeano
semeano / README.md
Last active March 18, 2021 14:11
Code review checklist

Source: https://github.com/mgreiler/code-review-checklist

--

Code Review Checklist

Implementation

  • Does this code change accomplish what it is supposed to do?
  • Can this solution be simplified?
  • Does this change add unwanted compile-time or run-time dependencies?
@semeano
semeano / conventionalcommits.md
Last active June 4, 2020 08:32
Conventional Commits cheat sheet

Example of commit message convention:

<type>(<scope>): <subject>

<body>

<footer>
@semeano
semeano / keybase.md
Created April 14, 2020 18:02
Keybase github identity proof.

Keybase proof

I hereby claim:

  • I am semeano on github.
  • I am semeano (https://keybase.io/semeano) on keybase.
  • I have a public key ASCZRxxQgVwauMKMUH0ZNqv6gflVM64a1_u-kD_zcl_HJgo

To claim this, I am signing this object:

@semeano
semeano / integerToRomanNumeral.js
Created March 12, 2020 19:00
[JavaScript] Convert an integer to roman numeral
function integerToRomanNumeral(n) {
let roman = {
1: "I",
2: "II",
3: "III",
4: "IV",
5: "V",
6: "VI",
7: "VII",
@semeano
semeano / ng-draggie.js
Created May 4, 2016 11:40
Simple drag-and-drop AngularJS directive
/*
ng-draggie
A simple drag-and-drop AngularJS directive
Usage:
(on your view)
@semeano
semeano / install.sh
Created February 29, 2016 19:51
Install nodejs and npm using the binaries. This is useful for installing the latest version of node on RaspberryPi.
# Download the right version from here: https://nodejs.org/dist
# Raspberry Pi 1: armv6
# Raspberry Pi 2: armv7
# Raspberry Pi 3: armv8
# Extract
tar -xzvf node-v5.7.0-linux-armv6l.tar.gz;
# Move folder
sudo mv node-v5.7.0-linux-armv6l /opt/node
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )