From 944f0a0812b73b4dbfa6d5a21e4b220c4f848d22 Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Sat, 28 Jun 2025 18:04:52 +0200 Subject: [PATCH 01/12] add: cron generator widget in cron.md --- source/_posts/cron.md | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/source/_posts/cron.md b/source/_posts/cron.md index 04940b3..cb427ba 100644 --- a/source/_posts/cron.md +++ b/source/_posts/cron.md @@ -51,20 +51,26 @@ Min Hour Day Mon Weekday ### Examples -| Example | Description | -| -------------- | ------------------------------------------------ | -| `*/15 * * * *` | Every 15 mins | -| `0 * * * *` | Every hour | -| `0 */2 * * *` | Every 2 hours | -| `15 2 * * *` | At 2:15AM of every day | -| `15 2 * * ?` | At 2:15AM of every day | -| `10 9 * * 5` | At 9:10AM of every Friday | -| `0 0 * * 0` | At midnight of every Sunday | -| `15 2 * * 1L` | At 2:15am on the last monday of every month | -| `15 0 * * 4#2` | At 00:15am on the second thursday of every month | -| `0 0 1 * *` | Every 1st of month (monthly) | -| `0 0 1 1 *` | Every 1st of january (yearly) | -| `@reboot` | Every reboot
_(non-standard)_ | +| Example | Description | +| -------------- |--------------------------------------------------------------------| +| `*/15 * * * *` | Every 15 mins | +| `0 * * * *` | Every hour | +| `0 */2 * * *` | Every 2 hours | +| `15 2 * * *` | At 2:15AM (of every day) | +| `15 2 * * ?` | At 2:15AM (of every day) | +| `10 9 * * 5` | At 9:10AM (of every Friday) | +| `0 0 * * 0` | At 12:00 AM, only on Sunday | +| `15 2 * * 1L` | At 2:15am on the last monday of every month | +| `15 0 * * 4#2` | At 00:15am on the second thursday of every month | +| `0 0 1 * *` | At 12:00 AM, on day 1 of the month (1st of month / monthly) | +| `0 0 1 1 *` | At 12:00 AM, on day 1 of the month, only in January (1st of month) | +| `@reboot` | Every reboot
_(non-standard)_ | + + +### Cron Generator {.col-span-3} + + + ### Special strings From b1f74d805880844db6982474f894c263cf7cbd4d Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Sat, 28 Jun 2025 18:05:33 +0200 Subject: [PATCH 02/12] add: cron widget with cronstrue lib cdn --- source/widget/cron.html | 138 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 source/widget/cron.html diff --git a/source/widget/cron.html b/source/widget/cron.html new file mode 100644 index 0000000..535fa3b --- /dev/null +++ b/source/widget/cron.html @@ -0,0 +1,138 @@ + +
+

Simple CRON Expression Generator

+
+

Enter Date and Time Expression:

+ + + + + + + + + + +
+ + + +
+
+
+ +
+
+ +
+
+
+
+
+

Generated CRON Expression:

+
* * * * * +
+
+ +
+
+
+
+

Description:

+

Select values to generate a cron expression.

+
+
+ + + + + From d474b62acf905d33ecba9e5d53360b828ac6b2de Mon Sep 17 00:00:00 2001 From: Mendel S <35454332+egidiusmendel@users.noreply.github.com> Date: Mon, 30 Jun 2025 09:59:25 +0200 Subject: [PATCH 03/12] fix: use 'brew --cask' instead of deprecated 'brew cask' --- source/_posts/homebrew.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_posts/homebrew.md b/source/_posts/homebrew.md index a3fd5d9..7b5b228 100644 --- a/source/_posts/homebrew.md +++ b/source/_posts/homebrew.md @@ -143,7 +143,7 @@ brew tap homebrew/cask List all the installed casks . ```bash -brew cask list +brew list --cask ``` Search all known casks based on the substring text. @@ -155,19 +155,19 @@ brew search Install the given cask. ```bash -brew cask install +brew install --cask ``` Reinstalls the given Cask ```bash -brew cask reinstall +brew reinstall --cask ``` Uninstall the given cask. ```bash -brew cask uninstall +brew uninstall --cask ``` ### Search, Install, Remove From 47755653a696ed0dbb34c00d70a3b4d5dc7273b3 Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Mon, 30 Jun 2025 11:00:40 +0200 Subject: [PATCH 04/12] add: main section of windows-cmd --- source/_posts/windows-cmd.md | 149 +++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 source/_posts/windows-cmd.md diff --git a/source/_posts/windows-cmd.md b/source/_posts/windows-cmd.md new file mode 100644 index 0000000..1a40a06 --- /dev/null +++ b/source/_posts/windows-cmd.md @@ -0,0 +1,149 @@ +--- +title: Windows Command +date: 2025-06-30 18:28:43 +background: bg-red-500 +tags: + - command +categories: + - Programming +intro: | + This windows command Cheat Sheet is a non exhaustive list of main windows command that you can use. +plugins: + - copyCode +--- + + +## Getting Started + +### Basic {.col-span-3} + +| CMD | Description | +|:-----------|:------------------------------------------------------------| +| `cls` | Clears the content of the screen. | +| `echo` | Displays messages or enables/disables command echoing. | +| `help` | Provides help information for Windows commands. | +| `exit` | Exits the CMD.EXE program (command interpreter). | +| `date` | Displays or sets the date. | +| `time` | Displays or sets the system time. | +| `ver` | Displays the Windows version. | +| `dir` | Displays a list of files and subdir in a directory. | +| `cd` | Displays the name of or changes the current directory. | +| `copy` | Copies one or more files to another location. | +| `move` | Moves files and renames files and directories. | +| `del` | Deletes one or more files. | +| `mkdir` | Creates a directory. | +| `rmdir` | Removes a directory. | +| `type` | Displays the contents of a text file. | +| `ren` | Renames a file or files. | +| `start` | Starts a separate window to run a specified program or cmd. | +| `shutdown` | Allows you to shut down or restart the computer. | +| `tasklist` | Displays all currently running tasks including services. | +| `taskkill` | Ends one or more tasks or processes. | + +## Manage file : + +### File {.col-span-3} + +| CMD | Description | +|:-----------|:------------------------------------------------------------------| +| `attrib` | Displays or changes file attributes. | +| `fc` | Compares two files and displays the differences between them. | +| `find` | Searches for a text string in a file or files. | +| `findstr` | Searches for strings in files. | +| `xcopy` | Copies files and directory trees. | +| `robocopy` | Robust File Copy for Windows, a more advanced version of `xcopy`. | +| `compact` | Displays or alters the compression of files on NTFS partitions. | +| `expand` | Expands one or more compressed files. | +| `replace` | Replaces files. | +| `tree` | Graphically displays the folder structure of a drive or path. | +| `sort` | Sorts input. | +| `more` | Displays output one screen at a time. | +| `print` | Prints a text file. | +| `cipher` | Displays or alters the encryption of dir [files] on NTFS parts. | +| `diskcomp` | Compares the contents of two floppy disks. | +| `diskcopy` | Copies the contents of one floppy disk to another. | +| `format` | Formats a disk for use with Windows. | +| `chkdsk` | Checks a disk and displays a status report. | +| `label` | Creates, changes, or deletes the volume label of a disk. | +| `recover` | Recovers readable information from a bad or defective disk. | + + +## System & Network + +### System {.col-span-3} + +| CMD | Description | +|:--------------|:------------------------------------------------------------------------------------------| +| `systeminfo` | Displays detailed configuration information about a computer and its operating system. | +| `driverquery` | Displays current device driver status and properties. | +| `msinfo32` | Starts the System Information tool. | +| `reg` | Registry Console Tool, used to manage the Windows Registry. | +| `sc` | Displays or configures services (background processes). | +| `taskmgr` | Starts the Task Manager. | +| `wmic` | Windows Management Instrumentation , used for managing Windows systems. | +| `sfc` | System File Checker, scans and verifies the versions of all protected system files. | +| `gpupdate` | Refreshes local and Active Directory-based Group Policy settings. | +| `gpresult` | Displays Group Policy settings and Resultant Set of Policy (RSoP) for a user or computer. | +| `powercfg` | Configures power settings. | +| `dxdiag` | Starts the DirectX Diagnostic Tool. | +| `msinfo32` | Starts the Microsoft System Information tool. | +| `perfmon` | Starts the Performance Monitor. | +| `rsop` | Resultant Set of Policy, used to view Group Policy settings. | +| `sigverif` | Starts the File Signature Verification tool. | +| `sysedit` | Starts the System Configuration Editor. | +| `syskey` | Secures the Windows XP account database. | +| `chgport` | Displays or changes Com port mappings. | +| `chgusr` | Changes the installed user mode. | + +### Network {.col-span-3} + +| CMD | Description | +|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------| +| `ipconfig` | Displays all current TCP/IP network configuration values. | +| `ping` | Tests network connectivity to a specified host. | +| `tracert` | Traces the route taken by packets to a specified destination. | +| `netstat` | Displays active TCP connections, ports on which the computer is listening. | +| `nslookup` | Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. | +| `net` | Manages network resources, services, and user accounts. | +| `netsh` | Network Shell, used to configure and monitor network devices. | +| `arp` | Displays and modifies the IP-to-Physical address translation tables used by the Address Resolution Protocol (ARP). | +| `route` | Displays and modifies the entries in the local IP routing table. | +| `ftp` | Starts the File Transfer Protocol (FTP) client. | +| `telnet` | Starts the Telnet client. | +| `nbtstat` | Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP). | +| `netuse` | Displays information about network connections. | +| `net session` | Manages server computer connections. | +| `net start` | Starts a network service. | +| `net stop` | Stops a network service. | +| `net view` | Displays a list of resources being shared on a specified computer. | +| `net user` | Manages user accounts. | +| `net localgroup` | Manages local groups. | +| `net share` | Manages shared resources. | +| `net statistics` | Displays network statistics. | + +## Miscellaneouss + +### Process Management {.col-span-1} + +| CMD | Description | +|:---------------|:-------------------------------------------------------------| +| `wmic process` | Manages processes using Windows Management Instrumentation . | +| `timeout` | Waits for specified number of seconds / until a key pressed. | + +### Disk Management {.col-span-1} + +| CMD Command | Description | +|:-------------|:------------------------------------| +| `diskpart` | Manages disk partitions. | +| `defrag` | Defragments a disk. | +| `convert` | Converts a FAT volume to NTFS. | +| `diskperf` | Manages disk performance counters. | + +### System Configuration {.col-span-1} + +| CMD Command | Description | +|:-------------|:--------------------------------------------------------| +| `bcdedit` | Manages the Boot Configuration Data (BCD) store. | +| `bootcfg` | Configures, queries, or changes Boot.ini file settings. | +| `msconfig` | Starts the System Configuration utility. | +| `regedit` | Starts the Registry Editor. | From 1e9b113928219e2333390c8ef78ded8570e65508 Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Mon, 30 Jun 2025 11:27:35 +0200 Subject: [PATCH 05/12] add: tips & tricks section etn other section --- source/_posts/windows-cmd.md | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/source/_posts/windows-cmd.md b/source/_posts/windows-cmd.md index 1a40a06..a818d3d 100644 --- a/source/_posts/windows-cmd.md +++ b/source/_posts/windows-cmd.md @@ -147,3 +147,54 @@ plugins: | `bootcfg` | Configures, queries, or changes Boot.ini file settings. | | `msconfig` | Starts the System Configuration utility. | | `regedit` | Starts the Registry Editor. | + +## Tips & Tricks + +### Miscellaneouss Tips & Tricks {.col-span-3} + +| Tip or Trick | Description | +|:----------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------| +| `wmic path SoftwareLicensingService get OA3xOriginalProductKey` | Get your Windows Product key | +| `cmd /k` | Opens the command prompt and executes a specified command, keeping the window open. | +| `cmd /c` | Opens the command prompt, executes a specified command, and then closes the window. | +| `&&` | Allows you to run multiple commands in sequence. For example, `command1 && command2`. | +| `\|\|` | Allows you to run a second command only if the first command fails. For example, `command1 `\|\|` command2`. | +| `>` | Redirects the output of a command to a file, overwriting the file if it already exists. For example, `command > output.txt`. | +| `>>` | Redirects the output of a command to a file, appending the output if the file already exists. For example, `command >> output.txt`. | +| `\|` | Pipes the output of one command to another command. For example, `command1 `\|` command2`. | +| `clip` | Redirects the output of a command to the Windows clipboard. For example, `dir `\|` clip`. | +| `for %i in (*.txt) do echo %i` | Loops through all `.txt` files in the current directory and echoes their names. | +| `pushd` and `popd` | `pushd` saves the current directory and then changes to a new directory. `popd` returns to the saved directory. | +| `set` | Displays, sets, or removes environment variables. For example, `set PATH=C:\newpath`. | +| `start "" "C:\Path\To\Program\program.exe"` | Starts a program without waiting for it to finish. | +| `taskkill /IM "process.exe" /F` | Forcefully kills a process by its image name. | +| `wmic product get name` | Lists all installed software on the system. | +| `wmic logicaldisk get size,freespace,caption` | Displays the size, free space, and caption of all logical disks. | +| `systeminfo` `\|` `findstr /B /C:"OS Name" /C:"OS Version"` | Displays the OS name and version. | +| `schtasks /query /fo LIST /v` | Lists all scheduled tasks in detail. | +| `netsh wlan show profiles` | Displays a list of all saved Wi-Fi profiles. | +| `netsh wlan show profiles name="ProfileName" key=clear` | Displays the password for a specific Wi-Fi profile. | +| `assoc` | Displays or modifies file extension associations. | +| `ftype` | Displays or modifies file types used in file extension associations. | +| `driverquery /v` | Lists all installed drivers with detailed information. | +| `powercfg /energy` | Generates a detailed energy report for the system. | +| `powercfg /batteryreport` | Generates a battery life report for laptops. | +| `robocopy C:\Source D:\Destination /MIR` | Mirrors a directory from one location to another, including subdirectories and files. | +| `mklink /D "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a symbolic link to a directory. | +| `mklink /H "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a hard link to a file. | +| `mklink /J "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a directory junction. | +| `diskpart /s script.txt` | Runs a DiskPart script to automate disk partitioning tasks. | +| `shutdown /a` | Aborts a system shutdown. | +| `chkdsk /f /r` | Checks a disk and fixes errors, also recovers readable information from bad sectors. | +| `sfc /scannow` | Scans and repairs protected system files. | +| `DISM /Online /Cleanup-Image /RestoreHealth` | Repairs the Windows image using DISM. | +| `bcdboot C:\Windows` | Repairs the boot environment by copying boot files from the Windows directory. | +| `bootrec /fixmbr` | Repairs the Master Boot Record (MBR). | +| `bootrec /fixboot` | Writes a new boot sector to the system partition. | +| `bootrec /scanos` | Scans for installations compatible with Windows and displays the entries that are currently not in the Boot Configuration Data store. | +| `bootrec /rebuildbcd` | Scans for installations compatible with Windows and allows you to select the installations you want to add to the Boot Configuration Data store. | + + +## Other + +- Also see : [Windows Official Documentation](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands) \ No newline at end of file From 6be4403e9db9bc2a5e9730ec8e14761fb7f2c2b8 Mon Sep 17 00:00:00 2001 From: Fechin Date: Tue, 1 Jul 2025 14:43:30 +0800 Subject: [PATCH 06/12] feat: Enhanced SEO and Page Description Functionality - Added structured data support to optimize SEO performance for the homepage and article pages. - Added an SEO enhancement script to generate more detailed page descriptions and relevant keywords. --- _config.yml | 29 ++- themes/coo/layout/_partial/head.ejs | 38 ++- .../coo/layout/_partial/structured-data.ejs | 217 ++++++++++++++++++ themes/coo/scripts/seo-enhanced.js | 186 +++++++++++++++ 4 files changed, 462 insertions(+), 8 deletions(-) create mode 100644 themes/coo/layout/_partial/structured-data.ejs create mode 100644 themes/coo/scripts/seo-enhanced.js diff --git a/_config.yml b/_config.yml index 80ef853..8963320 100644 --- a/_config.yml +++ b/_config.yml @@ -7,9 +7,9 @@ title: CheatSheets.zip subtitle: "Ultimate Cheat for Developers" description: "Share quick reference and cheat sheet for developers" keywords: cheat,sheet,cheatsheets,reference,programming,code table,snippets,linux,command,shortcuts,developers -author: CheatSheets.zip +author: Fechin language: en -timezone: "" +timezone: "UTC" # URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' @@ -60,13 +60,29 @@ index_generator: # Category & Tag default_category: uncategorized -category_map: -tag_map: +category_map: {} +tag_map: {} # Metadata elements ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta meta_generator: false +# SEO configuration +seo: + # Default image for social sharing + default_image: "/assets/image/preview.png" + # Author information + author_name: "Fechin" + author_url: "https://cheatsheets.zip" + # Social media configuration + social: + twitter: "Fechin" + github: "Fechin/reference" + # Site type + site_type: "Educational Technology Platform" + # Target audience + target_audience: "Developers, Programmers, System Administrators" + # Date / Time format ## Hexo uses Moment.js to parse and display date ## You can customize the date format as defined in @@ -83,10 +99,10 @@ pagination_dir: page # Include / Exclude file(s) ## include:/exclude: options only apply to the 'source/' folder -include: +include: [] exclude: - ".github" -ignore: +ignore: [] # Extensions ## Plugins: https://hexo.io/plugins/ @@ -112,7 +128,6 @@ excerpt: # Deployment ## Docs: https://hexo.io/docs/deployment.html deploy: - # - type: cjh_google_url_submitter - type: cjh_bing_url_submitter - type: cjh_baidu_url_submitter diff --git a/themes/coo/layout/_partial/head.ejs b/themes/coo/layout/_partial/head.ejs index be1623d..2bebe29 100644 --- a/themes/coo/layout/_partial/head.ejs +++ b/themes/coo/layout/_partial/head.ejs @@ -13,6 +13,23 @@ + + + + + <% if (is_post()) { %> + + + + <% if (page.categories && page.categories.length > 0) { %> + + <% } %> + <% if (page.tags && page.tags.each) { %> + <% page.tags.each(function(tag) { %> + + <% }); %> + <% } %> + <% } %> @@ -22,7 +39,22 @@ - + + + + <% if (is_post()) { %> + + + + <% if (page.categories && page.categories.length > 0) { %> + + <% } %> + <% if (page.tags && page.tags.each) { %> + <% page.tags.each(function(tag) { %> + + <% }); %> + <% } %> + <% } %> @@ -31,6 +63,7 @@ + @@ -63,4 +96,7 @@ } + + <%- partial('_partial/structured-data') %> + diff --git a/themes/coo/layout/_partial/structured-data.ejs b/themes/coo/layout/_partial/structured-data.ejs new file mode 100644 index 0000000..e96c292 --- /dev/null +++ b/themes/coo/layout/_partial/structured-data.ejs @@ -0,0 +1,217 @@ + \ No newline at end of file diff --git a/themes/coo/scripts/seo-enhanced.js b/themes/coo/scripts/seo-enhanced.js new file mode 100644 index 0000000..7f7110a --- /dev/null +++ b/themes/coo/scripts/seo-enhanced.js @@ -0,0 +1,186 @@ +const fs = require('fs'); +const path = require('path'); + +// Generate more detailed page descriptions +hexo.extend.helper.register('enhanced_page_description', function () { + let description = ''; + + if (this.is_home()) { + description = `${this.config.description} - Quick reference guides for developers, programmers, and system administrators. Find cheat sheets for popular programming languages, tools, and technologies.`; + } else if (this.page && this.page.intro && this.page.intro.trim()) { + description = this.strip_html(this.markdown(this.page.intro)).substring(0, 155); + } else if (this.is_post()) { + const categoryNames = []; + if (this.page.categories && this.page.categories.each) { + this.page.categories.each(function (cat) { + categoryNames.push(cat.name); + }); + } + + const categoryText = categoryNames.length > 0 ? `${categoryNames[0]} ` : ''; + description = `${this.page.title} cheat sheet and quick reference guide. Essential ${categoryText}shortcuts, commands, and tips for developers and system administrators.`; + } else if (this.page && this.page.content) { + description = this.strip_html(this.page.content).substring(0, 155); + } else { + description = this.config.description || ''; + } + + // Clean up description text + description = description.replace(/[\r\n\s\s+]+/g, ' ').trim(); + + // Ensure description ends with a period + if ( + description && + !description.endsWith('.') && + !description.endsWith('!') && + !description.endsWith('?') + ) { + description += '.'; + } + + return description; +}); + +// Generate article reading time estimate +hexo.extend.helper.register('reading_time', function (content) { + if (!content) return '2 min read'; + + const wordsPerMinute = 200; + const textContent = this.strip_html(content); + const wordCount = textContent.split(/\s+/).length; + const readingTime = Math.ceil(wordCount / wordsPerMinute); + + return `${readingTime} min read`; +}); + +// Generate related keywords +hexo.extend.helper.register('related_keywords', function () { + let keywords = []; + + if (this.is_post()) { + // Basic keywords + keywords.push('cheat sheet', 'quick reference', 'guide', 'tutorial'); + + // Add page title keywords + if (this.page.title) { + keywords.push(this.page.title.toLowerCase()); + keywords.push(`${this.page.title.toLowerCase()} guide`); + keywords.push(`${this.page.title.toLowerCase()} commands`); + } + + // Add category keywords + if (this.page.categories && this.page.categories.each) { + this.page.categories.each(function (cat) { + keywords.push(cat.name.toLowerCase()); + }); + } + + // Add tag keywords + if (this.page.tags && this.page.tags.each) { + this.page.tags.each(function (tag) { + keywords.push(tag.name.toLowerCase()); + }); + } + } + + return [...new Set(keywords)].join(', '); +}); + +// Generate page type +hexo.extend.helper.register('page_type', function () { + if (this.is_home()) return 'homepage'; + if (this.is_post()) return 'cheatsheet'; + if (this.is_page()) return 'page'; + return 'other'; +}); + +// Generate estimated word count +hexo.extend.helper.register('word_count', function (content) { + if (!content) return 0; + const textContent = this.strip_html(content); + return textContent.split(/\s+/).length; +}); + +// Check if there is a table of contents +hexo.extend.helper.register('has_toc', function (content) { + if (!content) return false; + + // Check if there are title elements + const headingRegex = /]*>/gi; + const headings = content.match(headingRegex); + + return headings && headings.length >= 3; +}); + +// Generate breadcrumb data +hexo.extend.helper.register('breadcrumb_data', function () { + const breadcrumbs = []; + + // Homepage link + breadcrumbs.push({ + name: 'Home', + url: this.config.url, + position: 1 + }); + + if (this.is_post()) { + // Category link + if (this.page.categories && this.page.categories.length > 0) { + const mainCategory = this.page.categories.toArray()[0]; + breadcrumbs.push({ + name: mainCategory.name, + url: `${this.config.url}/#${mainCategory.name.toLowerCase().replace(/\s+/g, '-')}`, + position: 2 + }); + + // Current page + breadcrumbs.push({ + name: `${this.page.title} Cheat Sheet`, + url: this.clean_url(this.url), + position: 3 + }); + } else { + // Current page + breadcrumbs.push({ + name: `${this.page.title} Cheat Sheet`, + url: this.clean_url(this.url), + position: 2 + }); + } + } else if (this.is_page()) { + // Current page + breadcrumbs.push({ + name: this.page.title, + url: this.clean_url(this.url), + position: 2 + }); + } + + return breadcrumbs; +}); + +// Generate technical article specific meta information +hexo.extend.helper.register('tech_article_meta', function () { + if (!this.is_post()) return {}; + + const meta = { + difficulty: 'Beginner to Advanced', + audience: 'Developers, Programmers, System Administrators', + type: 'Quick Reference Guide', + format: 'Cheat Sheet' + }; + + // Adjust difficulty based on category + if (this.page.categories && this.page.categories.each) { + this.page.categories.each(function (cat) { + if (cat.name.includes('Linux') || cat.name.includes('Command')) { + meta.difficulty = 'Intermediate to Advanced'; + meta.audience = 'System Administrators, DevOps Engineers, Developers'; + } else if (cat.name.includes('Programming')) { + meta.audience = 'Developers, Software Engineers, Programmers'; + } + }); + } + + return meta; +}); From 25e065bb9f2bdf04e257139621a4c5b814c2ca7a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Tue, 1 Jul 2025 17:36:18 +0200 Subject: [PATCH 07/12] #320 add: color-picker widget --- source/_posts/color-picker.md | 19 +++ source/widget/color-palette.html | 264 +++++++++++++++++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 source/_posts/color-picker.md create mode 100644 source/widget/color-palette.html diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md new file mode 100644 index 0000000..cf05019 --- /dev/null +++ b/source/_posts/color-picker.md @@ -0,0 +1,19 @@ +--- +title: Color Picker +date: 2025-07-01 18:28:43 +background: bg-[#2a6387] +tags: + - html + - color +categories: + - Toolkit +intro: The Color Picker cheat sheet provides you basic color choices +plugins: + - copyCode +--- + +## Getting Started {.cols-2} + +### Color Palette {.cols-2} + + diff --git a/source/widget/color-palette.html b/source/widget/color-palette.html new file mode 100644 index 0000000..4120ed2 --- /dev/null +++ b/source/widget/color-palette.html @@ -0,0 +1,264 @@ + + + + + + Color Picker + + + +
+

Color Picker

+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ + +
+
+

Select a color to see its details

+
+
+
+
+ + + + From 7832346d3ecc8c4ce873636abbeced69921ef19a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:35:30 +0200 Subject: [PATCH 08/12] #320 add: full tailwind palette regarding doc --- source/widget/color-palette-tailwind.html | 352 ++++++++++++++++++++++ 1 file changed, 352 insertions(+) create mode 100644 source/widget/color-palette-tailwind.html diff --git a/source/widget/color-palette-tailwind.html b/source/widget/color-palette-tailwind.html new file mode 100644 index 0000000..7637e63 --- /dev/null +++ b/source/widget/color-palette-tailwind.html @@ -0,0 +1,352 @@ + + + + + + Color Picker + + + +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+

Select a color to see its details

+
+
+ +
+
+ + + + From b6b6617c917c393e8f16c59cfd4bddf0c7ad291a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:36:52 +0200 Subject: [PATCH 09/12] #320 add: gradient maker widget --- source/widget/gradient-maker.html | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 source/widget/gradient-maker.html diff --git a/source/widget/gradient-maker.html b/source/widget/gradient-maker.html new file mode 100644 index 0000000..c3a5961 --- /dev/null +++ b/source/widget/gradient-maker.html @@ -0,0 +1,57 @@ + + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+

CSS Code

+
background: linear-gradient(to right, #ff7e5f, #feb47b);
+
+
+
+ +
+
+ + + From 1cee3a7fff130fed357252964ff148f5046c8123 Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:39:33 +0200 Subject: [PATCH 10/12] #320 add: section and widget --- source/_posts/color-picker.md | 50 ++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md index cf05019..22f291e 100644 --- a/source/_posts/color-picker.md +++ b/source/_posts/color-picker.md @@ -12,8 +12,52 @@ plugins: - copyCode --- -## Getting Started {.cols-2} +## Getting Started -### Color Palette {.cols-2} - +### Color Basics {.col-span-3} + + +| **Category** | **Description** | +|:---------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **Color Models** | **RGB**: Red, Green, Blue – additive model used in screens.
**HEX**: Hexadecimal color codes, e.g., #FFFFFF.
**HSL**: Hue, Saturation, Lightness – intuitive for color adjustments.
**HSV**: Hue, Saturation, Value – similar to HSL but with different brightness handling. | +| **Color Terminology** | **Saturation**: Intensity or purity of a color.
**Hue**: The color type (e.g., red, blue).
**Lightness**: Brightness or darkness of a color.
**Opacity**: Transparency level of a color, often defined as alpha in RGBA. | +| **Color Representation Formats** | **HEX**: `#RRGGBB` or `#RRGGBBAA` (with alpha).
**RGB**: `rgb(255, 255, 255)`
**RGBA**: `rgba(255, 255, 255, 0.5)`
**HSL**: `hsl(120, 100%, 50%)`
**HSLA**: `hsla(120, 100%, 50%, 0.5)` | + + + +### Main Frameworks {.col-span-3} + +| **Framework** | **Color Notation / Syntax** | **Description** | **Documentation Link** | +|:-----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:-------------------------------------------------------------------------------------------| +| **CSS** | `color: red;`
`color: #ff0000;`
`color: rgb(255, 0, 0);`
`color: rgba(255, 0, 0, 0.5);`
`color: hsl(0, 100%, 50%);`
`color: hsla(0, 100%, 50%, 0.5);` | Standard CSS color properties and formats. | [CSS Color Documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | +| **SASS/SCSS** | `$color: #ff0000;`
`color: $color;` | Variables for colors, can use same formats as CSS. | [SASS Color Documentation](https://sass-lang.com/documentation/values/colors) | +| **Tailwind CSS** | `class="bg-red-500"`
`class="text-green-300"` | Utility classes with predefined color shades. | [Tailwind CSS Colors](https://tailwindcss.com/docs/customizing-colors) | +| **Bootstrap** | `class="text-primary"`
`class="bg-success"` | Named color classes for quick styling. | [Bootstrap Colors](https://getbootstrap.com/docs/5.0/getting-started/introduction/#colors) | +| **Material UI** | `style={{ color: 'primary' }}` or theme palette | Uses theme palette, can override with specific color codes. | [Material UI Color](https://mui.com/customization/color/) | + + +## Color Palette + +### Tailwind Palette {.col-span-3} + + + + +## Gradient CSS + +### Gradient Maker {.col-span-3} + + + +
+
+ +| Parameter | Description | Example | +|:--------------|:----------------------------------|:-----------------------------------------------| +| **to right** | Gradient goes from left to right | `linear-gradient(to right, #ff7e5f, #feb47b)` | +| **to left** | Gradient goes from right to left | `linear-gradient(to left, #ff7e5f, #feb47b)` | +| **to bottom** | Gradient goes from top to bottom | `linear-gradient(to bottom, #ff7e5f, #feb47b)` | +| **to top** | Gradient goes from bottom to top | `linear-gradient(to top, #ff7e5f, #feb47b)` | +| **deg** | Specify an angle in degrees | `linear-gradient(45deg, ...)` | + From 5874e283fb9794a525dab5499e971e2ee0168f1a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Thu, 3 Jul 2025 08:39:36 +0200 Subject: [PATCH 11/12] #320 reformat: and fix: UI --- source/_posts/color-picker.md | 4 +- source/widget/color-palette-tailwind.html | 6 +- source/widget/color-palette.html | 264 ---------------------- source/widget/gradient-maker.html | 9 +- 4 files changed, 7 insertions(+), 276 deletions(-) delete mode 100644 source/widget/color-palette.html diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md index 22f291e..f789ec5 100644 --- a/source/_posts/color-picker.md +++ b/source/_posts/color-picker.md @@ -7,7 +7,7 @@ tags: - color categories: - Toolkit -intro: The Color Picker cheat sheet provides you basic color choices +intro: The Color Picker cheat sheet provides you basic color info and choices plugins: - copyCode --- @@ -50,8 +50,6 @@ plugins: -
-
| Parameter | Description | Example | |:--------------|:----------------------------------|:-----------------------------------------------| diff --git a/source/widget/color-palette-tailwind.html b/source/widget/color-palette-tailwind.html index 7637e63..f41a777 100644 --- a/source/widget/color-palette-tailwind.html +++ b/source/widget/color-palette-tailwind.html @@ -340,9 +340,9 @@
-

RGB:
${rgb}

-

HEX:
${hex}

-

Tailwindcss:
${tailwindcss}

+

RGB:
${rgb}

+

HEX:
${hex}

+

Tailwindcss:
${tailwindcss}

`; diff --git a/source/widget/color-palette.html b/source/widget/color-palette.html deleted file mode 100644 index 4120ed2..0000000 --- a/source/widget/color-palette.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - Color Picker - - - -
-

Color Picker

-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
- - -
-
-

Select a color to see its details

-
-
-
-
- - - - diff --git a/source/widget/gradient-maker.html b/source/widget/gradient-maker.html index c3a5961..373ee5e 100644 --- a/source/widget/gradient-maker.html +++ b/source/widget/gradient-maker.html @@ -13,22 +13,19 @@
-
+
-
+

CSS Code

-
background: linear-gradient(to right, #ff7e5f, #feb47b);
+
background: linear-gradient(to right,  #ff7e5f, #8000ff);
-
-
-