All Posts
Snapguides
How to Use GPG: A Practical Guide to Key Management, Encryption, and Signing
GPG (GNU Privacy Guard) is an implementation of PGP and is widely used in the field of cryptography. Its fundamental principle is asymmetric cryptography, also known as public-key cryptography. This article will not delve deeply into its underlying principles but will instead introduce its basic usage. The scenarios described below are those I might encounter in my daily work. Creating a Key Pair Since GPG is based on asymmetric cryptography technology, the first step in using it is to generate a key pair: a public key and a private key:
How I Configure OpenCode: AGENTS.md, Permissions, and More
I’ve been fine-tuning OpenCode’s various configurations for some time now. In this article, I’ll go over my settings. AGENTS.md AGENTS.md is probably the most important part of the configuration. This file serves as the soul and memory of OpenCode, and is permanently preloaded into every OpenCode conversation. Two Prohibitions Initially, I only specified two prohibitions in this file: 1. Any dangerous commands must first be approved by the user; 2. Uploading local personal data, files, etc., to the internet or external services without the user’s consent is strictly prohibited. I believe these two points are most important and should be set first. Since I’ve installed OpenCode on my local machine—which is convenient but also poses security risks—although mainstream AI agents generally handle security quite well these days, explicitly adding these prohibitions should provide even greater assurance. Many people recommend installing personal assistant AI tools like Hermes on a VPS or a dedicated machine, which is indeed safer but also introduces inconvenience and increased costs. I currently don’t feel this is necessary; all my AI agents are installed locally, and I’ve added these two prohibitions to each of them—I haven’t encountered any serious security issues so far.
5 Ways AI Has Actually Saved Me Time on My Computer
Since OpenAI burst onto the scene at the end of 2022, the world seems to have entered the AI era. People’s reactions—ranging from initial disdain for AI to later astonishment at its capabilities and fear that it might replace humans—are all emotional and not entirely rational. AI cannot fundamentally alter the nature of the world; after all, it is ultimately just a man-made product, and nothing created by humans can fundamentally replace what nature has created. But that doesn’t mean it’s useless—it’s actually quite powerful, especially in areas where it excels, particularly in computing. Because it’s essentially a computer program, having a computer handle itself is the perfect fit!
I Tried “Get-Paid-To” Websites for Months, Here’s What I Learned
This year, I decided to make money online. My first idea was to build an independent website and monetize it through blogging. I actually started doing it, but soon I got pulled toward something else: GPT sites—Get-Paid-To websites. Yes, I know. It was probably not the best decision. I understood from the start that the earning potential from GPT websites was far lower than building a proper blog. But I also knew that blogging is a slow grind, one that can easily earn nothing for months. And I wanted to see actual cash land in my account before my motivation ran dry.