Skip to content

Instantly share code, notes, and snippets.

View jsbxyyx's full-sized avatar
☯️

jsbxyyx

☯️
  • Shenzhen China
  • 20:21 (UTC +08:00)
View GitHub Profile
@jsbxyyx
jsbxyyx / snowflake.go
Created June 21, 2025 01:00
golang snowflake
package snowflake
import (
"errors"
"sync/atomic"
"time"
)
// These constants are the bit lengths of snowflake ID parts.
const (
@jsbxyyx
jsbxyyx / git-ssh-error-fix.sh
Created January 17, 2024 06:35 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T [email protected]
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@jsbxyyx
jsbxyyx / .Cloud.md
Created January 2, 2024 03:22 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合