Skip to content

Instantly share code, notes, and snippets.

View h1z3y3's full-sized avatar
👀
I'm watching on you 🤫

zhaoyang h1z3y3

👀
I'm watching on you 🤫
View GitHub Profile
@h1z3y3
h1z3y3 / 📊 Weekly development breakdown
Last active July 16, 2023 15:26
📊 Weekly development breakdown
PHP 29 mins ████████████████████ 95.89%
CSS 0 secs █░░░░░░░░░░░░░░░░░░░ 2.84%
JSON 0 secs █░░░░░░░░░░░░░░░░░░░ 0.97%
Makefile 0 secs █░░░░░░░░░░░░░░░░░░░ 0.15%
JavaScript 0 secs █░░░░░░░░░░░░░░░░░░░ 0.06%
2023-07-16 15:26:24.102250218 +0000 UTC m=+0.251469116 update done
@h1z3y3
h1z3y3 / 🎵 My Liked Songs
Last active September 6, 2021 15:58
🎵 My Liked Songs
Lucky by Jason Mraz
Free Loop by Daniel Powter
I Love You 3000 by Stephanie Poetri
Afterglow by Ed Sheeran
Comethru by Jeremy Zucker
One Day (Official Video) by Matisyahu
Righteous Path by Blazo
My Strange Addiction by Billie Eilish
This Means War by Avenged Sevenfold
What A Wonderful World by Louis Armstrong
sudo yum install -y systemtap systemtap-runtime
sudo yum install --enablerepo=debuginfo kernel-debuginfo kernel-debuginfo-common
sudo yum install yum-utils
debuginfo-install kernel-3.10.0-514.21.2.el7.x86_64
sudo yum install -y kernel-devel-$(uname -r)
sudo yum install -y kernel-debuginfo-$(uname -r)
sudo yum install -y kernel-debuginfo-common-$(uname -m)-$(uname -r)
FROM golang:1.17.5-alpine AS BUILDER
COPY . /go/src/app
WORKDIR /go/src/app
RUN go build -mod=mod -o app
FROM golang:1.17.5-alpine
WORKDIR /app
$ luarocks install --tree=/path/you/want/to/install lua-resty-ipmatcher
server {
listen 80;
server_name .example.com
return 301 https://example.com
}
server {
listen 443 ssl;
server_name .example.com
# add same content to the head of every line
:%s/^/the_content
# add same content to the tail of every line
:%s/$/the_content
# combine lines in vim
req, _ := http.NewRequest("GET", "http://your_link_url", nil)
req.Header.Set("Authorization", fmt.Sprintf("Bearer xxxxxxxx"))
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
import "strings"
band: {
// hidden fiels
_selfIndexAlbums: ["", "II", "III", "IV"]
_namedAblums: [
"Houses of the Holy",
"Physical Graffiti",
"Presence",
"In Through the Out Door",