- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
# A stack, using bash arrays. | |
# --------------------------------------------------------------------------- | |
# Create a new stack. | |
# | |
# Usage: stack_new name | |
# | |
# Example: stack_new x | |
function stack_new | |
{ |
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache | |
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com | |
# This is the free sample of .htaccess from 6GO s.r.l. | |
# @author Claudio Ludovico Panetta (@Ludo237) |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
Note: If you want to use your personal Twitter account to post commits, go to Step 2
#!/bin/bash - | |
ram_info=/proc/meminfo | |
total_ram=$(bc <<< "scale=2; $(cat $ram_info | grep MemTotal | tr -d a-zA-Z:)/1024/1024") | |
free_ram=$(bc <<< "scale=2; $(cat $ram_info | grep MemFree | tr -d a-zA-Z:)/1024/1024") | |
used_ram=$(bc <<< "$total_ram-$free_ram") | |
echo "Total Ram: $total_ram G" | |
echo "Free Ram: $free_ram G" |
#!/bin/bash - | |
PROGRAM="${0##*/}" | |
IFS="." | |
for i in $(cat /proc/uptime) | |
do | |
UPTIME=$i | |
break | |
done |
#!/bin/bash - | |
# SCRIPT: mkpr | |
# AUTHOR: Luciano D. Cecere | |
# YEAR: 2016 | |
# PURPOSE: This script creates a new shell project with common directories and files included. | |
# USAGE: mkpr project-name version | |
# NOTE: If a version number is not specified, 0.0.1 is used by default. | |
PROGRAM="${0##*/}" |
#!/bin/bash - | |
# | |
# SCRIPT: hexnote | |
# AUTHOR: Luciano D. Cecere | |
######################################################################## | |
# | |
# hexnote - convert base 10 integers to hexadecimal notation | |
# Copyright (C) 2015 Luciano D. Cecere <ldante86@aol.com> | |
# | |
# This program is free software: you can redistribute it and/or modify |
#!/bin/bash - | |
# | |
# SCRIPT: romam | |
# AUTHOR: Luciano D. Cecere | |
# DATE: 2014 | |
######################################################################## | |
# | |
# roman - convert number (1-9999) to Roman numeral | |
# Copyright (C) 2014 Luciano D. Cecere <ldante86@aol.com> | |
# |