Skip to content

Instantly share code, notes, and snippets.

View caelaxie's full-sized avatar
🏃‍♂️
Think big. Start small. Move fast.

Kaitian Xie caelaxie

🏃‍♂️
Think big. Start small. Move fast.
View GitHub Profile
@caelaxie
caelaxie / stripe-keys-and-ids.tsv
Created July 17, 2025 02:41 — forked from fnky/stripe-keys-and-ids.tsv
Stripe keys and IDs
Prefix Description Notes
ac_ Platform Client ID Identifier for an auth code/client id.
acct_ Account ID Identifier for an Account object.
aliacc_ Alipay Account ID Identifier for an Alipay account.
ba_ Bank Account ID Identifier for a Bank Account object.
btok_ Bank Token ID Identifier for a Bank Token object.
card_ Card ID Identifier for a Card object.
cbtxn_ Customer Balance Transaction ID Identifier for a Customer Balance Transaction object.
ch_ Charge ID Identifier for a Charge object.
cn_ Credit Note ID Identifier for a Credit Note object.
@caelaxie
caelaxie / Dockerfile
Created November 29, 2023 04:36 — forked from soof-golan/Dockerfile
Python + Poetry + Docker Example
FROM python:3.10 as python-base
# https://python-poetry.org/docs#ci-recommendations
ENV POETRY_VERSION=1.2.0
ENV POETRY_HOME=/opt/poetry
ENV POETRY_VENV=/opt/poetry-venv
# Tell Poetry where to place its cache and virtual environment
ENV POETRY_CACHE_DIR=/opt/.cache
@caelaxie
caelaxie / markdown-details-collapsible.md
Created November 17, 2023 02:01 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@caelaxie
caelaxie / docker-registry-mirrors.md
Created April 1, 2022 02:43 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

创建或修改 /etc/docker/daemon.json

@caelaxie
caelaxie / template.cpp
Last active November 8, 2021 23:36
C++ Template for Competitive Programming
// author: algobot76
// created: 2021-11-09 07:26:51
#include <bits/stdc++.h>
#ifdef AB76
// https://github.com/renatoGarcia/icecream-cpp/blob/master/icecream.hpp
#include "icecream.hpp"
#define dbg(...) IC(__VA_ARGS__)
#endif
using namespace std;