Skip to content

Instantly share code, notes, and snippets.

@joshuafernandes
joshuafernandes / git_submodules.md
Created December 8, 2023 06:29 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
Explanation:
CLICOLOR=1 simply enables coloring of your terminal.
LSCOLORS=... specifies how to color specific items.
@joshuafernandes
joshuafernandes / letsencrypt_2019.md
Created February 25, 2020 01:29 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@joshuafernandes
joshuafernandes / README.md
Last active December 9, 2018 04:21 — forked from willjohnson/README.md
Server Status Widget for Dashing

Description

A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.

Usage

  1. Include the typhoeus gem to your Gemfile and then update with bundle