MCPcopy Create free account

hub / github.com/DingGuodong/LinuxBashShellScriptForOps / functions

Functions1,705 in github.com/DingGuodong/LinuxBashShellScriptForOps

↓ 2 callersFunctiontime_converter
(string)
projects/WindowsSystemOps/System/Management/RemoteConnectionOrManagement/pyManageOtherWindowsSystemUsingWMI.py:31
↓ 2 callersFunctionto_unicode_or_bust
(obj, encoding='utf-8')
projects/WindowsSystemOps/Filesystem/sync-file-after-modified.py:30
↓ 2 callersFunctionto_unicode_or_bust
convert non-unicode object to unicode object :param obj: str object or unicode :param encoding: :return:
projects/WindowsSystemOps/System/Management/RemoteConnectionOrManagement/run-powershell-script-via-winrm.py:36
↓ 2 callersFunctionto_unicode_or_bust
convert non-unicode object to unicode object :param obj: str object or unicode :param encoding: :return:
functions/locale_i18n/always-using-unicode.py:31
↓ 2 callersFunctionto_unicode_or_bust
convert non-unicode object to unicode object :param obj: str object or unicode :param encoding: :return:
functions/powershell/run-powershell-script-via-winrm.py:36
↓ 2 callersFunctionusage
()
projects/LinuxSystemOps/SoftwareManagement/nginx/manage.py:26
↓ 2 callersFunctionusage
()
projects/LinuxSystemOps/DailyOps/dailyOpsManage.py:31
↓ 2 callersFunctionusage
()
projects/backupOps/FileSystem/backupSmallFileToTarToLocal.py:36
↓ 2 callersFunctionutc_to_localtime
(date, l_date_format="%Y-%m-%dT%H:%M:%S.%fZ", l_timezone='Asia/Shanghai', r_date_format="
functions/date/datetime-related-calculate.py:117
↓ 2 callersFunctionvalidate_version
(version)
functions/string/pyVersionCompare.py:56
↓ 2 callersFunctionwalk_tasks
(top, topdown=True, onerror=None, include_hidden=True, server_name=None, user=None, domain=None
projects/WindowsSystemOps/Software/Microsoft/TaskScheduler/check-task-scheduler-status.py:84
↓ 2 callersMethodwarn
(self, message)
functions/nosql/database/mysql/pyMysqlLoginMonitor.py:54
↓ 2 callersFunctionwhich
(path)
functions/check_if_exists/check_if_executable_exists.py:44
↓ 2 callersFunctionwin_or_linux
()
projects/LinuxSystemOps/SoftwareManagement/nginx/manage.py:42
↓ 2 callersFunctionwin_or_linux
()
projects/LinuxSystemOps/DailyOps/dailyOpsManage.py:48
↓ 2 callersFunctionwin_or_linux
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/checkHostStatusParallel.py:27
↓ 2 callersFunctionwin_or_linux
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:24
↓ 2 callersFunctionwin_or_linux
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:41
↓ 2 callersFunctionwin_or_linux
()
functions/check_if_exists/check_if_executable_exists.py:15
↓ 2 callersFunctionwin_or_linux
()
functions/net/ip/pyPingIcmpNetworkLatencyV2.py:19
↓ 2 callersFunctionwin_or_linux
()
functions/distribution-release/checkIsWindowsOrLinux.py:32
↓ 1 callersMethodDecryptMsg
(self, sPostData, sMsgSignature, sTimeStamp, sNonce)
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:287
↓ 1 callersFunctionEVP_BytesToKey
With the md5 encryption algorithm, each password has a unique key and iv corresponding to it learn from shadowsocks.cryptor.EVP_BytesToKey
functions/string/encrypt/pyAESCrypt.py:35
↓ 1 callersMethodEncryptMsg
(self, sReplyMsg, sNonce, timestamp=None)
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:266
↓ 1 callersMethodLoadPageContent
(self, page)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs-demo2-douban.py:39
↓ 1 callersMethodLoadPageContent
(self, page)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs.py:37
↓ 1 callersFunction__add_section_to_conf
()
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:105
↓ 1 callersMethod__build_spamhaus_zones
(self, ip)
projects/WindowsSystemOps/Software/Microsoft/Exchange/third-partyBlockLists/pyLookupSpamBlockListWithDig.py:51
↓ 1 callersMethod__connect
(self)
projects/WindowsSystemOps/Services/pyManageServicesOnOtherWindowsSystem.py:71
↓ 1 callersFunction__delete_section_from_conf
()
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:111
↓ 1 callersMethod__get_file_last_line
(inputfile)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:216
↓ 1 callersMethod__get_text_from_api
(self)
functions/net/ip/GeoIP/pyTaobaoGeoIPOps.py:49
↓ 1 callersMethod__get_token_from_persistence_storage
(self)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:327
↓ 1 callersMethod__is_token_expired
()
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:353
↓ 1 callersMethod__paths
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:176
↓ 1 callersFunction_do_redis_benchmark
()
functions/nosql/cache/redis-performance-tester.py:40
↓ 1 callersFunction_get_os_brand
(os_type)
functions/distribution-release/osinfo.py:158
↓ 1 callersFunction_get_os_kernel
(os_type)
functions/distribution-release/osinfo.py:324
↓ 1 callersFunction_get_os_release
(os_type)
functions/distribution-release/osinfo.py:280
↓ 1 callersFunction_get_os_type
()
functions/distribution-release/osinfo.py:135
↓ 1 callersFunction_get_whois_info
(domain_name)
functions/net/dns/python-whois-query.py:73
↓ 1 callersMethod_is_dict
(string)
projects/PythonHTTPServer/sampleHttpServer.py:93
↓ 1 callersMethod_is_json
(json_data)
projects/PythonHTTPServer/sampleHttpServer.py:84
↓ 1 callersFunction_random_sort
(n)
functions/performance/timeMeasure/timeMeasure.py:74
↓ 1 callersFunction_runCommandOnLinux
(executable)
projects/WindowsSystemOps/System/reset_winsock.py:63
↓ 1 callersFunction_runCommandOnLinux
(executable)
functions/system/command/runSystemCommandOnLinuxOrWindows.py:64
↓ 1 callersFunction_runCommandOnWindows
(executable)
projects/WindowsSystemOps/System/reset_winsock.py:45
↓ 1 callersFunction_runCommandOnWindows
(executable)
functions/system/command/runSystemCommandOnLinuxOrWindows.py:45
↓ 1 callersMethod_set_headers
(self)
functions/string/genSerializedUniqueNumber.py:89
↓ 1 callersFunction_walk_tasks_internal
(top, topdown, onerror, flags)
projects/WindowsSystemOps/Software/Microsoft/TaskScheduler/check-task-scheduler-status.py:62
↓ 1 callersFunctionadd_ssh_key
add an ssh key to host :return: None
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template.py:60
↓ 1 callersFunctionadd_ssh_key
add an ssh key to host :return: None
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template-for-root.py:67
↓ 1 callersFunctionafter_deploy
mail to admin, etc
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:282
↓ 1 callersFunctionafter_deploy
mail to admin, etc
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:284
↓ 1 callersFunctionalter
(filename)
functions/security/monitor_files_vars_daemon.py:70
↓ 1 callersFunctionask
Ask the message interactively, with the given possible responses :parameter message show message for users :parameter options y or n
functions/options/askUserAnswerYesNo.py:15
↓ 1 callersFunctionbackup
()
projects/backupOps/MySQL/backupMySQLOnWindows.py:98
↓ 1 callersFunctionbackup_and_process
KNOWN ISSUE: files' encoding must be same with system's encoding(locale.getpreferredencoding()) M1: set interpreter options '-X utf8'
functions/file/python-handle-stdin-and-files.py:47
↓ 1 callersFunctionbackup_databases
备份数据库的核心函数,完成的操作(含函数调用)有: 1. 筛选数据库文件,选择哪些文件需要备份 2. 压缩文件,如果大于10GB则意味着文件需要额外处理 3. 上传文件到OSS 4. 配置OSS object 过期时间(生命周
projects/backupOps/backup-files-to-aliyun-oss.py:468
↓ 1 callersFunctionbackup_databases
backup each database to remote host :return:
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:244
↓ 1 callersFunctionbackup_file
(src)
projects/WindowsSystemOps/Software/Microsoft/IIS/replace-multilines.py:150
↓ 1 callersFunctionbackup_files
packaging app files :return:
projects/backupOps/python-backup-mysql-and-files.py:127
↓ 1 callersFunctionbackup_mysql
Backup MySQL database using `mysqldump` mysqldump -u root --password="=kZ0W0e7KkdA" -h 127.0.0.1 -P 3306 \ --force --routines --even
projects/backupOps/python-backup-mysql-and-files.py:104
↓ 1 callersFunctionbackup_one_database
Backup one MySQL database using `mysqldump` and compress it into tgz mysqldump -u root --password="=kZ0W0e7KkdA" -h 127.0.0.1 -P 3306 \
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:201
↓ 1 callersFunctionbackup_source_dir
(src, dst)
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:263
↓ 1 callersFunctionbefore_deploy
check env, upload files, execute shell script(such as add user, install essential packages)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:277
↓ 1 callersFunctionbefore_deploy
check env, upload files, execute shell script(such as add user, install essential packages)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:279
↓ 1 callersFunctionblock_ip
(ip)
projects/WindowsSystemOps/Software/Others/breakMicrosoftMsn.py:76
↓ 1 callersFunctionbytes2human
(n)
functions/system/meminfo.py:36
↓ 1 callersFunctioncalculate_checksum
A port of the functionality of in_cksum() from ping.c Ideally this would act on the string as a series of 16-bit ints (host packed), but
functions/net/icmp/another-ping.py:58
↓ 1 callersFunctioncall_service_start_script
根据找到的服务的目录app_path,找到其中的启动脚本,并运行它 :param app_path: 服务路径 :return:
projects/LinuxSystemOps/Services/service-starter.py:274
↓ 1 callersFunctioncheckCRLFLineEnding
(path)
functions/file/checkCRLFLineEndingInWorkingDirectory.py:17
↓ 1 callersMethodcheckDockerServerVersion
()
projects/LinuxSystemOps/SoftwareManagement/docker/getDockerContainerInfoWithPidNumber.py:44
↓ 1 callersFunctioncheck_ansible_env
()
projects/LinuxSystemOps/AutoDevOps/Ansible/pyAnsibleGatheringFacts.py:24
↓ 1 callersFunctioncheck_container_stats
(container_name, collect_item)
projects/LinuxSystemOps/SoftwareManagement/docker/zabbix_monitor_docker.py:31
↓ 1 callersFunctioncheck_container_stats
(container_name, collect_item)
projects/others/docker/dockerStats.py:23
↓ 1 callersFunctioncheck_domain_status
(domain)
functions/performance/multiprocessing/using-thread-pool-to-handle-io-intensive-task.py:78
↓ 1 callersFunctioncheck_http
()
projects/checkServicesAvailability/HttpService/pyCheckHTTPServiceStatus.py:46
↓ 1 callersFunctioncheck_http_80_service
(ip_address)
functions/net/tcp/http/dnsHttpHealthCheck.py:24
↓ 1 callersFunctioncheck_if_equal_any
return True if any item of iterable equal to string :param string: str obj :param iterable: iterable obj such as list/tuple etc. :ret
functions/options/tiny-script-for-argument-options.py:30
↓ 1 callersFunctioncheck_keys
()
functions/string/encrypt/rsa-encrypt-decrypt.py:43
↓ 1 callersFunctioncheck_name_resolve
()
projects/checkServicesAvailability/HttpService/pyCheckHTTPServiceStatus.py:91
↓ 1 callersFunctioncheck_network
()
projects/checkServicesAvailability/HttpService/pyCheckHTTPServiceStatus.py:105
↓ 1 callersFunctioncheck_port
()
projects/checkServicesAvailability/HttpService/pyCheckHTTPServiceStatus.py:111
↓ 1 callersFunctioncheck_service_status
(serviceName)
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:185
↓ 1 callersFunctioncheck_site_status
(hostname)
functions/net/tcp/ssl/get-site-info.py:83
↓ 1 callersFunctioncheck_var_is_absent
(var)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:238
↓ 1 callersFunctioncheck_website_status
(url)
functions/net/tcp/http/pyCheckWebsitesStatus.py:53
↓ 1 callersFunctioncheckout
Checkout code to the remote servers
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:190
↓ 1 callersFunctioncheckout
Checkout code to the remote servers
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:212
↓ 1 callersFunctionchecksum
I'm not too confident that this is right but testing seems to suggest that it gives the same answers as in_cksum in ping.c
functions/net/icmp/py-ping.py:113
↓ 1 callersFunctionchecksum
I'm not too confident that this is right but testing seems to suggest that it gives the same answers as in_cksum in ping.c
functions/net/icmp/python-ping.py:127
↓ 1 callersMethodcity
(self)
functions/net/ip/getPublicIPAddress_urllib2Impl.py:47
↓ 1 callersMethodcity
(self)
functions/net/ip/getPublicIPAddress_curlImpl.py:55
↓ 1 callersFunctionclean_old_backups
clean old backups with given directory, return counts of files deleted :param path: backup directory :param ext: extension of backup file
projects/backupOps/FileSystem/clean-old-backups-with-given-directory.py:63
↓ 1 callersFunctioncleanup
Clean up old releases
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:306
↓ 1 callersFunctioncleanup
remove old backups, only keep backups not older than x days and count less than x. :return:
projects/backupOps/python-backup-mysql-and-files.py:155
↓ 1 callersFunctioncleanup
remove old backups, only keep backups not older than x days and count less than x. :return:
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:265
↓ 1 callersMethodcleanup
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:207
↓ 1 callersFunctioncleanup_backup_dir
(src, save_days=7)
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:272
← previousnext →301–400 of 1,705, ranked by callers