Tag

script

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 30, 2025 · Operations

Batch Convert Word Documents to PDF with Python and Win32COM

This guide demonstrates how to create a Python script that uses the win32com library to batch convert Word (.doc/.docx) files to PDF on Windows, including code examples, handling of Office/WPS detection, folder management, common pitfalls, and packaging the script into an executable.

PDFPythonautomation
0 likes · 10 min read
Batch Convert Word Documents to PDF with Python and Win32COM
IT Xianyu
IT Xianyu
May 21, 2025 · Operations

Learn Shell Scripting: From Hello World to Practical Tools

This tutorial walks beginners through creating and executing Bash scripts on Linux, covering basics like the shebang, variables, conditionals, loops, functions, and debugging, and provides practical examples such as file checks, service monitoring, and user interaction to build useful automation tools.

Linuxautomationbash
0 likes · 7 min read
Learn Shell Scripting: From Hello World to Practical Tools
Python Programming Learning Circle
Python Programming Learning Circle
May 20, 2025 · Fundamentals

Python Script for Extracting Text from PDF Files Using PyPDF2

This article introduces a Python utility built with PyPDF2 that extracts text from PDF files, saves it as a TXT file, and provides an interactive command‑line interface with error handling, usage instructions, and code examples for easy document processing.

PDFPyPDF2command line
0 likes · 9 min read
Python Script for Extracting Text from PDF Files Using PyPDF2
Selected Java Interview Questions
Selected Java Interview Questions
Mar 12, 2025 · Operations

How to Write a Shell Script for Deploying a Java Backend Application Without Docker

This guide explains how to create a shell script to deploy a Java backend application without Docker, covering variable configuration, start/stop/restart functions, log handling, and command-line usage, along with packaging and troubleshooting steps.

DeploymentJavabackend
0 likes · 6 min read
How to Write a Shell Script for Deploying a Java Backend Application Without Docker
Efficient Ops
Efficient Ops
Dec 24, 2024 · Fundamentals

Create an ASCII Christmas Tree with Shell and Python Scripts

This article shares a festive greeting and demonstrates how to generate an ASCII Christmas tree using both a Bash shell script and a Python program, followed by details about the upcoming GOPS Global Operations Conference in Shenzhen, encouraging operations professionals to celebrate the holiday season.

Pythonascii artchristmas
0 likes · 4 min read
Create an ASCII Christmas Tree with Shell and Python Scripts
Practical DevOps Architecture
Practical DevOps Architecture
Nov 26, 2024 · Databases

Bash Script for Installing MongoDB on Linux

This article provides a complete Bash script that automates downloading, extracting, configuring, and starting MongoDB on Linux systems, handling OS detection, prerequisite installation, file preparation, and color‑coded status messages for success, failure, and warnings.

InstallationLinuxMongoDB
0 likes · 4 min read
Bash Script for Installing MongoDB on Linux
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 11, 2024 · Backend Development

Step-by-Step Guide to Deploying a Small Web Application to Alibaba Cloud with Frontend Packaging and Backend Setup

This article provides a comprehensive tutorial on configuring front‑end resource bundling, adjusting server settings, building and uploading SpringBoot back‑end modules, creating deployment scripts, managing environment‑specific properties, and implementing a Baidu Tieba hot‑search crawler, enabling a complete end‑to‑end cloud deployment.

DeploymentSpringBootbackend
0 likes · 16 min read
Step-by-Step Guide to Deploying a Small Web Application to Alibaba Cloud with Frontend Packaging and Backend Setup
Python Programming Learning Circle
Python Programming Learning Circle
Nov 5, 2024 · Fundamentals

Why Python Does Not Need a Traditional Main Function

The article explains that unlike compiled languages, Python as an interpreted scripting language does not require a mandatory main function, clarifies the purpose of the __name__ == '__main__' guard, and advises using a simple entry script such as main.py for clean, idiomatic code.

best practicesmain-functionscript
0 likes · 6 min read
Why Python Does Not Need a Traditional Main Function
Test Development Learning Exchange
Test Development Learning Exchange
Oct 8, 2024 · Fundamentals

Understanding the Purpose of if __name__ == '__main__' in Python

This article explains how the if __name__ == '__main__' construct distinguishes between running a Python file as a script versus importing it as a module, prevents unintended execution, and provides practical examples for testing, main logic, and avoiding side effects.

@ImportModulePython
0 likes · 5 min read
Understanding the Purpose of if __name__ == '__main__' in Python
Test Development Learning Exchange
Test Development Learning Exchange
Jun 11, 2024 · Fundamentals

Deep Understanding of __main__ and __name__ in Python

This article explains the special built‑in identifiers __main__ and __name__ in Python, describing how they indicate a module's execution context, how to use them to separate script and library code, and provides multiple practical code examples.

Module__name__code
0 likes · 6 min read
Deep Understanding of __main__ and __name__ in Python
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 3, 2024 · Backend Development

Writing, Running, and Debugging Node.js Scripts for Automated Component Export

This guide explains how to create a Node.js script that automatically generates export statements for component libraries, covering script basics, file operations with fs‑extra, package imports, npm integration, and debugging techniques using VS Code.

Node.jsautomationdebugging
0 likes · 10 min read
Writing, Running, and Debugging Node.js Scripts for Automated Component Export
IT Services Circle
IT Services Circle
May 29, 2024 · Fundamentals

Understanding the __name__ Variable in Python Scripts

This article explains how the __name__ variable is set when running Python scripts directly or importing them, demonstrates its behavior with multiple .py files, shows how unintended code can be executed, and introduces the if __name__ == '__main__' guard to control execution.

@ImportPython__name__
0 likes · 6 min read
Understanding the __name__ Variable in Python Scripts
Sohu Tech Products
Sohu Tech Products
Feb 21, 2024 · Backend Development

Sorting Image Filenames with Numbers in Elasticsearch: Script and Ingest‑Pipeline Solutions

The article explains how to sort image filenames containing numbers in Elasticsearch by either using a painless _script to extract the numeric part at query time or, more efficiently, by preprocessing filenames with an ingest pipeline that creates a numeric field for fast sorting, recommending the pipeline for performance‑critical use cases.

GrokIngest Pipelinebackend
0 likes · 8 min read
Sorting Image Filenames with Numbers in Elasticsearch: Script and Ingest‑Pipeline Solutions
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 9, 2024 · Databases

Migrating Redis db8 to db15 Using a Custom Python Script

This article explains how to migrate a specific Redis database (db8) to another server's db15 by writing a Python script that batches keys, tracks progress, estimates remaining time, and verifies the migration results.

PythonRedisRedis Migration
0 likes · 5 min read
Migrating Redis db8 to db15 Using a Custom Python Script
Test Development Learning Exchange
Test Development Learning Exchange
Nov 6, 2023 · Backend Development

Automating Bulk WeChat Messaging with Python and ItChat

This guide demonstrates how to use Python's ItChat library to programmatically send text, image, and video messages to multiple WeChat contacts, including code examples, setup instructions, and troubleshooting tips for Windows environments.

Messagingbackenditchat
0 likes · 6 min read
Automating Bulk WeChat Messaging with Python and ItChat
Test Development Learning Exchange
Test Development Learning Exchange
May 16, 2023 · Operations

Python Automatic Backup Script for Specified Directories

This tutorial demonstrates how to create a Python script that automatically backs up a chosen source folder to a target location every minute, using shutil and os modules to copy files into timestamped directories for reliable data protection.

FileCopyPythonautomation
0 likes · 4 min read
Python Automatic Backup Script for Specified Directories
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 24, 2022 · Databases

Enforcing MySQL SELECT Timeout When max_execution_time Does Not Apply

This article explains the limitations of MySQL's max_execution_time for SELECT statements inside stored procedures and provides practical solutions—including external kill scripts and the Percona Toolkit's pt‑kill—to enforce query timeouts while warning against use in production environments.

MySQLmax_execution_timept-kill
0 likes · 7 min read
Enforcing MySQL SELECT Timeout When max_execution_time Does Not Apply
360 Quality & Efficiency
360 Quality & Efficiency
Jul 8, 2022 · Cloud Native

Using a Remote Docker Service Without Adding the -H Parameter

This tutorial explains how to configure Docker on a Kubernetes node to transparently use a remote Docker daemon by modifying the systemd service, creating a custom Docker image with helper scripts, and committing it, so users can run Docker commands without explicitly specifying the remote host.

DockerImagecontainer
0 likes · 6 min read
Using a Remote Docker Service Without Adding the -H Parameter
Efficient Ops
Efficient Ops
Dec 29, 2021 · Operations

Master Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code

This article consolidates practical shell scripting standards—covering shebang usage, commenting, parameter validation, naming conventions, encoding, indentation, function structuring, variable scope, efficient command patterns, parallel execution, and static analysis with ShellCheck—to help developers write readable, maintainable, and performant Bash scripts.

DevOpsbashcoding standards
0 likes · 22 min read
Master Shell Script Style: Essential Guidelines for Clean, Efficient Bash Code