feat: modernize development toolchain

- Add comprehensive development tooling:
  * ESLint configuration with modern JavaScript rules
  * Prettier for consistent code formatting
  * Husky for Git hooks automation
  * lint-staged for pre-commit checks
  * Conventional Commits with commitlint
  * Stylelint for CSS code quality

- Fix CSS issues:
  * Resolve duplicate selectors in layout_note.css
  * Merge duplicate selectors in layout_list.css
  * Ensure stylelint compliance

- Apply consistent code formatting:
  * Format all JavaScript, CSS, and Markdown files
  * Standardize code style across the project
  * Fix console statement warnings in main.js

- Update project documentation:
  * Enhance README with modern development practices
  * Update package.json with new scripts and dependencies

This modernization establishes a robust development environment with
automated code quality checks, consistent formatting~
This commit is contained in:
Fechin committed 2025-06-18 14:09:17 +08:00
1 parent a2a26f618c
commit 172342c8a3
78 files changed
+14986 -3626

No files matched your search

+24 -6
View File
@@ -4,12 +4,14 @@ date: 2024-03-20 12:00:00
icon: icon-alpine
background: bg-blue-600
tags:
- linux
- server
- container
- linux
- server
- container
categories:
- Operating System
intro: A comprehensive cheatsheet for Alpine Linux, covering package management, system administration, networking, and more. Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
- Operating System
intro:
A comprehensive cheatsheet for Alpine Linux, covering package management, system administration, networking, and more.
Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
---
# Alpine Linux Cheatsheet
@@ -17,6 +19,7 @@ intro: A comprehensive cheatsheet for Alpine Linux, covering package management,
## Package Management (apk)
### Basic Package Operations
```bash
# Update package index
apk update
@@ -41,6 +44,7 @@ apk list --installed
```
### Advanced Package Operations
```bash
# Add package from testing repository
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing <package-name>
@@ -55,6 +59,7 @@ apk cache clean
## System Administration
### Service Management (OpenRC)
```bash
# Start a service
rc-service <service-name> start
@@ -76,6 +81,7 @@ rc-status
```
### System Information
```bash
# Show system information
uname -a
@@ -94,6 +100,7 @@ uptime
```
### Network Configuration
```bash
# Show network interfaces
ip addr show
@@ -112,6 +119,7 @@ vi /etc/network/interfaces
```
### User Management
```bash
# Add a new user
adduser <username>
@@ -132,6 +140,7 @@ cat /etc/passwd
## File System Operations
### Basic File Operations
```bash
# Create directory
mkdir <directory-name>
@@ -155,6 +164,7 @@ chown <user>:<group> <file>
## Container Operations
### Docker Support
```bash
# Install Docker
apk add docker
@@ -169,6 +179,7 @@ rc-update add docker default
## System Maintenance
### Disk Operations
```bash
# Check disk space
df -h
@@ -184,6 +195,7 @@ umount /mnt/<mountpoint>
```
### Backup and Restore
```bash
# Create tar archive
tar -czf backup.tar.gz /path/to/backup
@@ -198,6 +210,7 @@ lbu package /media/backup.apkovl.tar.gz
## Tips and Tricks
### Common Configuration Files
- `/etc/apk/repositories` - Package repositories
- `/etc/network/interfaces` - Network configuration
- `/etc/hostname` - System hostname
@@ -205,6 +218,7 @@ lbu package /media/backup.apkovl.tar.gz
- `/etc/resolv.conf` - DNS configuration
### Environment Variables
```bash
# Set environment variable
export VARIABLE=value
@@ -217,6 +231,7 @@ echo "export VARIABLE=value" >> ~/.profile
```
### System Logs
```bash
# View system logs
less /var/log/messages
@@ -231,6 +246,7 @@ tail -f /var/log/messages
## Security
### Firewall (using iptables)
```bash
# Install iptables
apk add iptables
@@ -246,6 +262,7 @@ iptables -A INPUT -p tcp --dport 22 -j ACCEPT
```
### SSH Configuration
```bash
# Generate SSH key
ssh-keygen -t rsa -b 4096
@@ -260,6 +277,7 @@ vi /etc/ssh/sshd_config
## Troubleshooting
### Common Commands
```bash
# Check system logs for errors
dmesg | grep -i error
@@ -275,4 +293,4 @@ netstat -tuln
# Check disk health
smartctl -a /dev/sda # Requires smartmontools package
```
```