See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
#!/bin/bash | |
# Colors for output | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
# Function to update and upgrade system | |
update_system() { | |
echo -e "${GREEN}Updating and upgrading the system...${NC}" | |
sudo apt update -y && sudo apt upgrade -y |
# SETUP # | |
DOMAIN=example.com | |
PROJECT_REPO="[email protected]:example.com/app.git" | |
AMOUNT_KEEP_RELEASES=5 | |
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
RELEASES_DIRECTORY=~/$DOMAIN/releases | |
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
# stop script on error signal (-e) and undefined variables (-u) |
/*! | |
* Emoji Cursor.js | |
* - 90's cursors collection | |
* -- https://github.com/tholman/90s-cursor-effects | |
* -- https://codepen.io/tholman/full/rxJpdQ | |
*/ | |
(function emojiCursor() { | |
var possibleEmoji = ["😀", "😂", "😆", "😊"] |
import React, { useRef } from "react" | |
import { createPortal } from "react-dom" | |
export const IFrame = ({ | |
children, | |
title, | |
...props | |
}: HTMLAttributes<HTMLIFrameElement> & { | |
children: React.ReactNode | |
}) => { |
<?php | |
use Illuminate\Foundation\Inspiring; | |
use Illuminate\Support\Facades\Artisan; | |
use Illuminate\Support\Facades\DB; | |
// inspire with random qoutes | |
Artisan::command('inspire', function () { | |
$this->comment(Inspiring::quote()); | |
})->purpose('Display an inspiring quote'); |
<?php | |
namespace App\Helpers; | |
class DataHelper implements \ArrayAccess | |
{ | |
/** | |
* Where the data is stored | |
* | |
* @var array |
#!/usr/bin/env bash | |
# | |
# Nginx - new server block | |
# Functions | |
ok() { echo -e '\e[32m'$1'\e[m'; } # Green | |
die() { | |
echo -e '\e[1;31m'$1'\e[m' | |
exit 1 | |
} |
(function(callback) { | |
var hidden = "hidden"; | |
// Standards: | |
if (hidden in document) | |
document.addEventListener("visibilitychange", onchange); | |
else if ((hidden = "mozHidden") in document) | |
document.addEventListener("mozvisibilitychange", onchange); | |
else if ((hidden = "webkitHidden") in document) | |
document.addEventListener("webkitvisibilitychange", onchange); |
<?php | |
namespace App\Helpers\Import; | |
/** | |
* WordPress exported XML Parser class for managing parsing of XML files. | |
* This class is cloned from the link below with partially modified. | |
* https://github.com/wecodemore/wp-importer | |
*/ | |
class WpParser |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs