MCPcopy Create free account

hub / github.com/DingGuodong/LinuxBashShellScriptForOps / functions

Functions1,705 in github.com/DingGuodong/LinuxBashShellScriptForOps

Functionmain
()
functions/performance/other-performance-improvement/pyProfileUsage.py:31
Functionmain
(url)
functions/net/tcp/http/pyCheckWebsitesStatus.py:48
Functionmain_change_account_status_u1
:param ip: :type ip: str | int :param user: :type user: :return: :rtype:
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:464
Functionmd5sum
(filename)
functions/file/getHashSum.py:42
Functionminimal_process
()
projects/LinuxSystemOps/System/test-system-limit-nofile-nproc.py:66
Functionmysql_query
(host, user, password, port, charset, database, sql)
functions/nosql/database/mysql/pyTestMysqlConnection.py:72
Functionmysql_query
(sql)
functions/nosql/database/mysql/pySelectMysqlWithGevent.py:22
Functionopen_default_browser
(url)
projects/WindowsSystemOps/Software/WebBrowser/webBrowserEmulator.py:17
Functionothers_defs
()
projects/LinuxSystemOps/SoftwareManagement/zabbix/zabbix-api/get-data-from-zabbix.py:64
Functionoverride_text_to_file
(text, path)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template.py:361
Functionoverride_text_to_file
(text, path)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template-for-root.py:431
MethodparseRequest
(self)
projects/PythonHTTPServer/GitWebHooksAutoDeployScript/GitWebHooksAutoDeployWebServer.py:138
Functionparse_data_file
(filename)
functions/net/tcp/ssl/get-site-info.py:73
Methodpassword_strength
(self)
functions/security/pyPasswordGenerator.py:53
Functionprepare
make sure enough disk space available make sure network is enabled :return:
projects/backupOps/backup-files-to-aliyun-oss.py:223
Functionprint_all_conns
()
functions/string/statisticsanalyse/pyNetstatStatistic.py:16
Functionprint_conns_by_proc_name
(name)
functions/string/statisticsanalyse/pyNetstatStatistic.py:22
Functionprint_conns_by_remote_addr
(addr)
functions/string/statisticsanalyse/pyNetstatStatistic.py:34
Functionprint_some_times
()
functions/others/scheduler/sched-quick-start.py:38
Functionprint_time
()
functions/others/scheduler/sched-quick-start.py:34
Functionprod
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:99
Functionprod
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:123
Functionproduction
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricWithStages.py:43
Functionprompt
(func)
functions/performance/multithreading/pyThreadingWithOrderedReturn.py:66
Functionprompt
(func)
functions/performance/multiprocessing/pyMultiprocessingWithOrderedReturn.py:64
FunctionputSelf
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:223
Functionquery_httpdns
()
projects/WeChatOps/checkWeixinApi/putAvailableWeiXinApiDnsToHosts.py:26
Functionquery_status
(service_name='TermService')
projects/WindowsSystemOps/Services/pyRestartExchangeServices.py:105
Functionquiet_ping
Send `count' ping with `psize' size to `dest_addr' with the given `timeout' and display the result. Returns `percent' lost packages, `max
functions/net/icmp/python-ping.py:259
Functionremote_exec
(hostname, command)
functions/net/tcp/ssh/pySshConnectParallel.py:18
Functionremove_company_type
(company_name)
functions/string/convert-chinese-to-pinyin.py:41
Methodremove_pidfile
Removes the pidfile on process exit
projects/PythonDaemon/pydaemon.py:94
Functionrequest_http
(url)
projects/WeChatOps/checkWeixinApi/checkWeixinApi.py:24
Functionrequest_ip_port_80
request a url with redirect :return:
functions/net/others/inspect-alive-nodes.py:134
Functionrequests_example1
request a common URL :return:
functions/net/tcp/http/pythonHTTPSOps_requests.py:14
Functionrequests_example2
request a url with redirect :return:
functions/net/tcp/http/pythonHTTPSOps_requests.py:30
Functionrequests_example3
request a URL with a valid cert authority :return:
functions/net/tcp/http/pythonHTTPSOps_requests.py:43
FunctionresetColorToWhite
()
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:93
Methodreset_data
(self)
projects/WeChatOps/pySendMessageByWeChatWithoutSQL/sendMessageByWeChatApi.py:115
Methodreset_data
(self)
functions/monitor/send_message/send-zabbix-alert-msg-to-weixin-work.py:118
Functionresponse_favicon
()
projects/PythonHTTPServer/sampleHTTPServerOverFlask.py:40
Functionresponse_root
()
projects/PythonHTTPServer/sampleHTTPServerOverFlask.py:27
Functionrestart
Restarts your application
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:291
MethodrestartServiceName
(self, name)
projects/WindowsSystemOps/Services/pyManageServicesOnOtherWindowsSystem.py:134
MethodrestartServiceName
(self, name)
projects/WindowsSystemOps/Services/pyServicesManagerBasedOnWMI.py:156
Functionrestart_service
(service_name)
projects/WindowsSystemOps/Services/ServiceControl.py:184
Functionrestart_service
(service_name='TermService')
projects/WindowsSystemOps/Services/pyBringExchangeServicesUp.py:144
Functionretrieve_data_by_pymssql
()
functions/nosql/database/sqlserver/retrieve-data-from-sql-server.py:50
Functionrollback
Rolls back to a previous version and restarts
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:270
Functionrollback
Rolls back to a previous version and restarts
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:334
Functionrollback_file
(path, extension='~')
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:262
Functionrun
run system command as if it were executed directly from the command line :param command: :return: return_code
functions/system/command/pyPythonicRunSystemCommand.py:60
Methodrun
(self)
projects/PythonDaemon/pydaemon.py:171
Methodrun
(self, edit)
projects/WindowsSystemOps/Software/sublime_text_plugins/sublimeText2_plugin_add_info.py:23
Functionrun_check_output
not very well, see to 'KNOWN ISSUE' :param command: :return:
functions/system/command/pyPythonicRunSystemCommand.py:69
Functionrun_command
(command)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricBatchManager.py:75
Functionrun_command
run system command by subprocess.Popen in silent :param executable: executable command :return: return_code, stdout, stderr
functions/git/update_git_repos_by_pull.py:32
Functionrun_command
run system command by subprocess.Popen in silent :param executable: executable command :return: return_code, stdout, stderr
functions/system/command/pyPythonicRunSystemCommand.py:34
Functionrun_command_u1
run system command by subprocess. u1: Combine stdout and stderr into stdout, such as 'exec >file 2>&1' :param executable: executable comm
functions/system/command/pyPythonicRunSystemCommand.py:46
Functionrun_command_with_codepage
[Chinese characters are not displayed properly #288](https://github.com/diyan/pywinrm/issues/288) [Code Page Identifiers](https://docs.micros
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:153
Functionrun_powershell
run remote command with WinRM :param target: hostname or ip address :type target: str :param username: :type username: str :p
projects/WindowsSystemOps/System/Management/RemoteConnectionOrManagement/run-powershell-script-via-winrm.py:100
Functionrun_powershell
run remote command with WinRM :param target: hostname or ip address :type target: str :param username: :type username: str :p
functions/powershell/run-powershell-script-via-winrm.py:100
Functionrun_powershell_with_codepage_936
run remote command with WinRM if your code ran into a garbage text or Chinese characters are not displayed properly [Chinese characters are
projects/WindowsSystemOps/System/Management/RemoteConnectionOrManagement/run-powershell-script-via-winrm.py:54
Functionrun_powershell_with_codepage_936
run remote command with WinRM if your code ran into a garbage text or Chinese characters are not displayed properly [Chinese characters are
functions/powershell/run-powershell-script-via-winrm.py:54
Functionrun_workload
(path)
functions/git/update_git_repos_by_pull.py:89
Functionsave_data_to_mysql
(args)
functions/nosql/database/mysql/insert-data-into-mysql.py:30
Methodsend
(self, to_user, content)
projects/WeChatOps/pySendMessageWithWeChat/odbp_sendMessagewithCount.py:72
Functionsend_message_to_dingtalk
使用钉钉群自定义机器人发送消息到钉钉群的步骤: 前提:注册企业微信,目前无需企业实名认证 1. 创建钉钉群聊(至少1个人,可以添加无关人再删除无关人达到至少1人的情况),使用PC端登录打开群聊,添加机器人 2. 建议使用“加签”安全设置,记录
functions/monitor/send_message/pySendMessageToDingTalk.py:48
Functionsend_message_to_work_weixin
使用企业微信群机器人发送消息到企业内部群的步骤: 前提:注册企业微信,目前无需企业实名认证 1. 创建企业微信内部群聊, 2. 添加群机器人,记录下Webhook地址即可 注意:企业微信群聊机器人只能用在企业微信内部群聊,不能
functions/monitor/send_message/pySendMessageToWeixinWork.py:39
Functionsendmail
(mail)
functions/performance/concurrence/celery/celeryOps.py:24
FunctionsetConfValue
(pathFile, confName, newValue, typeData)
functions/file/ConfParser/confparser-confToDict.py:43
MethodsetUp
(self)
projects/WindowsSystemOps/Software/Microsoft/Exchange/third-partyBlockLists/checkIfInBlockLists.py:63
MethodsetUp
(self)
projects/WindowsSystemOps/Software/Microsoft/Exchange/third-partyBlockLists/checkIfInBlockLists.py:80
Functionset_capistrano_directory_structure_over_fabric
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:342
Functionset_dns_resolver
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:304
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/LinuxSystemOps/Services/service-starter.py:92
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.1.py:44
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v3.py:56
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:42
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.py:53
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/WindowsSystemOps/Filesystem/clean-old-backup-files.py:41
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
projects/backupOps/backup-files-to-aliyun-oss.py:63
Functionset_file_logger
(filename, name="mylog", level=logging.INFO, format_string=None)
functions/log/pyLogging_u4.py:35
Functionset_file_logger_date
(filename, name="mylog", saves=10, level=logging.INFO, format_string=None)
functions/others/scheduler/APScheduler-quick-start.py:39
Functionset_file_logger_date
(filename, name="mylog", saves=10, level=logging.INFO, format_string=None)
functions/log/pyLogging_u4.py:48
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/LinuxSystemOps/Services/service-starter.py:118
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.1.py:70
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v3.py:82
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:68
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.py:79
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/WindowsSystemOps/Filesystem/clean-old-backup-files.py:67
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
projects/backupOps/backup-files-to-aliyun-oss.py:91
Functionset_file_logger_size
(filename, name="mylog", max_size=1024 * 1024 * 2, saves=10, level=logging.INFO, form
functions/log/pyLogging_u4.py:61
Functionset_firewall
()
projects/WindowsSystemOps/Software/Microsoft/Windows/disable-windows-update.py:129
Functionset_gpo
()
projects/WindowsSystemOps/Software/Microsoft/Windows/disable-windows-update.py:97
Functionset_hosts_file
(hosts="/etc/hosts")
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/fabfile.py:309
Functionset_registry
()
projects/WindowsSystemOps/Software/Microsoft/Windows/disable-windows-update.py:110
Functionset_stream_logger
stream logger for debug purpose
projects/backupOps/backup-files-to-aliyun-oss.py:106
Functionsha1sum
(filename)
projects/WindowsSystemOps/Filesystem/generate-filename-and-md5sum.py:63
Functionsha1sum
(filename)
functions/file/getHashSum.py:46
← previousnext →1,501–1,600 of 1,705, ranked by callers