MCPcopy Create free account

hub / github.com/DingGuodong/LinuxBashShellScriptForOps / functions

Functions1,705 in github.com/DingGuodong/LinuxBashShellScriptForOps

↓ 1 callersFunctioncleanup_used_files
keep directory structures, delete files recursively only :param src: :type src: :return: :rtype:
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:282
↓ 1 callersMethodcli
(self)
functions/net/ip/getPublicIPAddress_urllib2Impl.py:29
↓ 1 callersMethodcli
(self)
functions/net/ip/getPublicIPAddress_curlImpl.py:33
↓ 1 callersMethodclone
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:99
↓ 1 callersFunctioncompare_version
get latest version in version_lest and version right, using "from distutils.version import LooseVersion". Refers: https://segmentfault.com/q
functions/string/pyVersionCompare.py:29
↓ 1 callersFunctioncompress_file_by_rar
(path)
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:164
↓ 1 callersFunctioncompress_file_by_tar
(path)
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:155
↓ 1 callersFunctioncompress_files
compress files or directory using tar in python :param name: tgz filename, the name can be a full path of name :param path: path to file
projects/backupOps/backup-files-to-aliyun-oss.py:302
↓ 1 callersFunctioncompress_files
compress files or directory using tar in python :param name: tgz filename, the name can be a full path of name :param path: path to file
projects/backupOps/MySQL/backup-mysql-to-remote-over-ssh.py:164
↓ 1 callersFunctioncompress_src_directory_to_dst
(save_name, source)
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:247
↓ 1 callersFunctionconfig_apt_source_list
()
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/ProvisionDockerEngineByFabric.py:208
↓ 1 callersFunctionconfig_conf
(path_to_conf_file)
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:102
↓ 1 callersFunctionconfiguring_kernel_parameters
Tips: set vm.swappiness = 0 if there is no swap configured set net.ipv4.conf.default.rp_filter = 1 may be not preferred on cloud
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template.py:179
↓ 1 callersFunctionconfiguring_kernel_parameters
Tips: set vm.swappiness = 0 if there is no swap configured set net.ipv4.conf.default.rp_filter = 1 may be not preferred on cloud
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template-for-root.py:229
↓ 1 callersFunctionconfirm
Ask user a yes/no question and return their response as True or False. :parameter question: ``question`` should be a simple,
functions/security/checkDataIntegrity.py:120
↓ 1 callersMethodconnect
(self, host, port, enable_tls=False, enable_ssl=False)
functions/net/tcp/ldap/pyAuthenticationByLDAP.py:65
↓ 1 callersFunctionconnect_ftp
()
functions/net/tcp/sftp/py-ftps-client-ops.py:45
↓ 1 callersFunctionconnect_ftps
FTP over TLS NOte: do NOT enable 'Require TLS session resumption on data connection when using PROT P', or you will get excep
functions/net/tcp/sftp/py-ftps-client-ops.py:53
↓ 1 callersFunctionconsole_log_msg
记录日志到指定的文件并按照日期切割 :param msg: str, 需要打印日志的普通字符串 :param level: str, 打印日志的级别,可以定义error、warn、debug、info等其他 :param name: str, set the log
functions/log/pyLogging_u3.1.py:47
↓ 1 callersFunctionconvert_file_from_utf16_to_utf8
:param path: file path :type path: str :return: success code :rtype: bool
projects/WindowsSystemOps/Filesystem/file-encoding-converter-and-compress-to-zip.py:170
↓ 1 callersFunctioncountdown
blocking process 1 :param secs: seconds, int :return:
projects/WindowsSystemOps/System/pyScheduleTask.py:81
↓ 1 callersFunctioncreate_blank_file
(name)
projects/WindowsSystemOps/Filesystem/gen-demo-data/generate-test-files.py:32
↓ 1 callersFunctioncreate_file
(filename)
projects/LinuxSystemOps/System/test-system-limit-nofile-nproc.py:37
↓ 1 callersFunctioncreate_file
create file with given name and content :param name: filename :type name: str :param content: content :type content: str :ret
functions/string/html/python-get-resource-from-weixin-mp.py:36
↓ 1 callersMethodcreate_pidfile
(self)
projects/PythonDaemon/pydaemon.py:89
↓ 1 callersFunctioncreate_process
()
projects/LinuxSystemOps/System/test-system-limit-nofile-nproc.py:72
↓ 1 callersFunctioncreate_task_trigger_weekly
(at_time, day_of_week=1)
projects/WindowsSystemOps/Software/Microsoft/TaskScheduler/create-a-task.py:71
↓ 1 callersFunctioncreate_user
(user, passwd, is_super=False)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template.py:308
↓ 1 callersFunctioncreate_user
(user, passwd, is_super=False)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-application-template-for-root.py:386
↓ 1 callersMethoddaemonize
do the UNIX double-fork magic, see Stevens' "Advanced Programming in the UNIX Environment" for details (ISBN 0201563177) http
projects/PythonDaemon/pydaemon.py:36
↓ 1 callersFunctiondate_example1
()
functions/others/scheduler/APScheduler-quick-start.py:136
↓ 1 callersFunctiondatetime_to_string
(datetime_obj, fmt="%Y-%m-%d %H:%M:%S")
functions/net/dns/python-whois-query.py:65
↓ 1 callersFunctiondebug
(msg, code=None)
projects/WeChatOps/pySendMessageWithWeChat/odbp_getToken.py:23
↓ 1 callersFunctiondebug_msg_with_logging
脚本调试函数,输出日志行到标准输出 :param msg: str, 需要打印日志的普通字符串 :param args: 需要打印日志的list、tuple等 :param kwargs: 需要打印日志的字典 :return:
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.1.py:101
↓ 1 callersFunctiondebug_msg_with_logging
脚本调试函数,输出日志行到标准输出 :param msg: str, 需要打印日志的普通字符串 :param args: 需要打印日志的list、tuple等 :param kwargs: 需要打印日志的字典 :return:
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v3.py:113
↓ 1 callersFunctiondebug_msg_with_logging
脚本调试函数,输出日志行到标准输出 :param msg: str, 需要打印日志的普通字符串 :param args: 需要打印日志的list、tuple等 :param kwargs: 需要打印日志的字典 :return:
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v2.py:110
↓ 1 callersFunctiondebug_msg_with_logging
脚本调试函数,输出日志行到标准输出 :param msg: str, 需要打印日志的普通字符串 :param args: 需要打印日志的list、tuple等 :param kwargs: 需要打印日志的字典 :return:
projects/WindowsSystemOps/Filesystem/clean-old-backup-files.py:107
↓ 1 callersFunctiondecoding
(text)
projects/WindowsSystemOps/Services/pyBringExchangeServicesUp.py:51
↓ 1 callersFunctiondecoding
(text)
projects/WindowsSystemOps/Services/pyRestartExchangeServices.py:56
↓ 1 callersMethoddecrypt
对解密后的明文进行补位删除 @param text: 密文 @:param appid: @return: 删除填充补位后的明文
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:211
↓ 1 callersFunctiondecrypt_aes_256_cfb
(key, iv, plaintext, mode=AES.MODE_CFB)
functions/string/encrypt/pyAESCrypt.py:85
↓ 1 callersFunctiondecrypt_aes_cbc
(data)
functions/string/encrypt/encrypt-and-decrypt-with-PyCryptodome.py:49
↓ 1 callersFunctiondecrypt_pkcs1_rsa
(data)
functions/string/encrypt/encrypt-and-decrypt-with-PyCryptodome.py:69
↓ 1 callersFunctiondelete_invalid_backup_files
save 5 + 1 (1 also in 4 weekly bak) monthly bak, 4 weekly bak, 7 daily bak after delete invalid backup files, there will are 5 monthly bak, 4
projects/WindowsSystemOps/Filesystem/clean-old-backup-files-v3.py:253
↓ 1 callersMethoddeploy
(self)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyCapistrano.py:269
↓ 1 callersMethoddeploy
(self, path)
projects/GitWebHooksAutoDeployScript/GitOSCAutoDeployWithLog.py:164
↓ 1 callersMethoddeploy
(self, path)
projects/GitWebHooksAutoDeployScript/GitOSCAutoDeploy.py:127
↓ 1 callersMethoddeploy
(self, path)
projects/GitWebHooksAutoDeployScript/GitAutoDeploy.py:94
↓ 1 callersMethoddeploy
(self, path)
projects/GitWebHooksAutoDeployScript/GitLabAutoDeploy.py:166
↓ 1 callersMethoddettach_env
(self)
projects/PythonDaemon/pydaemon.py:72
↓ 1 callersFunctiondir_exists
(path)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndCapistrano.py:103
↓ 1 callersFunctiondir_exists
(path)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric1.x/pyFabricAndStrictCapistrano.py:127
↓ 1 callersFunctiondisable_update_service
()
projects/WindowsSystemOps/Software/Microsoft/Windows/disable-windows-update.py:64
↓ 1 callersMethoddisconnect
(self)
functions/net/tcp/ldap/pyAuthenticationByLDAP.py:132
↓ 1 callersFunctiondisk_free
(c)
projects/LinuxSystemOps/AutoDevOps/Fabric/Fabric2.x/fabric2-quick-start.py:45
↓ 1 callersFunctiondisplay_image
(wordcloud)
functions/others/graph/genterate-a-word-cloud.py:88
↓ 1 callersFunctiondo_action
()
functions/assistence/retry-attempts.py:10
↓ 1 callersFunctiondo_clean_logs
(path, ends=".log")
projects/WindowsSystemOps/Filesystem/clean-iis-log-files.py:40
↓ 1 callersFunctiondo_one
Returns either the delay (in seconds) or none on timeout.
functions/net/icmp/py-ping.py:203
↓ 1 callersFunctiondo_redis_benchmark
(times=4)
functions/nosql/cache/redis-performance-tester.py:56
↓ 1 callersFunctiondo_service
(service_name, service_action)
projects/WindowsSystemOps/Services/ServiceControl.py:202
↓ 1 callersFunctiondo_task_as_usual
()
functions/performance/multiprocessing/pyMultiprocessingExample.py:58
↓ 1 callersFunctiondo_task_as_usual
()
functions/performance/multiprocessing/pyMultithread.py:59
↓ 1 callersFunctiondo_task_with_multiprocessing
(files_list)
projects/WindowsSystemOps/Filesystem/compress-backup-files.py:195
↓ 1 callersFunctiondo_task_with_multiprocessing
()
functions/performance/multiprocessing/pyMultiprocessingExample.py:65
↓ 1 callersFunctiondo_task_with_multithread
()
functions/performance/multiprocessing/pyMultithread.py:65
↓ 1 callersFunctiondottedQuadToNum
convert decimal dotted quad string to long integer
functions/net/ip/ipAddressConversionFunctions.py:10
↓ 1 callersFunctiondownload
(url, path=os.path.abspath(os.curdir))
projects/LinuxSystemOps/SoftwareManagement/others/install_python27.py:67
↓ 1 callersFunctiondownload_file
(url_download_from, path_save_to)
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:47
↓ 1 callersFunctiondownload_file
method for downloading a file from an URL :param url: The URL of the file to be downloaded (assumed to be available via an HTTP GET request).
functions/net/tcp/http/download/downloadFileWithRequest.py:50
↓ 1 callersFunctiondownload_rds_backfile
(instanceid)
projects/LinuxSystemOps/SoftwareManagement/aliyun/RDS/get_rds_backup.py:50
↓ 1 callersMethoddump
(self, first, last)
functions/net/ip/GeoIP/chunzhen.net/parse-qqwry.dat.py:86
↓ 1 callersFunctionemoji_utf8_all_crud_test
()
functions/nosql/database/mysql/pyMysqlRawQuery_emoji.py:156
↓ 1 callersFunctionemoji_utf8_crud_test
()
functions/nosql/database/mysql/pyMysqlRawQuery_emoji.py:141
↓ 1 callersFunctionemoji_utf8bm4_crud
()
functions/nosql/database/mysql/pyMysqlRawQuery_emoji.py:125
↓ 1 callersFunctionenableRemoteDesktop
()
projects/WindowsSystemOps/Software/Microsoft/pyRemoteDesktopOps.py:109
↓ 1 callersFunctionenable_account
(name)
projects/WindowsSystemOps/Account/python-enable-disable-account-using-wmi.py:76
↓ 1 callersMethodencrypt
对明文进行加密 @param text: 需要加密的明文 @:param appid: @return: 加密得到的字符串
projects/WeChatOps/WXBizMsgCrypt/WXBizMsgCrypt.py:190
↓ 1 callersFunctionencrypt_aes_256_cfb
(key, iv, plaintext, mode=AES.MODE_CFB)
functions/string/encrypt/pyAESCrypt.py:80
↓ 1 callersFunctionencrypt_aes_cbc
(data)
functions/string/encrypt/encrypt-and-decrypt-with-PyCryptodome.py:40
↓ 1 callersFunctionencrypt_pkcs1_rsa
(data)
functions/string/encrypt/encrypt-and-decrypt-with-PyCryptodome.py:61
↓ 1 callersFunctionexample
(fn)
functions/file/python_handle_file/progressbar_example.py:19
↓ 1 callersFunctionexec_8_bit_serial_number_generator
()
functions/string/genSerializedUniqueNumber.py:80
↓ 1 callersFunctionexec_local_cmd
(cmd)
projects/LinuxSystemOps/System/systemOsInit/py-centos6-init.py:27
↓ 1 callersFunctionexecute_commands_on_remote_host
(host, command, **kwargs)
projects/LinuxSystemOps/Security/ssh/allow-access-port-on-remote-host.py:83
↓ 1 callersFunctionexecute_commands_on_remote_host
execute commands on remote host via SSH protocol :param host: hostname or ip address :type host: str :param command: commands :t
functions/net/tcp/ssh/ssh-execute-commands-on-remote-host.py:29
↓ 1 callersFunctionextract_tgz
(src, dst=os.path.abspath(os.curdir))
projects/LinuxSystemOps/SoftwareManagement/others/install_python27.py:90
↓ 1 callersFunctionextract_zip
(path_to_zipfile, extract_to)
projects/WindowsSystemOps/Software/pyDistributeFileAndConf/pyInstallZabbixAgentWin.py:87
↓ 1 callersFunctionextract_zip
(path_to_zipfile, extract_to=".")
functions/net/ip/GeoIP/chunzhen.net/download-latest-qqwry.dat.py:52
↓ 1 callersFunctionfacts_to_dict
()
projects/LinuxSystemOps/AutoDevOps/Ansible/pyAnsibleGatheringFacts.py:137
↓ 1 callersMethodfailed
(self, msg)
functions/log/pyLogging_u3.py:53
↓ 1 callersMethodfetch
(self, path)
projects/GitWebHooksAutoDeployScript/GitOSCAutoDeployWithLog.py:158
↓ 1 callersMethodfetch
(self, path)
projects/GitWebHooksAutoDeployScript/GitOSCAutoDeploy.py:121
↓ 1 callersMethodfetch
(self, path)
projects/GitWebHooksAutoDeployScript/GitAutoDeploy.py:88
↓ 1 callersMethodfetch
(self, path)
projects/GitWebHooksAutoDeployScript/GitLabAutoDeploy.py:160
↓ 1 callersFunctionfetch_all
(sql, args=None)
functions/nosql/database/mysql/using-mysql-as-conn-pool.py:53
↓ 1 callersFunctionfetch_all
(sql, args=None)
functions/nosql/database/mysql/using-dbutils-as-conn-pool.py:64
↓ 1 callersFunctionfib
Successione di Fibonacci 菲波拿契数列 在数学上,费波那契数列是以递归的方法来定义: F{0}=0 F{1}=1 F{n}=F{n-1}+F{n-2}}(n≧2) https://zh.wikipedia.org/zh-h
functions/performance/multithreading/threading-example-2-using-thread-pool.py:53
↓ 1 callersFunctionfib1
(n)
functions/performance/multithreading/threading-example-2-using-thread-pool.py:72
↓ 1 callersFunctionfind_all_apps
按照提供的path找到path下所有符合条件的服务 :param path: 服务部署根目录,部署服务的根目录 :return:
projects/LinuxSystemOps/Services/service-starter.py:219
← previousnext →401–500 of 1,705, ranked by callers