scripts

scripts

Collection of scripts

Name Last Update
archive Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
bug.sh Loading commit data...
connect-to-oracle-db.sh Loading commit data...
copy-file-from-server.sh Loading commit data...
copy-file-to-server.sh Loading commit data...
find-specification-by-name.sh Loading commit data...
find-text-in-specification.sh Loading commit data...
get-errors-to-file.sh Loading commit data...
get-top-colleague-from-jira.py Loading commit data...
nortal-logo.sh Loading commit data...
notify-about-issues.sh Loading commit data...
open-apps-for-work.sh Loading commit data...
open-last-specification.sh Loading commit data...
rename-log-files.sh Loading commit data...
show-status-of-applications-tomcat.sh Loading commit data...
show-status-of-prod-applications-tomcat.sh Loading commit data...
w3c-html-validation.sh Loading commit data...

Collection of Bash Scripts for Mac OS

All scripts work on Mac OS El Capitan 10.11.5 (and most likely in UNIX terminals).

bug.sh

./bug.sh

Prints picture of a bug. See blog post about it: Bash Scripts for Working With Documentation

connect-to-oracle-db.sh

./connect-to-oracle-db.sh

Opens connection to some Oracle DB in command line using SQLPlus. Different data bases and their credentials can be mapped with short titles, so there is no need to remember all passwords and hosts. See blog post about it: Use Oracle Data Base in Command Line

copy-file-from-server.sh

./copy-file-from-server.sh

Copy file from server to local computer. Servers can be mapped with short titles, so there is no need to remember host path. See blog post about it: Bash Scripts for Transfering Files Between Server and Local Computer

copy-file-to-server.sh

./copy-file-to-server.sh

Copy file from local computer to server. Servers can be mapped with short titles, so there is no need to remember host path. See blog post about it: Bash Scripts for Transfering Files Between Server and Local Computer

find-specification-by-name.sh

./find-specification-by-name.sh [text_in_file_title]

Finds file in specific directory by name. See blog post about it: Bash Scripts for Working With Documentation

find-text-in-specification.sh

./find-text-in-specification.sh [text_in_the_file_content]

Finds files where given text is present. See blog post about it: Bash Scripts for Working With Documentation

get-errors-to-file.sh

./get-errors-to-file.sh [path_to_log_file]

Reads given log file and prints errors (or whatever is given to regular expression) to separate file.

get-top-colleague-from-jira.py

python get-top-colleague-from-jira.py

Get top rating of colleagues with whom user worked for the part N days (username, N days and top number are input parameters). Useful for situations when mentor wants to get feedback about some user and wants to find out with whom user worked most of all.

nortal-logo.sh

./nortal-logo.sh

Prints picture of Nortal logo. See blog post about it: Bash Scripts for Working With Documentation

notify-about-issues.sh

./notify-about-issues.sh

Sends e-mail when JIRA JQL query returns some result. See blog post about it: Script for Sending E-mails About Certain JIRA Issues

open-apps-for-work.sh

./open-apps-for-work.sh

Opens all applications that are required for my daily work. As I don't use computer only for work, I don't want to open them on every startup.

open-last-specification.sh

./open-last-specification.sh [text_in_file_title]

Finds file in specific directory by name and opens last modified version. See blog post about it: Bash Scripts for Working With Documentation

rename-log-files.sh

./rename-log-files.sh

Rename log files: module.log.31.12.2015 -> module.log.2015.12.31. It was used to change format of the date from dd.MM.yyyy to yyyy.MM.dd to fix file sorting by name.

show-status-of-applications-tomcat.sh

./show-status-of-applications-tomcat.sh

List deployed applications on Tomcat 8 web-server. See blog post about it: Checking Deployments on Tomcat Server Without Web Manager

show-status-of-prod-applications-tomcat.sh

./show-status-of-prod-applications-tomcat.sh

List deployed applications on multiple-server and multiple-cluster environment (Tomcat 8). See blog post about it: Checking Deployments on Tomcat Server Without Web Manager