Skip to content

Instantly share code, notes, and snippets.

View jerry80409's full-sized avatar
:shipit:
harder better faster

jerry80409 jerry80409

:shipit:
harder better faster
View GitHub Profile
@jerry80409
jerry80409 / GPG and git on macOS.md
Created October 11, 2024 16:40 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@jerry80409
jerry80409 / FunctionalUtils.java
Created February 17, 2022 04:21 — forked from prskr/FunctionalUtils.java
Functional `try-with-resources`
import java.util.function.Supplier;
/**
* Utility class for functional extensions
*
* @author Peter Kurfer
*/
public abstract class FunctionalUtils {
private FunctionalUtils() {
@jerry80409
jerry80409 / git-deployment.md
Created September 2, 2021 03:30 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.