Skip to content

Instantly share code, notes, and snippets.

View SabaPing's full-sized avatar
🥰
~~~~~~~~

Yifan Xu SabaPing

🥰
~~~~~~~~
  • PingCAP
  • Hangzhou
View GitHub Profile
@kconner
kconner / macOS Internals.md
Last active November 6, 2025 09:43
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@Zheaoli
Zheaoli / Jetbrains JVM Config
Last active July 27, 2022 05:37
This is a JVM config for Jetbrains IDE on my laptop(With i9 10th CPU and 64G RAM)
-Xms128m
-Xmx8182m
-XX:ReservedCodeCacheSize=512m
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
-XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5
-XX:+UnlockDiagnosticVMOptions -XX:-ZProactive
@muralisc
muralisc / install-tmux.sh
Last active July 20, 2025 20:15 — forked from pokev25/install-tmux.sh
Install tmux 3.0a on Amazon Linux 2 / rhel /centos
# Install tmux 3.0a on Centos
# install deps
sudo yum install -y gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
tar -xf libevent-2.1.11-stable.tar.gz
cd libevent-2.1.11-stable
./configure --prefix=/usr/local
@DzeryCZ
DzeryCZ / ReadingHelmResources.md
Last active October 29, 2025 13:21
Decoding Helm3 resources in secrets

Helm 3 is storing description of it's releases in secrets. You can simply find them via

$ kubectl get secrets
NAME                                                TYPE                                  DATA   AGE
sh.helm.release.v1.wordpress.v1                     helm.sh/release.v1                    1      1h

If you want to get more info about the secret, you can try to describe the secret

$ kubectl describe secret sh.helm.release.v1.wordpress.v1
@baleyko
baleyko / socat_server.sh
Created March 8, 2018 10:44 — forked from CMCDragonkai/socat_server.sh
Socat: Simple HTTP Server
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\";
echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\";
"
@reachlin
reachlin / prometheus.yml
Created April 19, 2017 07:06
sample prometheus configuration explained
// For all the confusing Prometheus configuration and
// regular expressions,
// explained in examples.
// Remember, there are default values for each item if it's missing.
// regex is (.*),
// replacement is $1,
// separator is ;
// ,and action is replace
@lummie
lummie / enum.go
Last active June 16, 2025 08:38
Golang Enum pattern that can be serialized to json
package enum_example
import (
"bytes"
"encoding/json"
)
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred
type TaskState int
anonymous
anonymous / jp terms 2.1.md
Created March 28, 2016 09:58
Term Explanation Example
OL Office Lady. Basically set in an office theme. Focus often on the uniform/glasses/stockings/tights. PTS-229 美巨乳OL レズ出張マッサージ 3
ギャル (Gyaru), 顔黒 (Ganguro), 黒ギャル (Kuro Gyaru), 白ギャル (Shiro Gyaru), Gal Fashion style, main characteristics are: heavily bleached or dyed hair (mostly shades from dark brown to blonde), highly decorated nails, dramatic makeup, tanned skin. Ganguro and Kuro Gals have dark skin, Shiro Gals have light skin. CYAL-002 白ギャル黒ギャル 制服レズ性感 つばさ 大槻ひびき
ロリ (Rori), ロリータ (Roriita) Young looking girls. KIRD-189 ロリカワGALご奉仕ナース大量ぶっかけザーメンシャワー病棟
美少女 (Bishoujo) A term to describe a really, really pretty girl. LID-006 泣きじゃくり 泣き虫美少女涙ぼろぼろイラマチオ なごみ
コスプレ (Kosupure),sometimes abbreviated コス (Kosu), スプレイヤー (Cosplayer) Cosplay, costume play. Not limited to anime/games characters, can refer to nurses, school girl uniforms, etc... NITR-168 ザーメン大好き精飲デカ尻コスプレイヤー
JK, 女子校生, 女子高生 (Joshikousei) 女子高校生 (Josh
@Tvaroh
Tvaroh / UUID.scala
Last active October 6, 2018 06:06
Flake UUID generator in Scala
package io.treev.common.util
import java.math.BigInteger
import java.net.NetworkInterface
import java.nio.ByteBuffer
import java.util
import java.util.Base64
import java.util.concurrent.atomic.AtomicReference
/** UUID in 'flake' format.
@rxaviers
rxaviers / gist:7360908
Last active November 7, 2025 16:54
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: