Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Eat. Sleep. Code.

Brett Morrison morrisonbrett

💭
Eat. Sleep. Code.
View GitHub Profile
@BoGnY
BoGnY / README.md
Last active Sep 29, 2022
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively
View README.md

[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
@rowanmiller
rowanmiller / Demo.cs
Last active Nov 5, 2019
EF6.x | Correlating SQL to code
View Demo.cs
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure.Interception;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Demo
@tmaiaroto
tmaiaroto / Gruntfile.js
Created Jul 2, 2015
Gruntfile for working with Hugo
View Gruntfile.js
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
shell: {
options: {
stdout: true
},
server: {
@dmichael
dmichael / httpclient.go
Last active Dec 31, 2021
Light wrapper for the Go http client adding (essential) timeouts for both connect and readwrite.
View httpclient.go
package httpclient
import (
"net"
"net/http"
"time"
)
type Config struct {
ConnectTimeout time.Duration