Skip to content

Instantly share code, notes, and snippets.

@snormore
snormore / signing-git-commits.md
Last active May 4, 2024 19:33 — 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
@snormore
snormore / Dockerfile
Created December 27, 2016 01:20 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install git-core git-gui git-doc redis-server mysql-server mongodb postresql ruby-full libmysqlclient15-dev libxml2-dev libxslt-dev python-setuptools python-dev
#install pip and virtualenv
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
#setup virtualenvs
mkdir ~/virtualenvs
@snormore
snormore / elasticsearch-ubuntu-install.sh
Last active December 15, 2015 07:49
Install ElasticSearch on Ubuntu
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share