/mouse enable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Simplest calculator two dates difference. By default in days | |
| # Usage: | |
| # ./datediff.sh first_date second_date [-(s|m|h|d) | --(seconds|minutes|hours|days)] | |
| first_date=$(date -d "$1" "+%s") | |
| second_date=$(date -d "$2" "+%s") | |
| case "$3" in |
Due to bash changing its license to GPLv3 in 4.0, Apple will no longer be shipping mac operating systems with updated versions of bash (3.2 is the highest version they will ship). The following steps can be used to successfully update your bash to the latest release (at this time, 4.4.12). This has been tested on the following releases:
- Mac OSx El Capitan
- macOS Sierra
- macOS High Sierra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================================ # | |
| #: Title : sdb # | |
| #: Sypnosis : sdb [OPTIONS]... [QUERY]... # | |
| #: Date Created : Sat 25 Nov 2017 10:10:47 AM +08 / Sat Nov 25 02:10:47 UTC 2017 # | |
| #: Last Edit : Mon 08 Jan 2018 10:03:37 AM +08 / Mon Jan 8 02:03:37 UTC 2018 # | |
| #: License : MIT # | |
| #: Version : 1.4.4 # | |
| #: Maintainer : Jason V. Ferrer '<jetchisel@opensuse.org>' # | |
| #: Description : log bash_history in a database (A fork of dbhist.sh from Dennis Gladkikh) # | |
| #: Options : [abdehlmnprsuvwzEHS] # |
