Skip to content

Instantly share code, notes, and snippets.

View matusnovak's full-sized avatar

Matus Novak matusnovak

View GitHub Profile
@matusnovak
matusnovak / README.md
Last active November 15, 2024 20:15
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@matusnovak
matusnovak / README.md
Last active November 14, 2024 22:40
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
@matusnovak
matusnovak / next_git_tag.bat
Last active September 7, 2018 08:31
Calculate the next Git tag for your project on AppVeyor
REM This tiny Windows script will calculate the next version number for
REM your Git project using Git tags. This is meant for CI such as AppVeyor.
REM
REM For example:
REM You create a Git project with an initial commit and a tag "v1.0.0"
REM Running this script will do nothing in that case (because there are
REM no new commits since the latest tag).
REM But, if you create another commit and run this script, the calculated
REM version (the next tag) will be v1.0.1. This is calculated based
REM on the latest git commit and if the latest tag points to the commit hash.