Skip to content

Instantly share code, notes, and snippets.

@fzdwx
fzdwx / README
Last active February 27, 2024 01:36
Hi
/*
mysql
drop table if exists file;
create table file
(
id bigint primary key,
name varchar(200),
parent_id bigint,
is_dir bigint,
@fzdwx
fzdwx / filename
Last active December 30, 2023 14:13
filename
我草暗示大三大四
爱仕达受到
爱仕达受到
暗示大三大四的
package main
import (
"fmt"
"sync"
)
func main() {
for n := 0; n < 10; n++ {
var (
@fzdwx
fzdwx / ctx.go
Created December 3, 2022 06:02
go ctx react impl
func resSearch(ctx context.Context, hostname string, rtype, class int) ([]dnsmessage.Resource, error) {
if ctx.Done() == nil {
return cgoResSearch(hostname, rtype, class)
}
type result struct {
err error
res []dnsmessage.Resource
}
@fzdwx
fzdwx / ctx.go
Created December 3, 2022 06:02
go ctx react impl
func resSearch(ctx context.Context, hostname string, rtype, class int) ([]dnsmessage.Resource, error) {
if ctx.Done() == nil {
return cgoResSearch(hostname, rtype, class)
}
type result struct {
err error
res []dnsmessage.Resource
}
@fzdwx
fzdwx / main.md
Last active December 14, 2022 06:41
timeline

2022

  1. 2022/10 胡锦涛被拖里大会现场
  2. 2022/11/25 多地学生发起游行
    • 起因是因为乌鲁木齐火灾烧死10人,9人受伤
Details

@fzdwx
fzdwx / install.sh.md
Last active November 30, 2022 08:33
install script collect
@fzdwx
fzdwx / .wezterm.lua
Last active April 22, 2023 08:59
my wezterm config
local wezterm = require("wezterm")
local act = wezterm.action
local keys = {
{ key = "=", mods = "CTRL", action = wezterm.action.DecreaseFontSize },
{ key = "=", mods = "CTRL|SHIFT", action = wezterm.action.IncreaseFontSize },
-- pane
-- 在一个tab内切分的子pane中移动
{ key = "LeftArrow", mods = "ALT", action = wezterm.action({ ActivatePaneDirection = "Left" }) },
{ key = "RightArrow", mods = "ALT", action = wezterm.action({ ActivatePaneDirection = "Right" }) },