Skip to content

Instantly share code, notes, and snippets.

View ridays2001's full-sized avatar
❤️
My name means a heart.

Riday ♡ ridays2001

❤️
My name means a heart.
View GitHub Profile
@SagnikPradhan
SagnikPradhan / useForm.ts
Last active January 8, 2021 05:16
🎣 useForm hook. Simple as it can get
import { Dispatch, useReducer } from "react"
import * as z from "zod"
/**
* useForm hook
*/
export function useForm<
F extends string,
A,
B extends z.ZodTypeDef,
@BoGnY
BoGnY / README.md
Last active March 12, 2024 15:53
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify