From 3823a97e5d272ba503bc27a4ec403515abaeada3 Mon Sep 17 00:00:00 2001 From: dennyzhang Date: Mon, 4 Sep 2017 18:56:17 -0500 Subject: [PATCH] change email --- README.md | 6 ++++-- bash/S3Sync/s3sync.sh | 4 ++-- bash/backup_dir/backup_dir.sh | 4 ++-- bash/create_loop_device.sh | 4 ++-- bash/disable_oom.sh | 4 ++-- bash/docker_facility/docker_destroy.sh | 4 ++-- bash/dump_db_summary/dump_db_summary.sh | 2 +- bash/enable_ufw/enable_ufw.sh | 4 ++-- bash/enforce_all_nagios_check/enforce_all_nagios_check.sh | 4 ++-- bash/free_cache.sh | 4 ++-- bash/git_update.sh | 4 ++-- bash/inject_ssh_key/README.md | 2 +- bash/inject_ssh_key/inject_ssh_key.sh | 4 ++-- bash/list_os_packages/list_os_packages.sh | 4 ++-- bash/manage_all_services/manage_all_services.sh | 4 ++-- bash/pre_check/pre_check.sh | 4 ++-- bash/ubuntu1404_inject_163_apt_source.sh | 4 ++-- bash/ufw/ufw_add_node_to_cluster.sh | 4 ++-- bash/ufw/ufw_add_or_remove.py | 2 +- bash/update_sshd_security/update_sshd_security.sh | 4 ++-- bash/wait_for/wait_for.sh | 4 ++-- chef/chef_kitchen_provision.sh | 4 ++-- chef/chinese_chef_kitchen_provision.sh | 4 ++-- chef/devops_provision_os.sh | 4 ++-- chef/kitchen_hook_hack_hosts.sh | 4 ++-- chef/kitchen_hook_list_ip.sh | 4 ++-- chef/linux_apply_cookbook.sh | 4 ++-- chef/preinstall_kitchen_verify.sh | 4 ++-- chef/update_ubuntu_system.sh | 4 ++-- common_library/devops_common_library.sh | 4 ++-- common_library/docker_helper.sh | 4 ++-- common_library/general_helper.sh | 4 ++-- common_library/git_helper.sh | 4 ++-- common_library/language_helper.sh | 4 ++-- common_library/network_helper.sh | 4 ++-- common_library/package_helper.sh | 4 ++-- common_library/paramater_helper.sh | 4 ++-- common_library/process_helper.sh | 4 ++-- common_library/refresh_common_library.sh | 4 ++-- common_library/string_helper.sh | 4 ++-- data_layer/couchbase/couchbase_cluster.sh | 4 ++-- data_layer/hadoop/format_hdfs.sh | 4 ++-- data_layer/hadoop/hadoop_jps.sh | 4 ++-- data_layer/hadoop/hdfs_createdir.sh | 4 ++-- data_layer/hadoop/mapreduce_example.sh | 4 ++-- jenkins_scripts/chef/deploy_allinone.sh | 4 ++-- jenkins_scripts/chef/deploy_cluster.sh | 4 ++-- jenkins_scripts/chef/kitchen_raw_test.sh | 4 ++-- jenkins_scripts/chef/kitchen_test_cookbooks.sh | 4 ++-- jenkins_scripts/code_style/chef_style_check.sh | 4 ++-- jenkins_scripts/code_style/python_style_check.sh | 4 ++-- jenkins_scripts/code_style/shellcheck_style_check.sh | 4 ++-- jenkins_scripts/code_style/sonar_static_check.sh | 4 ++-- jenkins_scripts/docker/docker_destroy.sh | 4 ++-- jenkins_scripts/docker/stop_old_containers.sh | 4 ++-- jenkins_scripts/gui_test/protractor_verify_gui_login.sh | 4 ++-- jenkins_scripts/jenkins/collect_files.sh | 4 ++-- jenkins_scripts/jenkins/jenkins_code_build.sh | 4 ++-- jenkins_scripts/jenkins/jenkins_code_pull.sh | 4 ++-- jenkins_scripts/jenkins/perform_smoke_test.sh | 4 ++-- jenkins_scripts/jenkins/poll_jenkins_job.sh | 4 ++-- jenkins_scripts/jenkins/replicate_git_repos.sh | 4 ++-- jenkins_scripts/jenkins/run_command_on_servers.sh | 4 ++-- jenkins_scripts/jenkins/run_remote_command.sh | 4 ++-- jenkins_scripts/jenkins/sync_http_repo_server.sh | 4 ++-- jenkins_scripts/jenkins/tail_file.sh | 4 ++-- jenkins_scripts/jenkins/update_artifactserver.sh | 4 ++-- jenkins_scripts/jenkins/wait_jenkins_up.sh | 4 ++-- jenkins_scripts/livecd/build_livecd_ubuntu.sh | 4 ++-- jenkins_scripts/monitor/monitor_git_branch_list.sh | 4 ++-- jenkins_scripts/monitor/monitor_git_contentchanges.sh | 4 ++-- jenkins_scripts/monitor/monitor_git_filechanges.sh | 4 ++-- jenkins_scripts/monitor/monitor_remote_process.sh | 4 ++-- jenkins_scripts/monitor/monitor_server_filechanges.sh | 4 ++-- jenkins_scripts/monitor/serverspec_check.sh | 4 ++-- jenkins_scripts/network/list_http_traffic.sh | 4 ++-- jenkins_scripts/network/network_latency_report.sh | 4 ++-- .../diagnostic_jenkinsjob_slow.py | 4 ++-- .../diagnostic_jenkinsjob_slow.sh | 4 ++-- jenkins_scripts/report/cloud_cost_slack_report.py | 4 ++-- jenkins_scripts/report/compare_machine_report.sh | 4 ++-- jenkins_scripts/report/db_summary_report.sh | 4 ++-- jenkins_scripts/report/disk_usage_report.py | 4 ++-- jenkins_scripts/report/download_load_test_report.sh | 4 ++-- jenkins_scripts/report/effort_report.sh | 4 ++-- jenkins_scripts/report/os_package_action_report.sh | 4 ++-- jenkins_scripts/report/package_list_report.sh | 4 ++-- jenkins_scripts/report/refresh_db_report.sh | 4 ++-- jenkins_scripts/report/ssh_login_report.sh | 4 ++-- jenkins_scripts/vagrant/bootstrap_sandbox.sh | 4 ++-- jenkins_scripts/vagrant/iam_install.sh | 4 ++-- jenkins_scripts/vagrant/install_docker.sh | 4 ++-- jenkins_scripts/vagrant/start_docker_container.sh | 4 ++-- nagios_plugins/check_out_of_memory/README.md | 4 ++-- nagios_plugins/check_out_of_memory/check_out_of_memory.py | 4 ++-- nagios_plugins/check_proc_cpu/README.md | 6 +++--- nagios_plugins/check_proc_cpu/check_proc_cpu.sh | 6 +++--- nagios_plugins/check_proc_fd/README.md | 6 +++--- nagios_plugins/check_proc_fd/check_proc_fd.sh | 6 +++--- nagios_plugins/check_proc_mem/README.md | 6 +++--- nagios_plugins/check_proc_mem/check_proc_mem.sh | 6 +++--- nagios_plugins/check_proc_threadcount/README.md | 2 +- .../check_proc_threadcount/check_proc_threadcount.sh | 6 +++--- protractor/protractor_rest.py | 4 ++-- python/cleanup_old_files/cleanup_old_files.py | 4 ++-- python/db_backup/cb_backup.py | 4 ++-- python/db_backup/docker_backup_mysql.py | 4 ++-- python/db_backup/es_backup.py | 4 ++-- .../detect_suspicious_process/detect_suspicious_process.py | 4 ++-- python/docker_tool/backup_docker_volumes.py | 4 ++-- python/docker_tool/detect_big_docker_image.py | 2 +- python/docker_tool/refresh_containers.py | 4 ++-- python/enforce_pylint_check/docker_pylint.sh | 4 ++-- python/enforce_pylint_check/enforce_pylint.py | 4 ++-- python/enforce_rubocopcheck/docker_rubocopcheck.sh | 4 ++-- python/enforce_rubocopcheck/enforce_rubocopcheck.py | 4 ++-- python/enforce_shellcheck/docker_shellcheck.sh | 4 ++-- python/enforce_shellcheck/enforce_shellcheck.py | 4 ++-- python/git_tool/detect_existing_ssh_agent.sh | 4 ++-- python/git_tool/git_create_tag.py | 2 +- python/git_tool/git_pull_codedir.py | 4 ++-- python/git_tool/git_pull_codedir.sh | 4 ++-- python/node_usage/node_usage.py | 4 ++-- python/parse_haproxy_stats/haproxy_stats_metric.py | 4 ++-- python/parse_haproxy_stats/parse_haproxy_stats.py | 4 ++-- python/parse_log_for_errmsg/parse_log_for_errmsg.py | 4 ++-- python/selenium_load_page/README.md | 4 +++- python/selenium_load_page/selenium_gui_test.sh | 4 ++-- python/tcp_port_scan/tcp_port_scan.py | 4 ++-- serverspec/common_library.rb | 4 ++-- serverspec/db_helper.rb | 4 ++-- serverspec/general_helper.rb | 4 ++-- serverspec/jenkins_helper.rb | 4 ++-- 133 files changed, 270 insertions(+), 266 deletions(-) diff --git a/README.md b/README.md index 4a0e7967..a9a51eeb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ Travis CI Status: [![Build Status](https://travis-ci.org/DennyZhang/devops_publi This repo host common DevOps scripts, which are public and available for everyone. -Please contact denny@dennyzhang.com, if you have any feedback or suggestions. +Please contact contact@dennyzhang.com, if you have any feedback or suggestions. - Github Repo: https://github.com/DennyZhang/devops_public -- Learn more: https://www.dennyzhang.com/tag/devops \ No newline at end of file +- Learn more: https://www.dennyzhang.com/tag/devops + +Discuss with Denny in [LinkedIn](https://www.linkedin.com/in/dennyzhang001) or [Blog](https://www.dennyzhang.com). diff --git a/bash/S3Sync/s3sync.sh b/bash/S3Sync/s3sync.sh index 73d38c91..c9f6353e 100755 --- a/bash/S3Sync/s3sync.sh +++ b/bash/S3Sync/s3sync.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : s3sync.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-05-12> -## Updated: Time-stamp: <2016-08-15 16:51:24> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- # action: backup or restore . /etc/profile diff --git a/bash/backup_dir/backup_dir.sh b/bash/backup_dir/backup_dir.sh index c741f1b5..36953167 100755 --- a/bash/backup_dir/backup_dir.sh +++ b/bash/backup_dir/backup_dir.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : backup_dir.sh -## Author : Denny +## Author : Denny ## Description : Backup directory and tar it with timestamp ## -- ## Created : <2015-04-21> -## Updated: Time-stamp: <2016-06-24 15:52:59> +## Updated: Time-stamp: <2017-09-04 18:54:44> ##------------------------------------------------------------------- ## Trap exit and dump status diff --git a/bash/create_loop_device.sh b/bash/create_loop_device.sh index a9d66298..cb0757ff 100755 --- a/bash/create_loop_device.sh +++ b/bash/create_loop_device.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : create_loop_device.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:59> +## Updated: Time-stamp: <2017-09-04 18:54:44> ##------------------------------------------------------------------- file_count=${1?} diff --git a/bash/disable_oom.sh b/bash/disable_oom.sh index a68622f0..b0b4901b 100755 --- a/bash/disable_oom.sh +++ b/bash/disable_oom.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : disable_oom.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2017-02-28 17:59:33> +## Updated: Time-stamp: <2017-09-04 18:54:44> ##------------------------------------------------------------------- pid_file=${1?} diff --git a/bash/docker_facility/docker_destroy.sh b/bash/docker_facility/docker_destroy.sh index b3f7e4cf..b327acde 100755 --- a/bash/docker_facility/docker_destroy.sh +++ b/bash/docker_facility/docker_destroy.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : docker_destroy.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-01-02> -## Updated: Time-stamp: <2016-06-24 15:52:59> +## Updated: Time-stamp: <2017-09-04 18:54:44> ##------------------------------------------------------------------- if ! which docker 1>/dev/null 2>&1; then echo "Skip, since docker is not installed" diff --git a/bash/dump_db_summary/dump_db_summary.sh b/bash/dump_db_summary/dump_db_summary.sh index b43b8872..3a533747 100755 --- a/bash/dump_db_summary/dump_db_summary.sh +++ b/bash/dump_db_summary/dump_db_summary.sh @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : dump_db_summary.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## /opt/devops/dump_db_summary/cfg_dir/couchbase.cfg -> dump_couchbase_summary diff --git a/bash/enable_ufw/enable_ufw.sh b/bash/enable_ufw/enable_ufw.sh index c8535568..d2e59e60 100755 --- a/bash/enable_ufw/enable_ufw.sh +++ b/bash/enable_ufw/enable_ufw.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : enable_ufw.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-05-12> -## Updated: Time-stamp: <2016-08-15 17:09:39> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- # Check OS version function log() { diff --git a/bash/enforce_all_nagios_check/enforce_all_nagios_check.sh b/bash/enforce_all_nagios_check/enforce_all_nagios_check.sh index 7ae5cfbb..af4017b2 100755 --- a/bash/enforce_all_nagios_check/enforce_all_nagios_check.sh +++ b/bash/enforce_all_nagios_check/enforce_all_nagios_check.sh @@ -5,13 +5,13 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : enforce_all_nagios_check.sh -## Author : Denny , Syrett +## Author : Denny , Syrett ## Description : ## ./enforce_all_nagios_check.sh help ## ./enforce_all_nagios_check.sh -s "check_.*_log|check_memory|check_tomcat_cpu" ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-07-06 20:35:12> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- function check_one_server(){ diff --git a/bash/free_cache.sh b/bash/free_cache.sh index e7e9659f..f11416ac 100755 --- a/bash/free_cache.sh +++ b/bash/free_cache.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : free_cache.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:58> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- # http://unix.stackexchange.com/questions/17936/setting-proc-sys-vm-drop-caches-to-clear-cache echo "Free cached memory, so that OS can have more free memory" diff --git a/bash/git_update.sh b/bash/git_update.sh index c3466f5f..272521f3 100755 --- a/bash/git_update.sh +++ b/bash/git_update.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : git_update.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-04-15> -## Updated: Time-stamp: <2016-10-27 16:45:29> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- working_dir=${1?} git_repo_url=${2?} diff --git a/bash/inject_ssh_key/README.md b/bash/inject_ssh_key/README.md index d76fb601..ac27f105 100644 --- a/bash/inject_ssh_key/README.md +++ b/bash/inject_ssh_key/README.md @@ -7,7 +7,7 @@ How To Use ========== ``` user_home_list='mac:/Users/mac,root:/root' -ssh_email='denny@dennyzhang.com' +ssh_email='contact@dennyzhang.com' ssh_key='AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwp69ZIA8Usz5EgSh5gBXKGFZBUawP8nDSgZVW6Vl...' wget -O inject_ssh_key.sh https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v6/bash/inject_ssh_key/inject_ssh_key.sh sudo bash ./inject_ssh_key.sh $user_home_list $ssh_email $ssh_key diff --git a/bash/inject_ssh_key/inject_ssh_key.sh b/bash/inject_ssh_key/inject_ssh_key.sh index 4ca56d80..e5ad659c 100755 --- a/bash/inject_ssh_key/inject_ssh_key.sh +++ b/bash/inject_ssh_key/inject_ssh_key.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : inject_ssh_key.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-05-13> -## Updated: Time-stamp: <2016-06-24 15:52:58> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- user_home_list=${1?"To who the ssh key shall be injected. Users are separated by comma"} ssh_email=${2?"email associated to this ssh key"} diff --git a/bash/list_os_packages/list_os_packages.sh b/bash/list_os_packages/list_os_packages.sh index cb0c6b63..e298510f 100755 --- a/bash/list_os_packages/list_os_packages.sh +++ b/bash/list_os_packages/list_os_packages.sh @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : list_os_packages.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## list_os_packages.sh basic @@ -13,7 +13,7 @@ ## list_os_packages.sh python ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2017-06-28 20:24:01> +## Updated: Time-stamp: <2017-09-04 18:54:43> ################################################################################################ . /etc/profile [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/bash/manage_all_services/manage_all_services.sh b/bash/manage_all_services/manage_all_services.sh index e72441b4..2272dca8 100755 --- a/bash/manage_all_services/manage_all_services.sh +++ b/bash/manage_all_services/manage_all_services.sh @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : manage_all_services.sh -## Author : Denny +## Author : Denny ## Description : # Sample: # manage_all_services.sh start couchbase-server,elasticsearch @@ -13,7 +13,7 @@ # manage_all_services.sh status couchbase-server ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:58> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- . /etc/profile diff --git a/bash/pre_check/pre_check.sh b/bash/pre_check/pre_check.sh index fc83fa32..7a92062b 100755 --- a/bash/pre_check/pre_check.sh +++ b/bash/pre_check/pre_check.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : pre_check.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## -- ## Created : <2016-06-12> -## Updated: Time-stamp: <2017-06-28 20:24:03> +## Updated: Time-stamp: <2017-09-04 18:54:43> ################################################################################################ . /etc/profile [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/bash/ubuntu1404_inject_163_apt_source.sh b/bash/ubuntu1404_inject_163_apt_source.sh index 369026fe..aa9c5519 100755 --- a/bash/ubuntu1404_inject_163_apt_source.sh +++ b/bash/ubuntu1404_inject_163_apt_source.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : ubuntu1404_inject_163_apt_source.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-04-18> -## Updated: Time-stamp: <2016-06-24 15:52:58> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- cat > /etc/apt/sources.list.d/163.list < +## Author : Denny ## Description : ## Sample: ## bash ./ufw_add_node_to_cluster.sh "192.168.1.2,192.168.1.3" ## -- ## Created : <2016-12-26> -## Updated: Time-stamp: <2016-12-27 12:23:10> +## Updated: Time-stamp: <2017-09-04 18:54:43> ##------------------------------------------------------------------- function install_packages() { if ! which ufw 1>/dev/null 2>&1; then diff --git a/bash/ufw/ufw_add_or_remove.py b/bash/ufw/ufw_add_or_remove.py index e27effc1..cf8709c2 100644 --- a/bash/ufw/ufw_add_or_remove.py +++ b/bash/ufw/ufw_add_or_remove.py @@ -6,7 +6,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : ufw_add_or_remove.py -## Author : Denny +## Author : Denny ## Description : ## Here we assume firewall should allow all traffic within the Intranet. ## Running a cluster of nodes in certain public cloud, diff --git a/bash/update_sshd_security/update_sshd_security.sh b/bash/update_sshd_security/update_sshd_security.sh index 0fb972d1..6f62d64e 100755 --- a/bash/update_sshd_security/update_sshd_security.sh +++ b/bash/update_sshd_security/update_sshd_security.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : update_sshd_security.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-05-13> -## Updated: Time-stamp: <2017-06-09 14:38:00> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- ssh_port=${1:-"2702"} root_pwd=${2:-""} diff --git a/bash/wait_for/wait_for.sh b/bash/wait_for/wait_for.sh index 154a7b75..d1ee23fc 100755 --- a/bash/wait_for/wait_for.sh +++ b/bash/wait_for/wait_for.sh @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : wait_for.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: ## wait_for "service apache2 status" 3 @@ -13,7 +13,7 @@ ## wait_for "nc -z -v -w 5 172.17.0.3 8443" ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2017-08-14 14:59:41> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- . /etc/profile diff --git a/chef/chef_kitchen_provision.sh b/chef/chef_kitchen_provision.sh index 5f85af11..d5d3c906 100755 --- a/chef/chef_kitchen_provision.sh +++ b/chef/chef_kitchen_provision.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : chef_kitchen_provision.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-11-30> -## Updated: Time-stamp: <2017-07-31 11:42:09> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- # pre-cache Chef Omnibus installation mkdir -p /tmp/install.sh.14 diff --git a/chef/chinese_chef_kitchen_provision.sh b/chef/chinese_chef_kitchen_provision.sh index 6a49b863..dc8dc79b 100755 --- a/chef/chinese_chef_kitchen_provision.sh +++ b/chef/chinese_chef_kitchen_provision.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : chinese_chef_kitchen_provision.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-11-30> -## Updated: Time-stamp: <2017-06-20 22:17:32> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- # pre-cache Chef Omnibus installation [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/chef/devops_provision_os.sh b/chef/devops_provision_os.sh index 7054d722..d61f5707 100755 --- a/chef/devops_provision_os.sh +++ b/chef/devops_provision_os.sh @@ -5,13 +5,13 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : devops_provision_os.sh -## Author : Denny +## Author : Denny ## Description : # curl -o /root/devops_provision_os.sh https://raw.githubusercontent.com/.../.../chef/devops_provision_os.sh # bash -e /root/devops_provision_os.sh ## -- ## Created : <2016-04-20> -## Updated: Time-stamp: <2017-08-11 13:25:16> +## Updated: Time-stamp: <2017-09-04 18:54:42> ################################################################################################ . /etc/profile [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/chef/kitchen_hook_hack_hosts.sh b/chef/kitchen_hook_hack_hosts.sh index f6c2c030..ff29c0c0 100755 --- a/chef/kitchen_hook_hack_hosts.sh +++ b/chef/kitchen_hook_hack_hosts.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : kitchen_hook_hack_hosts.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : Note the OS user running the script may be root or kitchen! ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-29 17:23:48> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- set +e diff --git a/chef/kitchen_hook_list_ip.sh b/chef/kitchen_hook_list_ip.sh index 3836671c..7c62c063 100755 --- a/chef/kitchen_hook_list_ip.sh +++ b/chef/kitchen_hook_list_ip.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : kitchen_hook_list_ip.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : Note the OS user running the script may be root or kitchen! ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-29 17:24:46> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- set +e diff --git a/chef/linux_apply_cookbook.sh b/chef/linux_apply_cookbook.sh index aacf9216..b264fe76 100755 --- a/chef/linux_apply_cookbook.sh +++ b/chef/linux_apply_cookbook.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : linux_apply_cookbook.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-04-20> -## Updated: Time-stamp: <2017-06-28 20:24:06> +## Updated: Time-stamp: <2017-09-04 18:54:42> ################################################################################################ . /etc/profile [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/chef/preinstall_kitchen_verify.sh b/chef/preinstall_kitchen_verify.sh index 26ca452e..0d548a7d 100755 --- a/chef/preinstall_kitchen_verify.sh +++ b/chef/preinstall_kitchen_verify.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : preinstall_kitchen_verify.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2015-11-30> -## Updated: Time-stamp: <2016-06-24 15:52:57> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- LOG_FILE="/var/log/preinstall_kitchen_verify.log" function log() { diff --git a/chef/update_ubuntu_system.sh b/chef/update_ubuntu_system.sh index eda46b04..323f85c5 100755 --- a/chef/update_ubuntu_system.sh +++ b/chef/update_ubuntu_system.sh @@ -1,10 +1,10 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : update_ubuntu_system.sh -## Author : Denny +## Author : Denny ## -- ## Created : <2016-12-13> -## Updated: Time-stamp: <2017-07-18 10:18:49> +## Updated: Time-stamp: <2017-09-04 18:54:42> ################################################################################################ . /etc/profile # disable ipv6 to bypass Linode apt issue diff --git a/common_library/devops_common_library.sh b/common_library/devops_common_library.sh index 2372f5fb..ef30cc3f 100755 --- a/common_library/devops_common_library.sh +++ b/common_library/devops_common_library.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : devops_common_library.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2017-06-20 22:46:13> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- . /etc/profile [ -n "$DOWNLOAD_TAG_NAME" ] || export DOWNLOAD_TAG_NAME="tag_v6" diff --git a/common_library/docker_helper.sh b/common_library/docker_helper.sh index 0e64684a..4a4496e1 100755 --- a/common_library/docker_helper.sh +++ b/common_library/docker_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : docker_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-06-24 15:52:57> +## Updated: Time-stamp: <2017-09-04 18:54:42> ##------------------------------------------------------------------- function guess_docker_daemon_ip() { local docker_daemon_ip="" diff --git a/common_library/general_helper.sh b/common_library/general_helper.sh index aa40e1ac..1ef103a5 100755 --- a/common_library/general_helper.sh +++ b/common_library/general_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : general_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2017-06-20 22:19:31> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function log() { # log message to both stdout and logfile on condition diff --git a/common_library/git_helper.sh b/common_library/git_helper.sh index 1aa46083..b580991e 100755 --- a/common_library/git_helper.sh +++ b/common_library/git_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : git_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-10-27 16:45:07> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function current_git_sha() { set -e diff --git a/common_library/language_helper.sh b/common_library/language_helper.sh index 47011b68..9efe732b 100755 --- a/common_library/language_helper.sh +++ b/common_library/language_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : language_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-14> -## Updated: Time-stamp: <2016-06-24 15:52:57> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function python_basic_info() { # python basic info diff --git a/common_library/network_helper.sh b/common_library/network_helper.sh index 84b6cc8f..ed0bfa07 100755 --- a/common_library/network_helper.sh +++ b/common_library/network_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : network_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-06-24 15:52:57> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function is_port_listening() { local port=${1?} diff --git a/common_library/package_helper.sh b/common_library/package_helper.sh index 1fd3cf7c..8424b056 100755 --- a/common_library/package_helper.sh +++ b/common_library/package_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : package_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2017-04-12 19:37:42> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function install_package() { local package=${1?} diff --git a/common_library/paramater_helper.sh b/common_library/paramater_helper.sh index b444a403..03549d20 100755 --- a/common_library/paramater_helper.sh +++ b/common_library/paramater_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : paramater_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-12-07 21:09:56> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function fail_unless_root() { # Make sure only root can run our script diff --git a/common_library/process_helper.sh b/common_library/process_helper.sh index 547d880a..c10f00dc 100755 --- a/common_library/process_helper.sh +++ b/common_library/process_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : process_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function remote_stop_process() { # Stop remote process by ssh diff --git a/common_library/refresh_common_library.sh b/common_library/refresh_common_library.sh index d2e51ad5..a7edc8fc 100755 --- a/common_library/refresh_common_library.sh +++ b/common_library/refresh_common_library.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : refresh_common_library.sh -## Author : Denny +## Author : Denny ## Description : Use this file to update common library. ## By default, this file keeps stable and untouched ## -- ## Created : <2016-04-07> -## Updated: Time-stamp: <2017-06-20 22:17:32> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function refresh_common_library() { local library_file=${1?} diff --git a/common_library/string_helper.sh b/common_library/string_helper.sh index fdf98c81..3ea238d3 100755 --- a/common_library/string_helper.sh +++ b/common_library/string_helper.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : string_helper.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-01-08> -## Updated: Time-stamp: <2016-07-19 14:44:01> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- function source_string() { # Global variables needed to enable the current script diff --git a/data_layer/couchbase/couchbase_cluster.sh b/data_layer/couchbase/couchbase_cluster.sh index 2193f93a..795f235d 100755 --- a/data_layer/couchbase/couchbase_cluster.sh +++ b/data_layer/couchbase/couchbase_cluster.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : couchbase_cluster.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- cb_json="/tmp/$$.json" function shell_exit() { diff --git a/data_layer/hadoop/format_hdfs.sh b/data_layer/hadoop/format_hdfs.sh index be3a0b5c..a143df08 100755 --- a/data_layer/hadoop/format_hdfs.sh +++ b/data_layer/hadoop/format_hdfs.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : format_hdfs.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- flagfile=${1?} diff --git a/data_layer/hadoop/hadoop_jps.sh b/data_layer/hadoop/hadoop_jps.sh index 53a713a1..4716e756 100755 --- a/data_layer/hadoop/hadoop_jps.sh +++ b/data_layer/hadoop/hadoop_jps.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : hadoop_jps.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:41> ##------------------------------------------------------------------- user_list="hdfs yarn zookeeper mapred oozie hive hbase" for hadoop_user in $user_list; do diff --git a/data_layer/hadoop/hdfs_createdir.sh b/data_layer/hadoop/hdfs_createdir.sh index be912c9d..e6b85c5f 100755 --- a/data_layer/hadoop/hdfs_createdir.sh +++ b/data_layer/hadoop/hdfs_createdir.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : hdfs_createdir.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- flagfile=${1?} shift diff --git a/data_layer/hadoop/mapreduce_example.sh b/data_layer/hadoop/mapreduce_example.sh index e282150d..3f497faf 100755 --- a/data_layer/hadoop/mapreduce_example.sh +++ b/data_layer/hadoop/mapreduce_example.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : mapreduce_example.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-06-04> -## Updated: Time-stamp: <2016-06-24 15:52:56> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- function log() { local msg=$* diff --git a/jenkins_scripts/chef/deploy_allinone.sh b/jenkins_scripts/chef/deploy_allinone.sh index c29d66b1..74476adb 100755 --- a/jenkins_scripts/chef/deploy_allinone.sh +++ b/jenkins_scripts/chef/deploy_allinone.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : deploy_allinone.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-08-05> -## Updated: Time-stamp: <2017-06-28 18:48:22> +## Updated: Time-stamp: <2017-09-04 18:54:40> ################################################################################################ ## Purpose: General function to deploy all-in-one env by chef ## diff --git a/jenkins_scripts/chef/deploy_cluster.sh b/jenkins_scripts/chef/deploy_cluster.sh index 6890fad3..d7940e10 100755 --- a/jenkins_scripts/chef/deploy_cluster.sh +++ b/jenkins_scripts/chef/deploy_cluster.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : deploy_cluster.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-28 18:50:13> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/chef/kitchen_raw_test.sh b/jenkins_scripts/chef/kitchen_raw_test.sh index a6bc1bd3..7a14371d 100755 --- a/jenkins_scripts/chef/kitchen_raw_test.sh +++ b/jenkins_scripts/chef/kitchen_raw_test.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : kitchen_raw_test.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-08-30 14:04:23> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/chef/kitchen_test_cookbooks.sh b/jenkins_scripts/chef/kitchen_test_cookbooks.sh index 99ae96dc..ff31c027 100755 --- a/jenkins_scripts/chef/kitchen_test_cookbooks.sh +++ b/jenkins_scripts/chef/kitchen_test_cookbooks.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : kitchen_test_cookbooks.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-28 18:50:13> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/code_style/chef_style_check.sh b/jenkins_scripts/code_style/chef_style_check.sh index 7b032e64..1ec4d7cc 100755 --- a/jenkins_scripts/code_style/chef_style_check.sh +++ b/jenkins_scripts/code_style/chef_style_check.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : chef_style_check.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## Demo: http://jenkinscn.dennyzhang.com:18088/job/ChefCodeQualityCheck/ ## -- ## Created : <2016-04-25> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/code_style/python_style_check.sh b/jenkins_scripts/code_style/python_style_check.sh index 6f70e639..1493a39e 100755 --- a/jenkins_scripts/code_style/python_style_check.sh +++ b/jenkins_scripts/code_style/python_style_check.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : python_style_check.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## Demo: http://jenkinscn.dennyzhang.com:18088/job/PythonCodeQualityCheck/ ## -- ## Created : <2016-04-25> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/code_style/shellcheck_style_check.sh b/jenkins_scripts/code_style/shellcheck_style_check.sh index 1032e363..9e4d4bf0 100755 --- a/jenkins_scripts/code_style/shellcheck_style_check.sh +++ b/jenkins_scripts/code_style/shellcheck_style_check.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : shellcheck_style_check.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## Demo: http://jenkinscn.dennyzhang.com:18088/job/BashCodeQualityCheck/ ## -- ## Created : <2016-04-25> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/code_style/sonar_static_check.sh b/jenkins_scripts/code_style/sonar_static_check.sh index a0ab9f7c..df0e9ae4 100755 --- a/jenkins_scripts/code_style/sonar_static_check.sh +++ b/jenkins_scripts/code_style/sonar_static_check.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : sonar_static_check.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/docker/docker_destroy.sh b/jenkins_scripts/docker/docker_destroy.sh index 39791771..696da21a 100755 --- a/jenkins_scripts/docker/docker_destroy.sh +++ b/jenkins_scripts/docker/docker_destroy.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : docker_destroy.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-01-02> -## Updated: Time-stamp: <2016-06-24 15:54:22> +## Updated: Time-stamp: <2017-09-04 18:54:40> ##------------------------------------------------------------------- # TODO: move the script to devops_public/docker/docker_destroy.sh if ! which docker 2>/dev/null 1>/dev/null; then diff --git a/jenkins_scripts/docker/stop_old_containers.sh b/jenkins_scripts/docker/stop_old_containers.sh index baf280a7..fc035309 100755 --- a/jenkins_scripts/docker/stop_old_containers.sh +++ b/jenkins_scripts/docker/stop_old_containers.sh @@ -6,11 +6,11 @@ ## ## File : stop_old_containers.sh ## Author: doungni -## Co-Author : Denny +## Co-Author : Denny ## Description : Stop old long-run docker containers, to save OS resource ## -- ## Created : <2015-12-03> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ # * By Jenkins config diff --git a/jenkins_scripts/gui_test/protractor_verify_gui_login.sh b/jenkins_scripts/gui_test/protractor_verify_gui_login.sh index b479b94b..a77d6f54 100755 --- a/jenkins_scripts/gui_test/protractor_verify_gui_login.sh +++ b/jenkins_scripts/gui_test/protractor_verify_gui_login.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : protractor_verify_gui_login.sh -## Author : Denny +## Author : Denny ## Description : collect the files across servers, and transfer to specific destination ## -- ## Created : <2016-05-29> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/collect_files.sh b/jenkins_scripts/jenkins/collect_files.sh index a72232c4..05f85071 100755 --- a/jenkins_scripts/jenkins/collect_files.sh +++ b/jenkins_scripts/jenkins/collect_files.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : collect_files.sh -## Author : Denny +## Author : Denny ## Description : collect the files across servers, and transfer to specific destination ## -- ## Created : <2016-04-14> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:39> ################################################################################################ ## env variables: ## server_list: diff --git a/jenkins_scripts/jenkins/jenkins_code_build.sh b/jenkins_scripts/jenkins/jenkins_code_build.sh index 2161fd2e..960c2038 100755 --- a/jenkins_scripts/jenkins/jenkins_code_build.sh +++ b/jenkins_scripts/jenkins/jenkins_code_build.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : jenkins_code_build.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/jenkins/jenkins_code_pull.sh b/jenkins_scripts/jenkins/jenkins_code_pull.sh index 0d40a631..44e9b793 100755 --- a/jenkins_scripts/jenkins/jenkins_code_pull.sh +++ b/jenkins_scripts/jenkins/jenkins_code_pull.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : jenkins_code_pull.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-03> -## Updated: Time-stamp: <2017-06-28 18:50:12> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/perform_smoke_test.sh b/jenkins_scripts/jenkins/perform_smoke_test.sh index f9eab2d5..7a09b231 100755 --- a/jenkins_scripts/jenkins/perform_smoke_test.sh +++ b/jenkins_scripts/jenkins/perform_smoke_test.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : perform_smoke_test.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-08-16> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ . /etc/profile diff --git a/jenkins_scripts/jenkins/poll_jenkins_job.sh b/jenkins_scripts/jenkins/poll_jenkins_job.sh index 1c38d189..3bc9d750 100755 --- a/jenkins_scripts/jenkins/poll_jenkins_job.sh +++ b/jenkins_scripts/jenkins/poll_jenkins_job.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : poll_jenkins_job.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-06-02> -## Updated: Time-stamp: <2016-06-24 15:54:21> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- jenkins_cli_jar=${1?} jenkins_url=${2:-"http://localhost:18080/"} diff --git a/jenkins_scripts/jenkins/replicate_git_repos.sh b/jenkins_scripts/jenkins/replicate_git_repos.sh index 080c9540..6d155d24 100755 --- a/jenkins_scripts/jenkins/replicate_git_repos.sh +++ b/jenkins_scripts/jenkins/replicate_git_repos.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : replicate_git_repos.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-04-13> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/run_command_on_servers.sh b/jenkins_scripts/jenkins/run_command_on_servers.sh index 4e5888bb..755d9ca1 100755 --- a/jenkins_scripts/jenkins/run_command_on_servers.sh +++ b/jenkins_scripts/jenkins/run_command_on_servers.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : run_command_on_servers.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-04-13> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/run_remote_command.sh b/jenkins_scripts/jenkins/run_remote_command.sh index 8c245721..daa2a5bf 100755 --- a/jenkins_scripts/jenkins/run_remote_command.sh +++ b/jenkins_scripts/jenkins/run_remote_command.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : run_remote_command.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-04-13> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/sync_http_repo_server.sh b/jenkins_scripts/jenkins/sync_http_repo_server.sh index 47943dbb..8430cb97 100755 --- a/jenkins_scripts/jenkins/sync_http_repo_server.sh +++ b/jenkins_scripts/jenkins/sync_http_repo_server.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : sync_http_repo_server.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-04-23> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:39> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/tail_file.sh b/jenkins_scripts/jenkins/tail_file.sh index d862d31c..279ab0e3 100755 --- a/jenkins_scripts/jenkins/tail_file.sh +++ b/jenkins_scripts/jenkins/tail_file.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : tail_file.sh -## Author : Denny +## Author : Denny ## Description : collect the files across servers, and transfer to specific destination ## -- ## Created : <2016-04-14> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/update_artifactserver.sh b/jenkins_scripts/jenkins/update_artifactserver.sh index e5e7cd58..912d4d4f 100755 --- a/jenkins_scripts/jenkins/update_artifactserver.sh +++ b/jenkins_scripts/jenkins/update_artifactserver.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : update_artifactserver.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-08-05> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/jenkins/wait_jenkins_up.sh b/jenkins_scripts/jenkins/wait_jenkins_up.sh index 9105cbe0..0719ac9c 100755 --- a/jenkins_scripts/jenkins/wait_jenkins_up.sh +++ b/jenkins_scripts/jenkins/wait_jenkins_up.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : wait_jenkins_up.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-06-02> -## Updated: Time-stamp: <2016-06-24 15:54:20> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- jenkins_url=${1:-"http://127.0.0.1:28080/jnlpJars/jenkins-cli.jar/"} max_wait_seconds=${2:-600} diff --git a/jenkins_scripts/livecd/build_livecd_ubuntu.sh b/jenkins_scripts/livecd/build_livecd_ubuntu.sh index 81407057..d576a42c 100755 --- a/jenkins_scripts/livecd/build_livecd_ubuntu.sh +++ b/jenkins_scripts/livecd/build_livecd_ubuntu.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : build_livecd_ubuntu.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-01-05> -## Updated: Time-stamp: <2017-06-28 18:50:11> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- # How to build liveCD of ubuntu: http://customizeubuntu.com/ubuntu-livecd diff --git a/jenkins_scripts/monitor/monitor_git_branch_list.sh b/jenkins_scripts/monitor/monitor_git_branch_list.sh index cd1b8a37..3c543f5c 100755 --- a/jenkins_scripts/monitor/monitor_git_branch_list.sh +++ b/jenkins_scripts/monitor/monitor_git_branch_list.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : monitor_git_branch_list.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-08-05> -## Updated: Time-stamp: <2017-07-09 12:14:44> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/monitor/monitor_git_contentchanges.sh b/jenkins_scripts/monitor/monitor_git_contentchanges.sh index f22430d7..e5b5be15 100755 --- a/jenkins_scripts/monitor/monitor_git_contentchanges.sh +++ b/jenkins_scripts/monitor/monitor_git_contentchanges.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : monitor_git_contentchanges.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-12-31> -## Updated: Time-stamp: <2017-07-08 14:58:46> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/monitor/monitor_git_filechanges.sh b/jenkins_scripts/monitor/monitor_git_filechanges.sh index 26cd9ec9..7e9ab76c 100755 --- a/jenkins_scripts/monitor/monitor_git_filechanges.sh +++ b/jenkins_scripts/monitor/monitor_git_filechanges.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : monitor_git_filechanges.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-08-05> -## Updated: Time-stamp: <2017-07-08 14:57:24> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/monitor/monitor_remote_process.sh b/jenkins_scripts/monitor/monitor_remote_process.sh index 94c3ab7e..4dc1d603 100755 --- a/jenkins_scripts/monitor/monitor_remote_process.sh +++ b/jenkins_scripts/monitor/monitor_remote_process.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : monitor_remote_process.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-05-02> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/monitor/monitor_server_filechanges.sh b/jenkins_scripts/monitor/monitor_server_filechanges.sh index a71af458..4752cbdf 100755 --- a/jenkins_scripts/monitor/monitor_server_filechanges.sh +++ b/jenkins_scripts/monitor/monitor_server_filechanges.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : monitor_server_filechanges.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-04-03> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/monitor/serverspec_check.sh b/jenkins_scripts/monitor/serverspec_check.sh index 40d810b6..55bcd06b 100755 --- a/jenkins_scripts/monitor/serverspec_check.sh +++ b/jenkins_scripts/monitor/serverspec_check.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : serverspec_check.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-07-29> -## Updated: Time-stamp: <2017-07-08 14:57:56> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/network/list_http_traffic.sh b/jenkins_scripts/network/list_http_traffic.sh index 16a85ce5..e40c007d 100755 --- a/jenkins_scripts/network/list_http_traffic.sh +++ b/jenkins_scripts/network/list_http_traffic.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : list_http_traffic.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-06-14> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ## env variables: ## server_list: diff --git a/jenkins_scripts/network/network_latency_report.sh b/jenkins_scripts/network/network_latency_report.sh index 214fb3d0..cde79841 100755 --- a/jenkins_scripts/network/network_latency_report.sh +++ b/jenkins_scripts/network/network_latency_report.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : network_latency_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-06-14> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:38> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.py b/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.py index a1ac00d5..7cfd0dc9 100644 --- a/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.py +++ b/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.py @@ -3,11 +3,11 @@ ##------------------------------------------------------------------- ## @copyright 2015 DennyZhang.com ## File : diagnostic_jenkinsjob_slow.py -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-01-15> -## Updated: Time-stamp: <2017-06-30 23:18:52> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- import os, sys import re diff --git a/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.sh b/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.sh index 137e06c1..8f905aa4 100755 --- a/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.sh +++ b/jenkins_scripts/performance/diagnostic_jenkinsjob_slow/diagnostic_jenkinsjob_slow.sh @@ -1,12 +1,12 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : diagnostic_jenkinsjob_slow.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## Note: To run the job, make sure target jenkins run has timestamper plugin properly enabled ## -- ## Created : <2016-01-06> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/cloud_cost_slack_report.py b/jenkins_scripts/report/cloud_cost_slack_report.py index 7d609cf1..d668454f 100755 --- a/jenkins_scripts/report/cloud_cost_slack_report.py +++ b/jenkins_scripts/report/cloud_cost_slack_report.py @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : cloud_cost_slack_report.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-01-01> -## Updated: Time-stamp: <2017-06-30 23:19:22> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- import os, sys, json import requests diff --git a/jenkins_scripts/report/compare_machine_report.sh b/jenkins_scripts/report/compare_machine_report.sh index a55a8a14..dfeec22f 100755 --- a/jenkins_scripts/report/compare_machine_report.sh +++ b/jenkins_scripts/report/compare_machine_report.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : compare_machine_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-06-12> -## Updated: Time-stamp: <2017-06-30 23:19:25> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/db_summary_report.sh b/jenkins_scripts/report/db_summary_report.sh index f0cbb301..e2ff470c 100755 --- a/jenkins_scripts/report/db_summary_report.sh +++ b/jenkins_scripts/report/db_summary_report.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : db_summary_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-02-23> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/disk_usage_report.py b/jenkins_scripts/report/disk_usage_report.py index bd0c15c4..66419534 100755 --- a/jenkins_scripts/report/disk_usage_report.py +++ b/jenkins_scripts/report/disk_usage_report.py @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : disk_usage_report.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-01-15> -## Updated: Time-stamp: <2017-06-30 23:19:34> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- import os, sys, json import requests diff --git a/jenkins_scripts/report/download_load_test_report.sh b/jenkins_scripts/report/download_load_test_report.sh index 062dc588..b89b44fe 100755 --- a/jenkins_scripts/report/download_load_test_report.sh +++ b/jenkins_scripts/report/download_load_test_report.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : download_load_test_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-09-24> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/effort_report.sh b/jenkins_scripts/report/effort_report.sh index 6eb71c8a..edff4e90 100755 --- a/jenkins_scripts/report/effort_report.sh +++ b/jenkins_scripts/report/effort_report.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : effort_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-10-13> -## Updated: Time-stamp: <2017-06-28 18:50:10> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/os_package_action_report.sh b/jenkins_scripts/report/os_package_action_report.sh index 083e6974..851bb284 100755 --- a/jenkins_scripts/report/os_package_action_report.sh +++ b/jenkins_scripts/report/os_package_action_report.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : os_package_action_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## ## -- ## Created : <2016-04-03> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/report/package_list_report.sh b/jenkins_scripts/report/package_list_report.sh index f77f3a18..3859d774 100755 --- a/jenkins_scripts/report/package_list_report.sh +++ b/jenkins_scripts/report/package_list_report.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : package_list_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-02-23> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ diff --git a/jenkins_scripts/report/refresh_db_report.sh b/jenkins_scripts/report/refresh_db_report.sh index 6f13e1ef..e4df45c8 100755 --- a/jenkins_scripts/report/refresh_db_report.sh +++ b/jenkins_scripts/report/refresh_db_report.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : refresh_db_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-09-24> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/report/ssh_login_report.sh b/jenkins_scripts/report/ssh_login_report.sh index 4a41c05d..1e6a4684 100755 --- a/jenkins_scripts/report/ssh_login_report.sh +++ b/jenkins_scripts/report/ssh_login_report.sh @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : ssh_login_report.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## TODO: known issues ## no message to /var/log/secure @@ -13,7 +13,7 @@ ## sometimes no client ip tracked in auth.log ## -- ## Created : <2016-04-03> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ ## env variables: diff --git a/jenkins_scripts/vagrant/bootstrap_sandbox.sh b/jenkins_scripts/vagrant/bootstrap_sandbox.sh index 0d47ccd2..db0cdf0e 100755 --- a/jenkins_scripts/vagrant/bootstrap_sandbox.sh +++ b/jenkins_scripts/vagrant/bootstrap_sandbox.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : bootstrap_sandbox.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-05-28> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ . /etc/profile diff --git a/jenkins_scripts/vagrant/iam_install.sh b/jenkins_scripts/vagrant/iam_install.sh index 2a50e725..1685b32f 100755 --- a/jenkins_scripts/vagrant/iam_install.sh +++ b/jenkins_scripts/vagrant/iam_install.sh @@ -9,7 +9,7 @@ ## Description: ## -- ## Created: <2016-01-06> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##-------------------------------------------------------- ################################################################################################ . /etc/profile @@ -91,7 +91,7 @@ case "$1" in log "connect VM and container:" [ -d /root/.ssh ] || mkdir -p /root/.ssh && touch /root/.ssh/authorized_keys - grep denny@dennyzhang.com /root/.ssh/authorized_keys || echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGVkT4Ka/Pt6M/xREwYWatYyBqaBgDVS1bCy7CViZ5VGr1z+sNwI2cBoRwWxqHwvOgfAm+Wbzwqs+WNvXW6GDZ1kjayh2YnBN5UBYZjpNQK9tmO8KHQwX29UvOaOJ6HIEWOJB9ylyUoWL+WwNf71arpXULBW6skx9fp9F5rHuB0UmQ+omhJGs6+PRSLAEzWaQvtxmm7CuZ7LgslNKskkqx/6CHlQPq2qchRVN5xvnZPuFWgF6cvWvK7kylAQsv8hQtFGsE9Rw1itjisCBVILzEC2mAjg5SqeEB0i7QwdlRr4jgxaxO5jR9wdKo7PaEl9+bibuZrCIhp6V4Y4eaIzAP denny@dennyzhang.com" >> /root/.ssh/authorized_keys + grep contact@dennyzhang.com /root/.ssh/authorized_keys || echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGVkT4Ka/Pt6M/xREwYWatYyBqaBgDVS1bCy7CViZ5VGr1z+sNwI2cBoRwWxqHwvOgfAm+Wbzwqs+WNvXW6GDZ1kjayh2YnBN5UBYZjpNQK9tmO8KHQwX29UvOaOJ6HIEWOJB9ylyUoWL+WwNf71arpXULBW6skx9fp9F5rHuB0UmQ+omhJGs6+PRSLAEzWaQvtxmm7CuZ7LgslNKskkqx/6CHlQPq2qchRVN5xvnZPuFWgF6cvWvK7kylAQsv8hQtFGsE9Rw1itjisCBVILzEC2mAjg5SqeEB0i7QwdlRr4jgxaxO5jR9wdKo7PaEl9+bibuZrCIhp6V4Y4eaIzAP contact@dennyzhang.com" >> /root/.ssh/authorized_keys log "ok" ;; diff --git a/jenkins_scripts/vagrant/install_docker.sh b/jenkins_scripts/vagrant/install_docker.sh index 0dbd9fc7..a3044e97 100755 --- a/jenkins_scripts/vagrant/install_docker.sh +++ b/jenkins_scripts/vagrant/install_docker.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : install_docker.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-05-28> -## Updated: Time-stamp: <2017-06-28 18:50:09> +## Updated: Time-stamp: <2017-09-04 18:54:37> ##------------------------------------------------------------------- ################################################################################################ . /etc/profile diff --git a/jenkins_scripts/vagrant/start_docker_container.sh b/jenkins_scripts/vagrant/start_docker_container.sh index 3fc7e2be..7e26a44d 100755 --- a/jenkins_scripts/vagrant/start_docker_container.sh +++ b/jenkins_scripts/vagrant/start_docker_container.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : start_docker_container.sh -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2015-05-28> -## Updated: Time-stamp: <2017-06-28 18:50:08> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- ################################################################################################ . /etc/profile diff --git a/nagios_plugins/check_out_of_memory/README.md b/nagios_plugins/check_out_of_memory/README.md index 5f740b3a..2253f005 100644 --- a/nagios_plugins/check_out_of_memory/README.md +++ b/nagios_plugins/check_out_of_memory/README.md @@ -8,11 +8,11 @@ Nagios plugin to check whether OOM issues have happend Sample output: ``` -/sshx:denny@dennyzhang.com:~# python /tmp/check_out_of_memory.py --hours_to_check 100 +/sshx:contact@dennyzhang.com:~# python /tmp/check_out_of_memory.py --hours_to_check 100 ERROR: OOM has happened in previous 100 hours. [Sat Mar 11 00:19:43 2017] java invoked oom-killer: gfp_mask=0x26000c0, order=2, oom_score_adj=-17 [Sat Mar 11 00:19:43 2017] [] oom_kill_process+0x205/0x3d0 [Sat Mar 11 00:19:43 2017] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name -/sshx:denny@dennyzhang.com:~# python /tmp/check_out_of_memory.py --hours_to_check 10 +/sshx:contact@dennyzhang.com:~# python /tmp/check_out_of_memory.py --hours_to_check 10 OK: No OOM has happened in previous 10 hours. ``` diff --git a/nagios_plugins/check_out_of_memory/check_out_of_memory.py b/nagios_plugins/check_out_of_memory/check_out_of_memory.py index ed9e9169..1a36143d 100755 --- a/nagios_plugins/check_out_of_memory/check_out_of_memory.py +++ b/nagios_plugins/check_out_of_memory/check_out_of_memory.py @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : check_out_of_memory.py -## Author : Denny +## Author : Denny ## Description : Detect whether OOM(Out Of Memory) has happened in the previous several hours ## -- ## Created : <2017-02-28> -## Updated: Time-stamp: <2017-08-16 12:57:01> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- # Check: https://www.dennyzhang.com/monitor_oom import argparse diff --git a/nagios_plugins/check_proc_cpu/README.md b/nagios_plugins/check_proc_cpu/README.md index a38f69f8..f36c96bf 100644 --- a/nagios_plugins/check_proc_cpu/README.md +++ b/nagios_plugins/check_proc_cpu/README.md @@ -7,7 +7,7 @@ check_proc_cpu Nagios plugin to check proc cpu usage. ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_cpu.sh --help +/sshx:contact@dennyzhang.com: #$ ./check_proc_cpu.sh --help check_proc_cpu v1.0 Usage: @@ -19,11 +19,11 @@ check_proc_cpu.sh -w 200 -c 400 --pidfile /var/run/tomcat7.pid check_proc_cpu.sh -w 200 -c 400 --pid 11325 check_proc_cpu.sh -w 200 -c 400 --cmdpattern "tomcat7.*java.*Dcom" -Copyright (C) 2015 DennyZhang (denny@dennyzhang.com) +Copyright (C) 2015 DennyZhang (contact@dennyzhang.com) ``` Sample output: ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_cpu.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" +/sshx:contact@dennyzhang.com: #$ ./check_proc_cpu.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" OK CPU used by process(11325) is 10 %|CPU=10 ``` diff --git a/nagios_plugins/check_proc_cpu/check_proc_cpu.sh b/nagios_plugins/check_proc_cpu/check_proc_cpu.sh index e3843f73..b75559af 100755 --- a/nagios_plugins/check_proc_cpu/check_proc_cpu.sh +++ b/nagios_plugins/check_proc_cpu/check_proc_cpu.sh @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File: check_proc_cpu.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## ## Link: https://www.dennyzhang.com/nagois_monitor_process_cpu ## ## Created : <2015-02-25> -## Updated: Time-stamp: <2017-08-16 12:57:08> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- if [ "$1" = "-w" ] && [ "$2" -gt "0" ] && \ [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then @@ -60,7 +60,7 @@ else echo "check_proc_cpu.sh -w 200 -c 400 --pid 11325" echo "check_proc_cpu.sh -w 200 -c 400 --cmdpattern \"tomcat7.*java.*Dcom\"" echo "" - echo "Copyright (C) 2015 DennyZhang (denny@dennyzhang.com)" + echo "Copyright (C) 2015 DennyZhang (contact@dennyzhang.com)" exit fi ## File - check_proc_cpu.sh ends diff --git a/nagios_plugins/check_proc_fd/README.md b/nagios_plugins/check_proc_fd/README.md index ee01eba1..69e94b10 100644 --- a/nagios_plugins/check_proc_fd/README.md +++ b/nagios_plugins/check_proc_fd/README.md @@ -7,7 +7,7 @@ check_proc_fd Nagios plugin to check proc fd: Monitor fd opened by a given process ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_fd.sh --help +/sshx:contact@dennyzhang.com: #$ ./check_proc_fd.sh --help check_proc_fd v1.0 Usage: @@ -18,11 +18,11 @@ Below: If tomcat opens more than 1024 files, send warning ./check_proc_fd.sh -w 1024 -c 2048 --pid 11325 ./check_proc_fd.sh -w 1024 -c 2048 --cmdpattern "tomcat7.*java.*Dcom" -Copyright (C) 2014 DennyZhang (denny@dennyzhang.com) +Copyright (C) 2014 DennyZhang (contact@dennyzhang.com) ``` Sample output: ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_fd.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" +/sshx:contact@dennyzhang.com: #$ ./check_proc_fd.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" OK: file opened by pid(12356) is 201|fd=201 ``` diff --git a/nagios_plugins/check_proc_fd/check_proc_fd.sh b/nagios_plugins/check_proc_fd/check_proc_fd.sh index 9cf6b4fe..8201c1d5 100755 --- a/nagios_plugins/check_proc_fd/check_proc_fd.sh +++ b/nagios_plugins/check_proc_fd/check_proc_fd.sh @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File: check_proc_fd.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## ## Link: http://https://github.com/DennyZhang/check_proc_fd ## ## Created : <2014-12-17> -## Updated: Time-stamp: <2016-06-24 15:52:55> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- if [ "$1" = "-w" ] && [ "$2" -gt "0" ] && \ [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then @@ -61,7 +61,7 @@ else echo "check_proc_fd.sh -w 1024 -c 2048 --pid 11325" echo "check_proc_fd.sh -w 1024 -c 2048 --cmdpattern \"tomcat7.*java.*MaxPermSize\"" echo "" - echo "Copyright (C) 2014 DennyZhang (denny@dennyzhang.com)" + echo "Copyright (C) 2014 DennyZhang (contact@dennyzhang.com)" exit fi ## File - check_proc_fd.sh ends diff --git a/nagios_plugins/check_proc_mem/README.md b/nagios_plugins/check_proc_mem/README.md index c2eb9569..8b036b62 100644 --- a/nagios_plugins/check_proc_mem/README.md +++ b/nagios_plugins/check_proc_mem/README.md @@ -7,7 +7,7 @@ check_proc_mem Nagios plugin to check proc memory: Monitor resident memory for a given process ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_mem.sh --help +/sshx:contact@dennyzhang.com: #$ ./check_proc_mem.sh --help check_proc_mem v1.0 Usage: @@ -18,11 +18,11 @@ Below: If tomcat use more than 1024MB resident memory, send warning ./check_proc_mem.sh -w 1024 -c 2048 --pid 11325 ./check_proc_mem.sh -w 1024 -c 2048 --cmdpattern "tomcat7.*java.*Dcom" -Copyright (C) 2014 DennyZhang (denny@dennyzhang.com) +Copyright (C) 2014 DennyZhang (contact@dennyzhang.com) ``` Sample output: ``` -/sshx:denny@dennyzhang.com: #$ ./check_proc_mem.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" +/sshx:contact@dennyzhang.com: #$ ./check_proc_mem.sh -w 1024 -c 2048 --pidfile "/var/run/tomcat7.pid" Memory: OK VIRT: 5795 MB - RES: 663 MB used!|VIRT=6076497920;;;; RES=695205888;;;; ``` diff --git a/nagios_plugins/check_proc_mem/check_proc_mem.sh b/nagios_plugins/check_proc_mem/check_proc_mem.sh index 41ee2de7..99aae149 100755 --- a/nagios_plugins/check_proc_mem/check_proc_mem.sh +++ b/nagios_plugins/check_proc_mem/check_proc_mem.sh @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File: check_proc_mem.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## ## Link: https://www.dennyzhang.com/nagois_monitor_process_memory ## ## Created : <2014-10-25> -## Updated: Time-stamp: <2017-08-16 12:57:15> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- if [ "$1" = "-w" ] && [ "$2" -gt "0" ] && \ [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then @@ -64,7 +64,7 @@ else echo "check_proc_mem.sh -w 1024 -c 2048 --pid 11325" echo "check_proc_mem.sh -w 1024 -c 2048 --cmdpattern \"tomcat7.*java.*Dcom\"" echo "" - echo "Copyright (C) 2014 DennyZhang (denny@dennyzhang.com)" + echo "Copyright (C) 2014 DennyZhang (contact@dennyzhang.com)" exit fi ## File - check_proc_mem.sh ends diff --git a/nagios_plugins/check_proc_threadcount/README.md b/nagios_plugins/check_proc_threadcount/README.md index b02efa79..567932b1 100644 --- a/nagios_plugins/check_proc_threadcount/README.md +++ b/nagios_plugins/check_proc_threadcount/README.md @@ -16,5 +16,5 @@ check_proc_threadcount.sh -w 1024 -c 2048 --pidfile /var/run/tomcat7.pid check_proc_threadcount.sh -w 1024 -c 2048 --pid 11325 check_proc_threadcount.sh -w 1024 -c 2048 --cmdpattern "tomcat7.*java.*MaxPermSize" -Copyright (C) 2017 DennyZhang (denny@dennyzhang.com) +Copyright (C) 2017 DennyZhang (contact@dennyzhang.com) ``` diff --git a/nagios_plugins/check_proc_threadcount/check_proc_threadcount.sh b/nagios_plugins/check_proc_threadcount/check_proc_threadcount.sh index d3e467ae..5300102f 100755 --- a/nagios_plugins/check_proc_threadcount/check_proc_threadcount.sh +++ b/nagios_plugins/check_proc_threadcount/check_proc_threadcount.sh @@ -1,12 +1,12 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File: check_proc_threadcount.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## ## Created : <2015-02-25> -## Updated: Time-stamp: <2017-01-12 08:01:32> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- if [ "$1" = "-w" ] && [ "$2" -gt "0" ] && \ [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then @@ -53,7 +53,7 @@ else echo "check_proc_threadcount.sh -w 1024 -c 2048 --pid 11325" echo "check_proc_threadcount.sh -w 1024 -c 2048 --cmdpattern \"tomcat7.*java.*MaxPermSize\"" echo "" - echo "Copyright (C) 2017 DennyZhang (denny@dennyzhang.com)" + echo "Copyright (C) 2017 DennyZhang (contact@dennyzhang.com)" exit fi ## File - check_proc_threadcount.sh ends diff --git a/protractor/protractor_rest.py b/protractor/protractor_rest.py index dbd61f5d..ade985f5 100644 --- a/protractor/protractor_rest.py +++ b/protractor/protractor_rest.py @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : protractor_rest.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2016-05-29> -## Updated: Time-stamp: <2017-06-30 23:20:54> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- # pip install flask # export FLASK_DEBUG=1 diff --git a/python/cleanup_old_files/cleanup_old_files.py b/python/cleanup_old_files/cleanup_old_files.py index 5ed6db08..23d67587 100755 --- a/python/cleanup_old_files/cleanup_old_files.py +++ b/python/cleanup_old_files/cleanup_old_files.py @@ -5,9 +5,9 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : cleanup_old_files.py -## Author : Denny +## Author : Denny ## Created : <2017-05-03> -## Updated: Time-stamp: <2017-08-16 12:57:21> +## Updated: Time-stamp: <2017-09-04 18:55:32> ## Description : ## Remove old files in a safe and organized way ## diff --git a/python/db_backup/cb_backup.py b/python/db_backup/cb_backup.py index 35fa4ccb..7e7194bd 100755 --- a/python/db_backup/cb_backup.py +++ b/python/db_backup/cb_backup.py @@ -1,11 +1,11 @@ #!/usr/bin/python ##------------------------------------------------------------------- ## File : cb_backup.py -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : Couchbase Daily Backup ## -- ## Created : <2016-08-01> -## Updated: Time-stamp: <2017-07-05 20:35:12> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- # TODO: move to common library import argparse diff --git a/python/db_backup/docker_backup_mysql.py b/python/db_backup/docker_backup_mysql.py index 0c49127a..f55d97af 100755 --- a/python/db_backup/docker_backup_mysql.py +++ b/python/db_backup/docker_backup_mysql.py @@ -1,11 +1,11 @@ #!/usr/bin/python ##------------------------------------------------------------------- ## File : docker_backup_mysql.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-03-03> -## Updated: Time-stamp: <2017-06-30 23:17:35> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- import os, sys import subprocess diff --git a/python/db_backup/es_backup.py b/python/db_backup/es_backup.py index 5d13d94d..0ca58e6f 100755 --- a/python/db_backup/es_backup.py +++ b/python/db_backup/es_backup.py @@ -1,11 +1,11 @@ #!/usr/bin/python ##------------------------------------------------------------------- ## File : es_backup.py -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : Elasticsearch Backup By ES Snapshot feature ## -- ## Created : <2016-08-01> -## Updated: Time-stamp: <2017-07-05 20:35:14> +## Updated: Time-stamp: <2017-09-04 18:55:32> ##------------------------------------------------------------------- # TODO: move to common library import os diff --git a/python/detect_suspicious_process/detect_suspicious_process.py b/python/detect_suspicious_process/detect_suspicious_process.py index d43daae4..8d7f70ba 100755 --- a/python/detect_suspicious_process/detect_suspicious_process.py +++ b/python/detect_suspicious_process/detect_suspicious_process.py @@ -2,7 +2,7 @@ ##------------------------------------------------------------------- ## @copyright 2015 DennyZhang.com ## File : detect_suspicious_process.py -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : https://www.dennyzhang.com/suspicious_process ## python ./detect_suspicious_process.py ## python ./detect_suspicious_process.py --whitelist_file /tmp/whitelist.txt @@ -11,7 +11,7 @@ ## ## -- ## Created : <2016-01-15> -## Updated: Time-stamp: <2017-08-16 12:58:10> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import argparse import subprocess diff --git a/python/docker_tool/backup_docker_volumes.py b/python/docker_tool/backup_docker_volumes.py index 207034b3..a1d2297c 100755 --- a/python/docker_tool/backup_docker_volumes.py +++ b/python/docker_tool/backup_docker_volumes.py @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : backup_docker_volumes.py -## Author : Denny +## Author : Denny ## Description : ## Usage: ## python /usr/sbin/backup_docker_volumes.py --docker_volume_list \ @@ -13,7 +13,7 @@ ## --volume_dir "/var/lib/docker/volumes" --backup_dir "/data/backup/" ## -- ## Created : <2017-05-12> -## Updated: Time-stamp: <2017-07-05 20:35:19> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import os, sys import argparse diff --git a/python/docker_tool/detect_big_docker_image.py b/python/docker_tool/detect_big_docker_image.py index 9bded15d..95ec6b62 100755 --- a/python/docker_tool/detect_big_docker_image.py +++ b/python/docker_tool/detect_big_docker_image.py @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : detect_big_docker_image.py -## Author : Denny +## Author : Denny ## Description : Make sure all docker images you build in your docker host machine are small enough ## Usage: ## python detect_big_docker_image.py --checklist_file "/tmp/check_list.txt" --whitelist_file "/tmp/whitelist.txt" diff --git a/python/docker_tool/refresh_containers.py b/python/docker_tool/refresh_containers.py index 7ed92a5d..e431e671 100755 --- a/python/docker_tool/refresh_containers.py +++ b/python/docker_tool/refresh_containers.py @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : refresh_containers.py -## Author : Denny +## Author : Denny ## Description : Restart a list of docker containers. ## If required, related docker images will be updated. ## Requirements: ## pip install docker==2.0.0 ## -- ## Created : <2017-05-12> -## Updated: Time-stamp: <2017-06-30 23:21:22> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import sys import docker diff --git a/python/enforce_pylint_check/docker_pylint.sh b/python/enforce_pylint_check/docker_pylint.sh index 74ee0e68..e0543281 100755 --- a/python/enforce_pylint_check/docker_pylint.sh +++ b/python/enforce_pylint_check/docker_pylint.sh @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : docker_pylint.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-05-12> -## Updated: Time-stamp: <2017-07-02 15:56:56> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- code_dir=${1?""} preinstall_pip_packages=${2-""} diff --git a/python/enforce_pylint_check/enforce_pylint.py b/python/enforce_pylint_check/enforce_pylint.py index bd60fee7..4787cbbe 100755 --- a/python/enforce_pylint_check/enforce_pylint.py +++ b/python/enforce_pylint_check/enforce_pylint.py @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : enforce_pylint.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-04-02> -## Updated: Time-stamp: <2017-07-14 10:31:11> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import argparse import sys diff --git a/python/enforce_rubocopcheck/docker_rubocopcheck.sh b/python/enforce_rubocopcheck/docker_rubocopcheck.sh index 5c125606..0f1075fa 100755 --- a/python/enforce_rubocopcheck/docker_rubocopcheck.sh +++ b/python/enforce_rubocopcheck/docker_rubocopcheck.sh @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : docker_rubocopcheck.sh -## Author : Denny +## Author : Denny ## Description : ## ## More reading: TODO ## ## -- ## Created : <2017-05-12> -## Updated: Time-stamp: <2017-06-30 17:08:13> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- code_dir=${1?""} ignore_file_list=${2-""} diff --git a/python/enforce_rubocopcheck/enforce_rubocopcheck.py b/python/enforce_rubocopcheck/enforce_rubocopcheck.py index d89bbd35..007bda6f 100755 --- a/python/enforce_rubocopcheck/enforce_rubocopcheck.py +++ b/python/enforce_rubocopcheck/enforce_rubocopcheck.py @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : enforce_rubocopcheck.py -## Author : Denny +## Author : Denny ## Description : ## ## More reading: TODO ## ## -- ## Created : <2017-04-02> -## Updated: Time-stamp: <2017-07-14 10:31:37> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import argparse import sys diff --git a/python/enforce_shellcheck/docker_shellcheck.sh b/python/enforce_shellcheck/docker_shellcheck.sh index 65de50be..f940a4ba 100755 --- a/python/enforce_shellcheck/docker_shellcheck.sh +++ b/python/enforce_shellcheck/docker_shellcheck.sh @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : docker_shellcheck.sh -## Author : Denny +## Author : Denny ## Description : ## ## More reading: https://www.dennyzhang.com/shellcheck ## ## -- ## Created : <2017-05-12> -## Updated: Time-stamp: <2017-08-16 12:58:09> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- code_dir=${1?""} ignore_file_list=${2-""} diff --git a/python/enforce_shellcheck/enforce_shellcheck.py b/python/enforce_shellcheck/enforce_shellcheck.py index 0a8eb0db..a3d32b90 100755 --- a/python/enforce_shellcheck/enforce_shellcheck.py +++ b/python/enforce_shellcheck/enforce_shellcheck.py @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : enforce_shellcheck.py -## Author : Denny +## Author : Denny ## Description : ## ## More reading: https://www.dennyzhang.com/shellcheck ## ## -- ## Created : <2017-04-02> -## Updated: Time-stamp: <2017-08-16 12:58:09> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import argparse import sys diff --git a/python/git_tool/detect_existing_ssh_agent.sh b/python/git_tool/detect_existing_ssh_agent.sh index 00133d49..bc192768 100755 --- a/python/git_tool/detect_existing_ssh_agent.sh +++ b/python/git_tool/detect_existing_ssh_agent.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : detect_existing_ssh_agent.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: bash git_pull_codedir.sh "/data/code_dir/repo1,/data/code_dir/repo2" ## -- ## Created : <2017-06-04> -## Updated: Time-stamp: <2017-07-05 19:45:09> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- # https://coderwall.com/p/rdi_wq/fix-could-not-open-a-connection-to-your-authentication-agent-when-using-ssh-add diff --git a/python/git_tool/git_create_tag.py b/python/git_tool/git_create_tag.py index 1a207dcb..f676b046 100755 --- a/python/git_tool/git_create_tag.py +++ b/python/git_tool/git_create_tag.py @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : git_create_tag.py -## Author : Denny +## Author : Denny ## Description : Create monthly git tag for all repos in your projects ## Dependency: ## pip install GitPython diff --git a/python/git_tool/git_pull_codedir.py b/python/git_tool/git_pull_codedir.py index 6e85de06..b32e1f62 100755 --- a/python/git_tool/git_pull_codedir.py +++ b/python/git_tool/git_pull_codedir.py @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : git_pull_codedir.py -## Author : Denny +## Author : Denny ## Description : ## Sample: ## python git_pull_codedir.py --code_dirs "/data/code_dir/repo1,/data/code_dir/repo2" @@ -13,7 +13,7 @@ ## pip install GitPython ## -- ## Created : <2017-03-24> -## Updated: Time-stamp: <2017-08-08 16:54:43> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import os, sys import sys diff --git a/python/git_tool/git_pull_codedir.sh b/python/git_tool/git_pull_codedir.sh index 23c3f36b..1fe46ac5 100755 --- a/python/git_tool/git_pull_codedir.sh +++ b/python/git_tool/git_pull_codedir.sh @@ -5,12 +5,12 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : git_pull_codedir.sh -## Author : Denny +## Author : Denny ## Description : ## Sample: bash git_pull_codedir.sh "/data/code_dir/repo1,/data/code_dir/repo2" ## -- ## Created : <2017-06-04> -## Updated: Time-stamp: <2017-07-05 22:11:55> +## Updated: Time-stamp: <2017-09-04 18:54:36> ##------------------------------------------------------------------- # https://coderwall.com/p/rdi_wq/fix-could-not-open-a-connection-to-your-authentication-agent-when-using-ssh-add diff --git a/python/node_usage/node_usage.py b/python/node_usage/node_usage.py index 5eae5409..72ff2822 100755 --- a/python/node_usage/node_usage.py +++ b/python/node_usage/node_usage.py @@ -5,7 +5,7 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : node_usage.py -## Author : Denny +## Author : Denny ## Description : Show OS and process resource usage: CPU, RAM and disk ## Sample: ## python ./node_usage.py @@ -13,7 +13,7 @@ ## ## -- ## Created : <2017-05-22> -## Updated: Time-stamp: <2017-08-01 17:42:56> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import os, sys import psutil diff --git a/python/parse_haproxy_stats/haproxy_stats_metric.py b/python/parse_haproxy_stats/haproxy_stats_metric.py index a97130ad..b856e4d1 100755 --- a/python/parse_haproxy_stats/haproxy_stats_metric.py +++ b/python/parse_haproxy_stats/haproxy_stats_metric.py @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : haproxy_stats_metric.py -## Author : Denny +## Author : Denny ## Description : A Python module to parse haproxy stats ## ## More reading: https://www.dennyzhang.com/haproxy_stats ## ## -- ## Created : <2016-10-04> -## Updated: Time-stamp: <2017-08-16 12:58:08> +## Updated: Time-stamp: <2017-09-04 18:55:31> ##------------------------------------------------------------------- import parse_haproxy_stats import datetime diff --git a/python/parse_haproxy_stats/parse_haproxy_stats.py b/python/parse_haproxy_stats/parse_haproxy_stats.py index 4a213d1d..4468d3f5 100755 --- a/python/parse_haproxy_stats/parse_haproxy_stats.py +++ b/python/parse_haproxy_stats/parse_haproxy_stats.py @@ -5,14 +5,14 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : parse_haproxy_stats.py -## Author : Denny +## Author : Denny ## Description : A Python module to parse haproxy stats ## ## More reading: https://www.dennyzhang.com/haproxy_stats ## ## -- ## Created : <2016-10-04> -## Updated: Time-stamp: <2017-08-16 12:58:08> +## Updated: Time-stamp: <2017-09-04 18:55:30> ##------------------------------------------------------------------- # Name haproxy status output field by field HEADER_FIELD_NAMES = 'pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,chkdown,lastchg,downtime,qlimit,pid,iid,sid,throttle,lbtot,tracked,type,rate,rate_lim,rate_max,check_status,check_code,check_duration,hrsp_1xx,hrsp_2xx,hrsp_3xx,hrsp_4xx,hrsp_5xx,hrsp_other,hanafail,req_rate,req_rate_max,req_tot,cli_abrt,srv_abrt,comp_in,comp_out,comp_byp,comp_rsp,lastsess,last_chk,last_agt,qtime,ctime,rtime,ttime,' diff --git a/python/parse_log_for_errmsg/parse_log_for_errmsg.py b/python/parse_log_for_errmsg/parse_log_for_errmsg.py index ba88bf0b..1da89560 100755 --- a/python/parse_log_for_errmsg/parse_log_for_errmsg.py +++ b/python/parse_log_for_errmsg/parse_log_for_errmsg.py @@ -5,11 +5,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/master/LICENSE ## ## File : parse_log_for_errmsg.py -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-03-23> -## Updated: Time-stamp: <2017-06-30 23:25:10> +## Updated: Time-stamp: <2017-09-04 18:55:30> ##------------------------------------------------------------------- import argparse import sys diff --git a/python/selenium_load_page/README.md b/python/selenium_load_page/README.md index dad02072..7ccf69b6 100644 --- a/python/selenium_load_page/README.md +++ b/python/selenium_load_page/README.md @@ -1 +1,3 @@ -Read more: https://www.dennyzhang.com/selenium_docker \ No newline at end of file +Read more: https://www.dennyzhang.com/selenium_docker + +TODO: move to https://github.com/DennyZhang/python-selenium \ No newline at end of file diff --git a/python/selenium_load_page/selenium_gui_test.sh b/python/selenium_load_page/selenium_gui_test.sh index 14b08d66..08b21c9f 100755 --- a/python/selenium_load_page/selenium_gui_test.sh +++ b/python/selenium_load_page/selenium_gui_test.sh @@ -1,11 +1,11 @@ #!/bin/bash -e ##------------------------------------------------------------------- ## File : selenium_gui_test.sh -## Author : Denny +## Author : Denny ## Description : ## -- ## Created : <2017-05-18> -## Updated: Time-stamp: <2017-06-07 21:23:10> +## Updated: Time-stamp: <2017-09-04 18:54:35> ##------------------------------------------------------------------- url_test=${1?} test_py_script=${2?"/home/seluser/scripts/selenium_load_page.py"} diff --git a/python/tcp_port_scan/tcp_port_scan.py b/python/tcp_port_scan/tcp_port_scan.py index 06636297..d7ea686f 100755 --- a/python/tcp_port_scan/tcp_port_scan.py +++ b/python/tcp_port_scan/tcp_port_scan.py @@ -2,12 +2,12 @@ ##------------------------------------------------------------------- ## @copyright 2015 DennyZhang.com ## File : tcp_port_scan.py -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## More reading: https://www.dennyzhang.com/nmap_port_scan ## -- ## Created : <2016-01-15> -## Updated: Time-stamp: <2017-08-16 12:58:07> +## Updated: Time-stamp: <2017-09-04 18:55:30> ##------------------------------------------------------------------- import argparse import subprocess diff --git a/serverspec/common_library.rb b/serverspec/common_library.rb index 70036a1c..68bc5a60 100644 --- a/serverspec/common_library.rb +++ b/serverspec/common_library.rb @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : common_library.rb -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-05-10> -## Updated: Time-stamp: <2017-07-03 10:19:04> +## Updated: Time-stamp: <2017-09-04 18:55:45> ##------------------------------------------------------------------- ################################################################################ require 'socket' diff --git a/serverspec/db_helper.rb b/serverspec/db_helper.rb index 7e005037..d50c3bb4 100644 --- a/serverspec/db_helper.rb +++ b/serverspec/db_helper.rb @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : db_helper.rb -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-05-10> -## Updated: Time-stamp: <2017-07-03 10:19:06> +## Updated: Time-stamp: <2017-09-04 18:55:45> ##------------------------------------------------------------------- require 'socket' require 'serverspec' diff --git a/serverspec/general_helper.rb b/serverspec/general_helper.rb index 9837c020..c1428ed9 100644 --- a/serverspec/general_helper.rb +++ b/serverspec/general_helper.rb @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : general_helper.rb -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-05-10> -## Updated: Time-stamp: <2017-07-03 10:19:00> +## Updated: Time-stamp: <2017-09-04 18:55:45> ##------------------------------------------------------------------- ################################################################################ require 'socket' diff --git a/serverspec/jenkins_helper.rb b/serverspec/jenkins_helper.rb index e14d71a5..7b41a852 100644 --- a/serverspec/jenkins_helper.rb +++ b/serverspec/jenkins_helper.rb @@ -6,11 +6,11 @@ ## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE ## ## File : jenkins_helper.rb -## Author : DennyZhang.com +## Author : DennyZhang.com ## Description : ## -- ## Created : <2016-05-10> -## Updated: Time-stamp: <2017-07-03 10:19:02> +## Updated: Time-stamp: <2017-09-04 18:55:44> ##------------------------------------------------------------------- require 'socket' require 'serverspec'