Tech

6 posts

SSH + tmux + Neovim + OSC 52 Clipboard Guide

#neovim #tmux #ssh

Problem

When working remotely via SSH inside tmux with Neovim, the system clipboard doesn’t work. You yank text in Neovim but can’t paste it on your local machine with Ctrl+V.

How OSC 52 Works

OSC 52 is a terminal escape sequence that tells your local terminal emulator to put text into the system clipboard. The data flow is:

Neovim yank β†’ OSC 52 escape sequence β†’ tmux β†’ SSH β†’ local terminal β†’ system clipboard

Each layer must allow the sequence to pass through untouched.

Read more

Introduction to WeChat Mini Program Development

#wechat #mini-program #javascript

What Is a WeChat Mini Program?

A WeChat Mini Program (小程序) is a lightweight application that runs inside the WeChat ecosystem. Unlike native mobile apps, users don’t need to download them from an app store β€” they can be accessed instantly by scanning a QR code, searching within WeChat, or clicking a shared link.

Think of it as a hybrid between a website and a native app: it provides a native-like user experience with near-instant loading, but without the friction of installation. With over 1 billion monthly active users on WeChat, mini programs have become a dominant force in China’s mobile ecosystem.

Read more

Understanding OCI (The Open Container Initiative)

#oci #container #cloud

What Is OCI?

The Open Container Initiative (OCI) is a Linux Foundation project launched in June 2015 by Docker, CoreOS, and other container industry leaders. Its mission is to create open industry standards around container formats and runtimes.

OCI governs three core specifications:

SpecificationPurposeVersion
Runtime Specification (runtime-spec)How to run a container from a filesystem bundle1.2
Image Specification (image-spec)How to package and ship container images1.1
Distribution Specification (distribution-spec)How to push/pull images to/from a registry1.1

These three specs define the complete lifecycle of a container: build β†’ ship β†’ run.

Read more

Migrating from Hexo to Hugo: A Two-Day Journey with a Custom Theme

#hugo #hexo #static-site

Introduction

After spending two days migrating my blog from Hexo to Hugo, I’m excited to share my journey. The move wasn’t just about switching toolsβ€”it was about creating something tailored to my needs. With AI assistance, I designed a custom Hugo theme called Signal that reflects my style and requirements.

This post covers the migration process, highlights the key differences between Hexo and Hugo, and introduces the Signal theme along with the GitHub Actions deployment workflow.

Read more

vmware_vs_virtualbox

#tech

Comparsion between virtualbox and virmware on macbook pro early 2015My macbook pro is relatively old, the performance of VM app is more important. Here are some issues I encoutered during using windows 7 on Vmware fusion pro and virtual box.

  • Both vm apps need to install drivers to support usb 3.0. VMware needs to enable settings firstly, then install Intel usb 3.0 driver. But for virtual box only needs to install extensionl pack.

Read more

Markdown example

#tech #markdown

General text

#this is header

**hi, this is bold**

*this is italic font*

this is another line

## this is header two

You’re really, really going to want to see this. Shortcut for markdown all in one[preview][toggle preview]

Visit Markdown Guide Alt text for image

Key Command

Ctrl/Cmd + B Toggle bold Ctrl/Cmd + I Toggle italic Alt+S (on Windows) Toggle strikethrough1 Ctrl + Shift + ] Toggle heading (uplevel) Ctrl + Shift + [ Toggle heading (downlevel) Ctrl/Cmd + M Toggle math environment Alt + C Check/Uncheck task list item [toggle preview]: Ctrl/Cmd + Shift + V Toggle preview Ctrl/Cmd + K V Toggle preview to side The latest news from BBCimage link[orange cat]: Inline link[orange cat][orange cat]

blockquotes

The sin of doing nothing is the deadliest of all the seven sins. It has been said that for evil men to accomplish their purpose it is only necessary that good men should do nothing.

this is a odd paragraph

Lists

  • one

  • two

  • one

  • two

  • hello

    • hello again
  • one
  • two
  • three

paragraphs

We pictured the meek mild creatures where They dwelt in their strawy pen, Nor did it occur to one of us there

  • To doubt they were kneeling then.

Code block


#include <iostrem>
int main()
{
    std::cout << "Hello cpp world" << "/n";
    return 0;
}

Tables

Read more