Skip to content

Instantly share code, notes, and snippets.

View hxtree's full-sized avatar

Matthew Heroux hxtree

View GitHub Profile
@stufield
stufield / GitHub-private-mirror.md
Last active June 30, 2025 02:47
Create private repo with public mirror
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 21, 2026 22:50
Conventional Commits Cheatsheet
@santisbon
santisbon / Search my gists.md
Last active December 31, 2025 14:22
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@wojteklu
wojteklu / clean_code.md
Last active January 22, 2026 17:44
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@ppizarro
ppizarro / pragmatic-rest.md
Last active June 23, 2025 05:41
Pragmatic REST

Pragmatic REST

  • Nouns are good; verbs are bad
  • Keep your base URL simple and intuitive
  • Only 2 base URLs per resource
  • For a collection
/dogs
@seuros
seuros / sample.ovpn
Created March 20, 2014 19:25
Sample OpenVPN client config
client
dev tun
proto tcp
remote 192.168.1.1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
@fernandoaleman
fernandoaleman / rpm-from-source.sh
Created November 18, 2011 16:34
How to create an RPM from source with spec file
# How to create an RPM from source with spec file
# This is for Redhat versions of linux. Sometimes when you search for an rpm package,
# it is either outdated or not available. The only thing available is the source code.
# You can create a custom RPM package from source.
#
# For this example, I'll be using the latest version of Git, currently v.1.7.7.3
# Step: 1
# Install rpmbuild