Moonglade

Modern Markdown blogging with AI-powered localization and search.


GitLab Deployment and DingTalk Integration

This article provides a detailed walkthrough of the complete process for deploying GitLab using Docker and deeply integrating it with DingTalk. First, the article demonstrates how to start the GitLab container using Docker commands, with a focus on the port mapping strategy: mapping port 80 directly to accommodate DingTalk's SSO login redirect behavior, which ignores ports; mapping the SSH port to 7003 and providing a corresponding client configuration example; and configuring persistent storage for configuration files, logs, and data directories. Second, the article explains in depth how to configure DingTalk as an Identity Provider (IdP) to implement Single Sign-On (SSO). This includes creating an application on the DingTalk Open Platform, obtaining the AppKey and AppSecret, configuring the callback domain, and enabling OmniAuth in GitLab's `gitlab.rb` file while entering the DingTalk credentials. Additionally, the article demonstrates in detail the configuration and verification of GitLab's SMTP email service to ensure that the email binding notification feature works correctly when users log in for the first time. Finally, the article introduces how to use DingTalk group robots as Webhook receivers to synchronize GitLab events, such as pushes and merge requests, to DingTalk group chats in real time, thereby enabling automated notifications for development collaboration information.

Views 129
DingTalk SSO devops docker gitlab k8s sso

Setting up MinIO with k8s and a Quick Introduction to Its Usage

This document provides a detailed walkthrough of the complete process for deploying MinIO object storage in a local environment using Kubernetes. It begins by introducing installation methods for two lightweight K8s distributions: first, installing Minikube via binary or apt packages, configuring the Docker driver and image mirrors, and demonstrating basic operations such as creating an application, exposing a NodePort service, and port forwarding; second, installing MicroK8s using the Snap package manager, including user permission configuration, adding cluster nodes, enabling the Dashboard plugin, and generating an access token to manage the cluster via a browser. Subsequently, the document focuses on how to deploy a MinIO development environment using the `kubectl apply` command, covering checking Pod and service status, describing resource details, tracking logs, and using port-forward to forward the Web interface (9090) and console (9000) ports. It also notes that the initial account credentials need to be extracted from the logs. Finally, the article provides a Go language code example for client testing, aiming to help developers quickly set up and verify the availability of the MinIO service in a K8s environment, laying the foundation for subsequent project integration.

Views 144
Kubernetes devops docker k8s microK8s minio

Uninstalling and Installing Docker

This document records the complete process of thoroughly uninstalling and reinstalling Docker on CentOS and Ubuntu systems. First, before proceeding with any operations, it is essential to confirm that no other users are currently using the Docker service to avoid disrupting business operations. For CentOS, simply use the `yum` command to remove the relevant component packages. For Ubuntu, use `apt-get` to delete dependency packages such as `docker.io`. In the reinstallation phase, if the server has access to the external network, the most convenient approach is to directly execute the official script or add the official GPG key and repository source. If the environment is an internal network, it is recommended to configure the Tsinghua mirror source to accelerate downloads, which can be achieved by modifying environment variables or replacing the repository address. Finally, after installation is complete, start the Docker service, run the `hello-world` image, and check the `docker compose` version to verify that the installation was successful. The entire process emphasizes the importance of selecting the correct package manager commands based on the system type and flexibly switching mirror sources according to network conditions.

Views 102
Docker Compose Uninstall Docker centos devops docker ubuntu

Three grounds including initial and sustained attention in local attainment (summary)

This article systematically expounds on the theoretical framework within the Yogācāra (Consciousness-Only) school of Buddhism concerning the critique of heterodox views (tīrthikā) and the three types of defilements (kleśa, karma, and birth). First, it analyzes ten specific heterodox doctrines: identifying Īśvara (the Self) as the creator, considering harm as the true dharma, the views of finitism and infinitism, the evasive stance of "neither dead nor not dead" (avikṛta), the view of no cause, the view of annihilation, the view of emptiness, the false conception of the supreme, and the views of purity and auspiciousness. It points out that these doctrines arise either from violating ancient teachings or from incomplete observation of principles, and are predominantly rooted in greed or ignorance. Subsequently, it provides an in-depth analysis of the three types of defilements: affliction (kleśa), karma (action), and birth (upapatti). The defilement of afflictions details its nature, distinctions, causal stages, and drawbacks, revealing how greed, hatred, and delusion disturb the body and mind and give rise to suffering. The defilement of karma defines the wholesome and unwholesome paths of action and their causal functions, clarifying how karmic forces determine the results of rebirth in samsara. The defilement of birth examines the mechanisms of continuous birth and death, aging, and suffering among sentient beings across the six realms, from the perspectives of differentiation, hardship, uncertainty, and cyclic existence, in conjunction with the Twelve Links of Dependent Origination. Finally, it states that in order to eradicate these three types of defilements, practitioners must sequentially cultivate the six types of wisdom, from contemplative observation to ultimate observation, in order to attain liberation.

Views 67
Dependent Origination Twelve Links shidilun study weishi zhongzhe

AutoQuery Usage and Deployment (GitHub Actions)

This article introduces the rapid development workflow based on the AutoQuery framework, covering key steps from environment initialization to production deployment. First, the `x` command-line tool is installed via `dotnet tool`, and the `x new` command is used to create a Web project. `autocrudgen` is then leveraged to automatically generate SQLite database models and basic code, simplifying backend development tasks. The deployment section details how to configure Docker and Docker Compose on an Ubuntu 22.04 server, including specific commands for updating system sources, adding the official Docker GPG key, and installing the latest CE version. The article also demonstrates how to use `x mix build` to generate an Nginx proxy configuration script, upload it to the server via `scp`, and start services using `docker compose` commands, thereby implementing an automated deployment solution based on GitHub Actions. Additionally, the text provides practical details such as Let's Encrypt email configuration, SSH connection parameters, and user permission settings, aiming to help developers efficiently build and deploy AutoQuery-based applications. A link to a related video tutorial is provided at the end for further learning.

Views 78
.Net ci-cd devops docker github nginx

Summary of Numerology Principles

This article provides an in-depth analysis of the evolution of the numerological system, tracing its development from Taiyi Yougong (Wandering Palace of the Great One) to Qimen Dunjia, Ziwei Doushu, and Najia Shifa. It argues that the core of this evolution lies in the fusion of star-spirit theory and the Heavenly Stems, Earthly Branches, and Five Elements theory. The article points out that while Qimen Dunjia has a complex structure, it suffers from deficiencies such as insufficient utilization of time information and a limited number of configurations. In contrast, Ziwei Doushu optimizes time variables by incorporating lunar cycle information; although it has fewer combinations, it achieves high practicality through the reasonable mapping of life-related associations via its twelve palaces. Najia Shifa, on the other hand, deeply integrates the hexagrams and lines of the I Ching (Zhouyi) with the Heavenly Stems, Earthly Branches, and Five Elements theory, forming a judgment system similar to star-spirit theory, but this also leads to a deviation from the original intent of the I Ching. Additionally, the article distinguishes between star-spirit theory, which is based on abstract symbols, and astrological theory, which is based on the actual movements of celestial bodies. It also explores the phenomenon where the boundaries between divination and time-place selection methods have gradually blurred and merged in historical development. Finally, the article particularly emphasizes the special significance of key time nodes, such as solar terms and two-hour periods, in numerological deduction. It contends that these seemingly discrete rhythmic points actually contain the underlying structural laws governing the operation of the world, representing the essence of numerology.

Views 309
Divination Theory Mystical Forces Numerology Systems Western Astrology study zhongzhe

Setting Up and Using RDP Server for Remote Control

This article provides a detailed guide on setting up the xrdp remote desktop service on CentOS 7 and Ubuntu systems. For CentOS 7, the article first demonstrates installing xrdp and tigervnc-server via yum, emphasizing the necessity of starting the service, enabling it to start on boot, and verifying port 3389. It specifically points out that when SELinux is enabled, the security context of xrdp-related binary files must be adjusted, and the 3389/tcp port must be opened in the firewall; otherwise, connection failures will occur. Subsequently, the article explains how to install the GNOME or Xfce desktop environment, switch the default session to the lighter Xfce by modifying the ~/.Xclients file, and finally restart the service to apply the configuration. For Ubuntu systems, since directly installing xrdp may cause compatibility issues, it is recommended to download and execute the official xrdp installation script for deployment. To switch the desktop environment in Ubuntu, you need to edit the /etc/xrdp/startwm.sh configuration file, comment out the original session invocation, and add the target desktop command (such as gnome-session), followed by restarting the service. The article also mentions using the Remmina client for remote connection testing and provides a meeting recording link along with several related technical blogs for reference, aiming to help readers quickly build a stable Linux remote desktop environment.

Views 133
CentOS7 GNOME Ubuntu Server centos devops xrdp

Table of Contents for the Cheng Weishi Lun

Based on the table of contents of Xuanzang Bodhisattva's *Commentary on the Treatise on Consciousness-Only* (*Cheng Weishi Lun Shi*), this text systematically organizes the core doctrines of Yogācāra (Consciousness-Only) studies. First, it expounds on the nature of Consciousness-Only. By refuting the true self asserted by heterodox schools, the essentialist views of the Śrāvaka schools, and the theory of ultimate atoms (*paramāṇu*), it argues that all phenomena are transformed by the Ālayavijñāna (Storehouse Consciousness), thereby establishing the fundamental position that "all dharmas are consciousness-only." Second, it provides a detailed analysis of the characteristics of Consciousness-Only, deeply interpreting the eight consciousnesses (*aṣṭa vijñānāni*) and the five categories of mental factors (*citta-saṃskāra*). It focuses on demonstrating the intrinsic nature, functional modes, seed imprinting, and retribution mechanisms of the eighth Ālayavijñāna, the seventh Manovijñāna (Ego-Consciousness), and the first six consciousnesses. It clarifies that both the aspect of seeing (*darśana-bhāga*) and the aspect of object (*nimitta-bhāga*) depend on consciousness transformation, and explains that the twelve links of dependent origination in the cycle of birth and death never depart from consciousness. Finally, it elucidates the stages of Consciousness-Only, covering the five stages: Accumulation, Preparation, Direct Insight, Cultivation, and Ultimate Perfection. It details the process of Bodhisattvas across the ten grounds cutting off obscurations and realizing truth, and the process of transformation of support (*āśraya-parāvṛtti*), ultimately achieving the four wisdoms of the mind and the three bodies of the Tathāgata. The entire text aims to break down the dual attachments to self and dharmas through rigorous logic, revealing the middle-way reality of Consciousness-Only and the absence of external objects. It provides practitioners with complete guidance from theoretical understanding to practical realization, ultimately pointing toward the ultimate Nirvana and the merits of the Buddha realm after the transformation of the Ālayavijñāna.

Views 202
Buddhism Buddhism Doctrine Nirvana Vijnana Vijnana School Yogacara

mongo-listener

This article introduces the design approach for building a data change monitoring service based on MongoDB oplog. Addressing the absence of binlog in MongoDB, it utilizes the watch API to achieve data heterogeneity and evaluates the pros and cons of embedding parsing logic within the database versus introducing third-party components. Architecturally, it adopts an independent microservice to simplify high-availability guarantees, with the core pipeline flowing from MongoDB through a Redis buffer before being delivered to Kafka. The introduction of Redis as a buffer aims to mitigate the risk of memory overflow caused by the disparity between production and consumption rates, while leveraging its persistence features to prevent message loss. The system implements checkpoint resumption by persisting the resumeToken and handles message duplication after restarts using a deduplication list. Regarding ordering, it flexibly selects ordered or unordered delivery based on business requirements and discusses batch sending to optimize performance. At the deployment level, it emphasizes secure configuration for Kafka and local execution of Redis. In summary, the current design focuses on single-node high availability, while multi-node consistency and complex query compensation mechanisms still require further refinement.

Views 109
High Availability MongoDB Change Streams kafka mongodb node redis