Hello and Disclaimer
This site hosts systems journal logs and technical documentation.
Colonel’s Pensieve comes from the Chinese WeChat account 团长的冥想盆 (tuán zhǎng de míng xiǎng pén)—a memory repository for technical notes.
Please note: content may contain inaccuracies—open an issue or pull request at github.com/colosieve/blog if something needs correction.
Shamelessly Hijacking This Post for Style Testing
Bump up this number for testing: 103.
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
Code Style Demo
Here’s some inline code: const greeting = "Hello, World!";
And a code block example:
// Function to calculate fibonacci sequence
function fibonacci(n) {
if (n <= 1) return n;
let prev = 0, curr = 1;
for (let i = 2; i <= n; i++) {
[prev, curr] = [curr, prev + curr];
}
return curr;
}
console.log(fibonacci(10)); // Output: 55
And the same code with line numbers:
|
|
Another example in Python:
def merge_sort(arr):
"""Recursive merge sort implementation"""
if len(arr) <= 1:
return arr
mid = len(arr) // 2
left = merge_sort(arr[:mid])
right = merge_sort(arr[mid:])
return merge(left, right)
And some shell commands:
# Deploy to production
hugo --minify
rsync -avz public/ server:/var/www/
echo "Deployment complete"