Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DingGuodong/LinuxBashShellScriptForOps
/ functions
Functions
1,705 in github.com/DingGuodong/LinuxBashShellScriptForOps
⨍
Functions
1,705
◇
Types & classes
72
↳
Endpoints
2
↓ 118 callers
Method
get
(self)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:367
↓ 110 callers
Method
decode
删除解密后明文的补位字符 @param decrypted: 解密后的明文 @return: 删除补位字符后的明文
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:170
↓ 104 callers
Method
get
(self)
functions/net/ip/getLocalIP.py:33
↓ 84 callers
Method
info
(self, msg)
functions/log/pyLogging_u3.py:56
↓ 83 callers
Method
run
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:289
↓ 80 callers
Method
encode
对需要加密的明文进行填充补位 @param text: 需要进行填充补位操作的明文 @return: 补齐明文字符串
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:155
↓ 61 callers
Method
connect
(self, host, port, username, password, tls=True)
functions/net/tcp/email/sendEmailWithSMTP.py:19
↓ 48 callers
Function
print_
(a, b)
functions/system/procinfo.py:129
↓ 47 callers
Method
error
(self, msg)
functions/log/pyLogging_u3.py:62
↓ 47 callers
Function
run
(command, capture_stdout=False, suppress_stdout=False)
projects/LinuxSystemOps/SoftwareManagement/yum/pyTryInstallPackagesUntilSuccessfuss.py:81
↓ 30 callers
Method
start
Start the daemon
projects/PythonDaemon/pydaemon.py:100
↓ 27 callers
Function
func
(x)
functions/performance/multithreading/threading-example-1-using-thread-pool.py:34
↓ 23 callers
Method
warning
(self, msg)
functions/log/pyLogging_u3.py:59
↓ 20 callers
Function
set_cmd_text_color
(color, handle=std_out_handle)
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:87
↓ 18 callers
Function
resetColor
()
functions/others/ui/console/pyPrintColorToConsoleOnWindows.py:106
↓ 17 callers
Method
update
(self, pbar)
functions/file/python_handle_file/progressbar_example.py:62
↓ 16 callers
Method
current_path
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:154
↓ 14 callers
Method
debug
(self, objects)
projects/LinuxSystemOps/SoftwareManagement/docker/getMemUsageTop10InDockerEnv.py:102
↓ 14 callers
Method
login
(self, username, password)
functions/net/tcp/ldap/pyAuthenticationByLDAP.py:92
↓ 13 callers
Method
finish
(self)
functions/net/socket/tcp-port-binding-and-test/py-tcp-port-binding-and-test-server.py:53
↓ 13 callers
Function
sqlite3_conn
(database)
projects/WeChatOps/pySendMessageWithWeChat/odbp_database.py:49
↓ 12 callers
Function
sqlite3_close
(conn)
projects/WeChatOps/pySendMessageWithWeChat/odbp_database.py:78
↓ 11 callers
Method
mkdir
(path)
functions/net/tcp/http/spider/pySpiderSeleniumPhantomjs.py:167
↓ 11 callers
Method
set
(self, repo_url, branch=None, repo_path=None)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:74
↓ 10 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v3.py:127
↓ 10 callers
Function
sqlite3_conn
(database)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:52
↓ 9 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param name: str, set the log
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:60
↓ 9 callers
Function
print_line
A thin wrapper around curses's addstr().
functions/system/nettop.py:60
↓ 9 callers
Function
sqlite3_close
(conn)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:81
↓ 9 callers
Function
sqlite3_commit
(conn)
projects/WeChatOps/pySendMessageWithWeChat/odbp_database.py:74
↓ 8 callers
Method
do
Send one ICMP ECHO_REQUEST and receive the response until self.timeout
functions/net/icmp/another-ping.py:334
↓ 8 callers
Method
encrypt
(self, data)
functions/string/encrypt/python-encrypt-phone-number.py:48
↓ 8 callers
Method
get_string
(self, offset=0)
functions/net/ip/GeoIP/chunzhen.net/parse-qqwry.dat.py:139
↓ 8 callers
Function
print_line
A thin wrapper around curses's addstr().
functions/system/top.py:66
↓ 8 callers
Method
send
(self, to_user, content)
projects/WeChatOps/pySendMessageWithWeChat/odbp_sendMessage.py:38
↓ 8 callers
Function
send_message
(title=u'', message=u'')
projects/WindowsSystemOps/Services/pyBringExchangeServicesUp.py:197
↓ 7 callers
Function
_wrap_with
(code)
functions/others/ui/console/py-print-text-with-color-in-console.py:36
↓ 7 callers
Method
decrypt
(self, data)
functions/string/encrypt/python-encrypt-phone-number.py:55
↓ 7 callers
Function
print_v2
(*args)
functions/net/tcp/ssl/get-ssl-cert-info-from-pem-file.py:59
↓ 7 callers
Function
query_dns_rr
query ip address of given domain name :param qname: domain name :param rdtype: A, CNAME, MX, TXT, NS, SRV, ... :param nameserver:
functions/net/dns/pyDnsQueryRR.py:34
↓ 7 callers
Function
sqlite3_commit
(conn)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:77
↓ 7 callers
Function
status_service
(service_name)
projects/WindowsSystemOps/Services/ServiceControl.py:95
↓ 7 callers
Function
sudo_run
(*args, **kwargs)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:177
↓ 7 callers
Function
to_unicode_or_bust
(obj, encoding='utf-8')
projects/backupOps/backup-files-to-aliyun-oss.py:155
↓ 7 callers
Method
update
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:114
↓ 6 callers
Function
bytes2human
>>> bytes2human(10000) '9.8 K' >>> bytes2human(100001221) '95.4 M'
functions/system/nettop.py:80
↓ 6 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:122
↓ 6 callers
Function
decoding
(text)
functions/locale_i18n/decodingNonASCII.py:36
↓ 6 callers
Method
fork
Spawn the child process
projects/PythonDaemon/pydaemon.py:77
↓ 6 callers
Function
get_acc_psw_with_ends
get full ip address, username and password with given ip num from config.json :param num: ip :type num: str | int :return: ip_addr, a
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:118
↓ 6 callers
Function
get_remote_host_status
:param host: str :param port: int :return: boolean
projects/WindowsSystemOps/Services/pyResetOpenVPNServiceWhenNetworkIsDown.py:34
↓ 6 callers
Method
info
(self, message)
functions/nosql/database/mysql/pyMysqlLoginMonitor.py:51
↓ 6 callers
Method
rollback
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:234
↓ 6 callers
Function
send_message
(title=u'', message=u'')
projects/WindowsSystemOps/Services/pyRestartExchangeServices.py:202
↓ 6 callers
Function
str_ntuple
(nt, bytes2human=False)
functions/system/procinfo.py:137
↓ 6 callers
Function
sudo_run
(*args, **kwargs)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:148
↓ 6 callers
Function
verbose_ping
Send >count< ping to >dest_addr< with the given >timeout< and display the result.
functions/net/icmp/py-ping.py:231
↓ 5 callers
Function
confirm
Ask user a yes/no question and return their response as True or False. :parameter question: ``question`` should be a simple, grammatical
projects/LinuxSystemOps/Filesystem/du.py:56
↓ 5 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/LinuxSystemOps/Services/service-starter.py:172
↓ 5 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.1.py:115
↓ 5 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.py:124
↓ 5 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/clean-old-backup-files.py:121
↓ 5 callers
Function
console_log_msg
send log to file and sys.stderr :param msg: str, log message :param level: str, log severity, error、warn、debug、info :param name: str,
functions/log/pyLogging_u5.py:58
↓ 5 callers
Function
create_backup_file
(path)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template-for-root.py:63
↓ 5 callers
Function
decoding
(text)
projects/WindowsSystemOps/Services/pyManageServicesOnOtherWindowsSystem.py:32
↓ 5 callers
Function
decoding
(text)
projects/WindowsSystemOps/Services/pyServicesManagerBasedOnWMI.py:32
↓ 5 callers
Method
deploy_path
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:151
↓ 5 callers
Method
generate
生成xml消息 @param encrypt: 加密后的消息密文 @param signature: 安全签名 @param timestamp: 时间戳 @param nonce: 随机字符串 @return: 生成的
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:132
↓ 5 callers
Method
getPPid
(self)
projects/LinuxSystemOps/SoftwareManagement/docker/getDockerContainerInfoWithPidNumber.py:159
↓ 5 callers
Function
is_ubuntu
()
projects/LinuxSystemOps/Services/SysV/sysv-initscript-render/pyInitScriptRender.py:49
↓ 5 callers
Function
is_url_valid
(url)
functions/net/tcp/http/pyUrlValidator.py:14
↓ 5 callers
Function
is_url_valid_am1
http://validators.readthedocs.io/en/latest/ Python has all kinds of validation tools, but every one of them requires defining a schema. I
functions/net/tcp/http/pyUrlValidator.py:27
↓ 5 callers
Function
password_generator
:param length: password length :param complexity: password complexity level :param must_include: password must include chars :return:
functions/string/password-generator.py:96
↓ 5 callers
Function
permissions
Make the release group-writable
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:171
↓ 5 callers
Function
permissions
Make the release group-writable
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:185
↓ 5 callers
Method
releases_path
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:158
↓ 5 callers
Function
run
(command, capture_stdout=False, suppress_stdout=False)
functions/net/tcp/ssh/pySettingSSHTrust.py:106
↓ 5 callers
Function
run_powershell
run remote command with WinRM :param target: hostname or ip address :type target: str :param username: :type username: str :p
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:250
↓ 5 callers
Method
send
(self, from_user, to_user, subject, text)
functions/net/tcp/email/sendEmailWithSMTP.py:31
↓ 5 callers
Function
stage_set
(stage_name='develop')
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:101
↓ 4 callers
Function
bytes2human
>>> bytes2human(10000) '9.8 K/s' >>> bytes2human(100001221) '95.4 M/s'
functions/system/iotop.py:79
↓ 4 callers
Function
console_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param args: 需要打印日志的list、tupl
projects/WindowsSystemOps/Filesystem/remove-backup-files-to-keep-disk-usable.py:54
↓ 4 callers
Function
convert_bytes
(n)
functions/system/procsmem.py:47
↓ 4 callers
Function
disable_account
disable user account :param server:hostname or ip address :type server:str | int :param name: user account name :type name:str
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:276
↓ 4 callers
Method
error
(self, message)
functions/nosql/database/mysql/pyMysqlLoginMonitor.py:57
↓ 4 callers
Method
getContainerId
(self)
projects/LinuxSystemOps/SoftwareManagement/docker/getDockerContainerInfoWithPidNumber.py:277
↓ 4 callers
Method
getPPid
(self)
projects/LinuxSystemOps/SoftwareManagement/docker/getMemUsageTop10InDockerEnv.py:158
↓ 4 callers
Method
getServiceState
(self, name)
projects/WindowsSystemOps/Services/pyManageServicesOnOtherWindowsSystem.py:90
↓ 4 callers
Method
getServiceState
(self, name)
projects/WindowsSystemOps/Services/pyServicesManagerBasedOnWMI.py:108
↓ 4 callers
Function
get_cert_valid_days_remaining
Get the number of days left in a cert's lifetime. import datetime; print((datetime.datetime.strptime("2021/7/26", "%Y/%m/%d") - datetime.date
projects/LinuxSystemOps/SoftwareManagement/zabbix/get-domain-ssl-info.py:79
↓ 4 callers
Function
get_cert_valid_days_remaining
Get the number of days left in a cert's lifetime. import datetime; print((datetime.datetime.strptime("2021/7/26", "%Y/%m/%d") - datetime.date
functions/net/tcp/ssl/get-domain-ssl-info.py:104
↓ 4 callers
Method
get_fingerprint
(key)
functions/net/tcp/ssh/pySettingSSHTrust.py:221
↓ 4 callers
Method
get_long3
(self, offset=0)
functions/net/ip/GeoIP/chunzhen.net/parse-qqwry.dat.py:160
↓ 4 callers
Method
get_pid
Returns the PID from pidfile
projects/PythonDaemon/pydaemon.py:116
↓ 4 callers
Function
get_site_title_from_html
(url)
functions/net/tcp/ssl/get-site-info.py:32
↓ 4 callers
Function
is_windows
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:50
↓ 4 callers
Function
print_if_debug
(value)
functions/monitor/send_message/pySendMessageToWeixinWork.py:34
↓ 4 callers
Function
print_if_debug
(value)
functions/monitor/send_message/pySendMessageToDingTalk.py:43
↓ 4 callers
Function
query_account_status
query user account status :param server:hostname or ip address :type server:str | int :param name: user account name :type name:s
projects/WindowsSystemOps/Account/windows-user-accounts-manager.py:345
↓ 4 callers
Function
sqlite3_get_credential
()
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:194
next →
1–100 of 1,705, ranked by callers