Skip to content

Instantly share code, notes, and snippets.

View kallydev's full-sized avatar
🦊
Web3 Fox

KallyDev kallydev

🦊
Web3 Fox
View GitHub Profile
@kallydev
kallydev / leakybuf.go
Created July 29, 2019 02:15
Simple TCP forwarding implementation, part of the code comes from shadowsocks/shadowsocks-go
// https://github.com/shadowsocks/shadowsocks-go/blob/master/LICENSE
package main
type LeakyBuf struct {
bufSize int
freeList chan []byte
}
const leakyBufSize = 4096
@kallydev
kallydev / simple-danmaku.js
Last active May 14, 2024 05:26
Simple danmaku view implemented in JavaScript
class Danmaku {
elementQueue = null;
fps = 60;
trackSize = 8;
constructor(view) {
this.view = view;
this.view.width = 1920;
this.view.height = 1080;
this.context = view.getContext("2d");
@kallydev
kallydev / main.go
Last active January 18, 2023 15:17
v2ray use gRPC API to add inbound example.
package main
import (
"context"
"fmt"
"google.golang.org/grpc"
"log"
"v2ray.com/core"
"v2ray.com/core/app/proxyman"
"v2ray.com/core/app/proxyman/command"
@kallydev
kallydev / AF86E15D73204987.asc
Created September 7, 2021 04:28
GPG key ID: AF86E15D73204987
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYOb02BYJKwYBBAHaRw8BAQdAQS60RzD6saInTSeNwKq045F/88ar+l1wFhl3
H+njVd60HWthbGx5ZGV2IDxrYWxseWRldkBnbWFpbC5jb20+iJQEExYKADwWIQT9
qXWFT/UcfLfFzEOvhuFdcyBJhwUCYOb02AIbAwULCQgHAgMiAgEGFQoJCAsCBBYC
AwECHgcCF4AACgkQr4bhXXMgSYfcOgD+MyhRsWxbu/h3mRpOX+fsFYZn3kL7ok5V
/gDbCN8xobsA/0G7lWeb965IafTuIaWpYEuQVEqMQsZ0K7nGAg4i7EYP
=4maa
-----END PGP PUBLIC KEY BLOCK-----
TypeScript 10 hrs 52 mins ███████▊░░░░░░░░░░░░░ 37.2%
Go 7 hrs 57 mins █████▋░░░░░░░░░░░░░░░ 27.2%
Rust 3 hrs 17 mins ██▎░░░░░░░░░░░░░░░░░░ 11.3%
Python 2 hrs 19 mins █▋░░░░░░░░░░░░░░░░░░░ 8.0%
JSON 1 hr 51 mins █▎░░░░░░░░░░░░░░░░░░░ 6.4%
@kallydev
kallydev / UPDATED
Last active September 7, 2021 06:52
DESCRIPTION
HELLO WORLD
@kallydev
kallydev / config.json
Created September 9, 2021 12:11
ssserver-rust example config
{
"server": “0.0.0.0”,
"server_port": 8388,
"password": "password",
"method": "aes-256-gcm"
}
@kallydev
kallydev / main.go
Last active December 4, 2021 12:16
Generates an ETH address in a specific format.
package main
import (
"crypto/ecdsa"
"fmt"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto"
"github.com/sirupsen/logrus"
"os"
"strings"
package subscriber
import (
"context"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/go-redis/redis/v8"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)