/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] # |
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
| #!/usr/bin/env bash | |
| # =========================================================================================== # | |
| #: Title : Grub2Passwd # | |
| #: Sypnosis : Grub2Passwd # | |
| #: Date Created : Sat Aug 9 16:23:31 PHT 2014 / Sat Aug 9 08:23:31 UTC 2014 # | |
| #: Last Edit : Mon Aug 18 03:49:08 PHT 2014 / Sun Aug 17 19:49:08 UTC 2014 # | |
| #: License : WTFPL version 1 or 2 (https://en.wikipedia.org/wiki/WTFPL) # | |
| #: Version : 1.0.0 # | |
| #: Author : Jason V. Ferrer '<jetchisel@opensuse.org>' # |
This file has been truncated, but you can view the full file.
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
| Loading repository data... | |
| Reading installed packages... | |
| S | Name |
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 | |
| # | |
| # Description: Port scanner on a subnet you are in. | |
| # Author: jechisel '<jetchisel@opensuse.org>' | |
| # License: WTFPL http://www.wtfpl.net/ | |
| # Note: Kids make sure you are allowed to scan the subnet :-) | |
| Opts=(-P0 -n -sS --max_hostgroup 1 --max_retries 0 --max_parallelism 10) |
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 | |
| isolink='http://195.135.221.134/distribution/13.2/iso/openSUSE-13.2-DVD-x86_64.iso' | |
| nseconds=5 | |
| directory=$HOME/Downloads/13.2 | |
| until wget --spider "$isolink" >/dev/null 2>&1; do | |
| echo '13.2 iso is still not available' | |
| sleep "$nseconds" |
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
| #!/usr/bin/env bash | |
| # ============================================================================================ # | |
| #: Title : VBoxAutoSave # | |
| #: Sypnosis : VBoxAutoSave # | |
| #: Date Created : Mon Jul 29 23:25:50 PHT 2013 # | |
| #: Last Edit : Sat May 24 20:46:17 PHT 2014 / Sat May 24 12:46:17 UTC 2014 # | |
| #: License : GPLv3 # | |
| #: Version : 1.0 # | |
| #: Author : Jason V. Ferrer '<jetchisel@opensuse.org>' # |
NewerOlder
