Sankgao Technical Notes
website·Indexed 29 days ago
http://sankgao.dpdns.org/A collection of technical tutorials and references covering frontend development (HTML5, CSS3, Vue 3), Python 3 programming, and DevOps tools. Content includes Python built-in functions, data structures, sorting algorithms, Pygame, wxPython GUI, and command sets for Docker and Jenkins.
What's inside Sankgao
- Sonatype Nexus Repository is a repository management software used to host private repositories for various dependency managers. While commonly used as a Maven private server (Maven repository manager), it also supports other formats including Docker, npm, and yum. It is available in two versions: OSS (Open Source Software) and Pro.
Overview of the Windows net command
Thenetcommand is a Windows CLI tool used to manage network services, configure network environments for local or remote computers, manage system users and groups, and interact with NetBIOS. It provides a wide range of functions for administration, including service control, session management, and resource sharing.Introduction to Cocktail Sort
Cocktail Sort (also known as bidirectional bubble sort) is a variation of Bubble Sort where the element comparison and exchange process happens in both directions (left-to-right and right-to-left) rather than just one way.Overview of git stash
git stashallows users to temporarily save uncommitted changes in the current working directory and staging area. This is useful when you need to switch branches, interrupt current work to handle urgent tasks, or resolve code conflicts without committing incomplete work.Overview of Jenkins Continuous Integration
Jenkins is an open-source continuous integration (CI) tool written in Java. It is used by teams of various sizes across multiple languages and technologies, including Java, .NET, Ruby, Groovy, Grails, and PHP. Key advantages include a simple and intuitive user interface, a smooth learning curve, and a vast ecosystem of hundreds of open-source plugins covering version control, build tools, code quality metrics, and external system integrations.Overview of Python web crawler frameworks
Several frameworks provide pre-built functionality for structured data extraction and pipeline management:
- Scrapy: A mature, open-source framework for efficiently crawling web pages and extracting structured data.
- Crawley: A high-speed framework based on
Eventlet. Supports various databases (Postgres, MySQL, MongoDB, Couchdb), JSON/XML export, and Cookie-based authentication. - PySpider: A distributed framework with a WebUI for script editing, task monitoring, and result viewing. Supports JavaScript page crawling and multiple message queues (RabbitMQ, Redis, etc.).
Overview of netsh Network Shell
netsh(Network Shell) is a command-line scripting utility used to display or modify the network configuration of a computer. It can be executed locally or remotely via the Command Prompt or Windows PowerShell.Overview of the reg command-line utility
Theregcommand is used to manipulate registry subkeys and values. It allows users to view or configure registry entries on the local machine or a remote computer. Note that when configuring a remote computer, certain parameters may be restricted depending on the specific operation being performed.Overview of git worktree for multiple working directories
git worktreeallows a developer to maintain multiple working directories associated with a single Git repository. Each directory has its own.gitmetadata but shares the same object database. This enables working on different branches or workflows simultaneously without needing to clone the repository multiple times. Note: To avoid filesystem conflicts, avoid making concurrent changes across multiple worktrees that you intend to merge; instead, complete changes in one worktree and merge them into others.Overview of Web Workers
Web Workers allow JavaScript to run in the background, independent of other scripts. This prevents the browser UI from becoming unresponsive during CPU-intensive tasks, allowing users to continue interacting with the page (e.g., clicking or selecting text) while the worker processes data.Overview of Distributed Version Control Systems (DVCS)
Unlike Centralized Version Control Systems (CVCS) which rely on a single server, Distributed Version Control Systems like Git, Mercurial, and Darcs mirror the entire repository—including the full history—on every client machine.
Key Advantages:
- Redundancy: Every clone acts as a full backup; if the main server fails, the repository can be restored from any local mirror.
- Flexibility: Supports complex collaboration workflows, such as hierarchical models, and allows interaction with multiple remote repositories.
Overview of common sorting algorithms by time complexity
Sorting algorithms are generally categorized by their average time complexity and stability (whether they preserve the relative order of elements with equal values).
- O(n²) Complexity: Bubble Sort, Selection Sort, Insertion Sort, Shell Sort (performance is between O(n²) and O(n log n)).
- O(n log n) Complexity: Quick Sort, Merge Sort, Heap Sort.
- Linear Complexity: Counting Sort, Bucket Sort, Radix Sort.
Other specialized variants include Cocktail Sort, Monkey Sort, and Sleep Sort.