R&D
How to Trigger GitHub Actions Remotely
· β˜• 2 min read
Usually, we need to perform some operation on GitHub in order to trigger a GitHub Action. This post introduces a way to trigger a GitHub Action remotely through an API call. 1. Common Ways to Trigger a GitHub Action Here is an example GitHub Action: 1 2 3 4 5 6 7 name: GitHub Actions Demo on: [push, pull_request] jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest steps: - run: echo "Hello World!

Building and Using Go Private Packages
· β˜• 3 min read
1. Create a Go Modules Project Create the directory 1 2 mkdir go-test cd go-test Initialize the package 1 2 3 4 5 go mod init gitlab.private.com/shaowenchen/go-test go: creating new go.mod: module gitlab.private.com/shaowenchen/go-test go: to add module requirements and sums: go mod tidy Add the business code main.go 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 package main import ( "github.

A Universal Pipeline Design
· β˜• 4 min read
1. Decoupling the Engine to Unlock Pipeline Capabilities When designing a system, we often face a dilemma. Do we contain the complexity and offer a single, easy-to-use capability to the outside; or do we release the complexity and return flexibility to the user? This is a real test of product

Several Ways to Access GitHub from China
· β˜• 1 min read
For well-known reasons, accessing Github from a network environment in China is either blocked or very slow. This article provides several ways to get around it. 1. Download Using a Github Mirror Just prepend a Proxy address to the GitHub repository; the way different Mirrors are concatenated may vary. The

Some Common Computer Interview Questions
· β˜• 6 min read
Computer Fundamentals Heap and Stack When do you use the heap? When do you use the stack? What is the stack for? Are Go variables on the stack or the heap? Do the heap and stack have limits? If so, what are they related to? Data Structures How is space allocated for a slice?