Skip to content

Instantly share code, notes, and snippets.

View chendotjs's full-sized avatar

Chen Yaqi chendotjs

  • Shanghai
  • 17:18 (UTC +08:00)
View GitHub Profile
// client_test.go
package rickandmorty
import (
"io/ioutil"
"net/http"
"strings"
"testing"
)
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active May 16, 2024 18:26
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@iamcryptoki
iamcryptoki / vscode-update-permission-denied.txt
Created December 14, 2018 19:46
Fix Visual Studio Code update error "Could not create temporary directory: Permission denied" on macOS.
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
sudo rm -Rf ~/Library/Caches/com.microsoft.VSCodeInsiders.ShipIt
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 17, 2024 06:30
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example