Skip to content

Instantly share code, notes, and snippets.

View DeCentN2Madness's full-sized avatar
🕔
travelling through space and time

Jeff Hales DeCentN2Madness

🕔
travelling through space and time
View GitHub Profile

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@DeCentN2Madness
DeCentN2Madness / git-notes.md
Created March 29, 2024 17:20 — forked from topheman/git-notes.md
Git notes cheat sheet
@DeCentN2Madness
DeCentN2Madness / gpg-ssh-setup.md
Created March 2, 2024 02:15 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@DeCentN2Madness
DeCentN2Madness / ghpwithnamecheap.md
Created February 6, 2024 18:20 — forked from plembo/ghpwithnamecheap.md
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

@DeCentN2Madness
DeCentN2Madness / conventional-commits.md
Created October 1, 2023 00:54 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@DeCentN2Madness
DeCentN2Madness / flake.nix
Created January 29, 2023 00:28 — forked from drupol/flake.nix
Flake for NodeJS dev
{
description = "The NodeJS development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@DeCentN2Madness
DeCentN2Madness / .envrc
Created January 26, 2023 00:04 — forked from patrl/.envrc
Boilerplate for a nice haskell hacking experience, with nix, direnv, lorri, cabal new-*, and ghcide
eval "$(lorri direnv)"
@DeCentN2Madness
DeCentN2Madness / configuration.nix
Created September 17, 2022 18:14 — forked from lukego/configuration.nix
NixOS configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, _pkgs, ... }:
let pkgs = import <nixpkgs> { overlays = [ (import "/home/luke/git/nixos-rocm") ]; }; in
{
@DeCentN2Madness
DeCentN2Madness / init-haskell.sh
Created September 12, 2022 02:12 — forked from oneingan/init-haskell.sh
Basic nix haskell setup
#!/usr/bin/env bash
set -Eeuxo pipefail
# Set up git
git init
gitignore haskell
echo '*.cabal' >> .gitignore
# Set up niv
niv init