Commit Graph

115 Commits

Author SHA1 Message Date
8e107dca70
Merge 7c62359ecf into 483f7fd7f3 2024-04-26 13:44:27 +00:00
7c62359ecf fix(common.sh): get_os_type and get_linux_dist 2024-04-26 21:44:20 +08:00
bd2c5eeec1 fix(zshrc): tmux on msys; feat(common): better perf getting os type and linux dist 2024-04-26 20:18:21 +08:00
96a21666cb build(ci): hub mirror 1.3->1.4 2024-04-26 19:43:15 +08:00
xiongdian.me
6bb6a428bc feat(zshrc): alias ping6 2024-04-26 14:50:23 +08:00
xiongdian.me
4c8d5aa2af feat(tmux): set-clipboard on and mouse on (experimental) 2024-04-26 11:59:30 +08:00
xiongdian.me
26598863f0 feat(ci): sync tmux-yank 2024-04-26 10:56:09 +08:00
xiongdian.me
534a8c5516 feat(vimrc): set shiftwidth=4 2024-04-26 10:15:55 +08:00
xiongdian.me
7600d07d46 fix(riot): not mkdir if dry-run 2024-04-16 21:44:38 +08:00
xiongdian.me
5d6d13e623 fix(ci): riot control master 2024-04-16 21:36:47 +08:00
xiongdian.me
500c3bdfe5 fix(riot): secure control master 2024-04-16 21:31:08 +08:00
xiongdian.me
36fd85121b feat(test.zsh): test crontab 2024-04-16 19:36:10 +08:00
xiongdian.me
b31bcfe44b fix(install.sh): install crontab (exp) 2024-04-16 17:41:49 +08:00
c8c3289c79 fix(riot-conf): nasp.ob.ac.cn -> nasp.fit 2024-04-16 00:55:09 +08:00
019781f9ee fix(install.sh): crontab fails on a new server 2024-04-01 22:16:34 +08:00
3d4a264a30 frigg: support api4.beardic.cn 2024-01-15 20:31:31 +08:00
864456d35d zshrc: alias ping before checking os type 2024-01-15 20:16:29 +08:00
3667d3bd15 riot-config: jumpserver from sir0 to ssh.beardic.cn 2024-01-15 20:11:54 +08:00
xiongdian.me
607b27b385 zshrc: alias ping -n 2024-01-10 12:51:07 +08:00
xiongdian.me
64808ce742 zshrc: ping -n 2024-01-08 11:47:37 +08:00
xiongdian.me
b631d32b22 ubuntu.sh: DEBIAN_FRONTEND=noninteractive 2024-01-08 11:46:56 +08:00
xiongdian.me
3f8c071c65 riot config: domain 42 2024-01-04 22:00:22 +08:00
xiongdian.me
a87bc0b36d sagt: fix nixos 2024-01-04 15:41:08 +08:00
0f6ee20bed [exp] riot inferred ssh: ping ping6 2023-12-30 21:24:44 +08:00
f861eee424 to-install: alist 2023-12-30 21:20:17 +08:00
xiongdian.me
c3baed2bea to-install: update lemonbench 2023-12-22 15:11:56 +08:00
xiongdian.me
b727841ccc riot: only one domain func will be exec 2023-12-12 18:08:23 +08:00
xiongdian.me
35c302a445 riot: dynamic port forwarding 2023-12-07 18:24:56 +08:00
xiongdian.me
ce657c8300 fix ci 2023-12-07 18:21:02 +08:00
xiongdian.me
c1d555393a gitconf: pull.ff = only 2023-12-07 18:14:42 +08:00
xiongdian.me
b1272e22bb riot config: add nasp remote and null domain 2023-12-07 14:48:27 +08:00
79d376265e (experimental) riot config in a single file 2023-12-06 21:52:54 +08:00
xiongdian.me
2fa248fdb0 riot: support extra options and extra -o options 2023-12-06 19:32:24 +08:00
xiongdian.me
76af9fa434 (trial) riot devel: separate preset to config dir riot.d 2023-12-06 19:17:19 +08:00
xiongdian.me
fbb4a6ff76 zshrc: not alias rm to trash 2023-12-06 18:00:06 +08:00
3223ca53fa riot: proxy -> ssh 2023-11-30 00:20:53 +08:00
xiongdian.me
a28673b50c zshrc: alias cps and mvs 2023-11-29 15:55:34 +08:00
xiongdian.me
a28906c1d7 doll: --restart=unless-stopped 2023-11-10 18:05:28 +08:00
xiongdian.me
9766b40796 install.sh: --no-ssh -> --no-auth-info 2023-11-10 15:06:06 +08:00
xiongdian.me
bf726ea5cc riot: remove unknown domain warn 2023-11-06 19:19:08 +08:00
483f7fd7f3
[dev] nixos; riot multiple targets; install without ssh keys (#42)
* auth: add .eid/authorized_certificates for pam pkcs11 auth

* .zshrc: alias sl for sudo zsh -l

* to-install: nix

* zshrc: use gnu ls on mac

* zshrc: try to use gnu-ls

* try to fix ci for macos

* riot: add domain box[0-9]

* riot: shortcuts i,x,j

* .zshrc: warn if not in main channel

* sagt: reset agent so paths

* sagt: import ssh-agent -P paths

* common.sh: is_port_free and get_free_port

* riot use get_free_port to fix issue on windows

* riot: ssh support instant command

* riot: proxy delimiter from comma (,) to slash (/)

* riot: support multiple remotes, delimiter=comma (,)

* riot: fix ci; install.sh: --no-ssh

* riot: improve ci

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-11-06 19:13:22 +08:00
5fb7ff0833
[debug] support nixos; fix ci (#41)
* support for nixos

* fix ci
2023-07-26 21:18:24 +08:00
39b8dfce82
[debug/dev] loosen riot username check; autoload zcalc (#40)
* riot: loosen username check as sometimes it's not a unix username

* Revert "riot: loosen username check as sometimes it's not a unix username"

This reverts commit bdb64ce1f2.

* riot: loosen username check as sometimes it's not a unix username

* zshrc: autoload zcalc

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-07-03 16:52:06 +08:00
1a62ffe74b
[debug+dev] riot checks and fix ipv6 support, fix crontab installation; antigen use F-Sy-H (#39)
* format: remove space

* sry but..., riot: 'i' for 'ibd', and remove support for ebd

* fix ipv6 support

* validate port and username

* install.sh: failed to add to crontab when there's no crontab

* sync zdharma-continuum/fast-syntax-highlighting

* use fast-syntax-highlighting instead

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-06-20 15:10:59 +08:00
2cc2ab48b8
[dev] enhance riot; ddns avoid burst (#38)
* riot: add . for .ibd and non for proxied

* riot: 'user@..' to overwrite username, '...:22' to overwrite port, treat the arg as server name if it doesn't match any preset, sshl can accept only a port number and default to use localhost

* update.sh: ddns sleep for random seconds to avoid burst

* riot: support zssh and sftp, and set ssh options according to trust settings

* riot: add scp

* riot: support jump servers, sep by commas

* common.sh: argparser supports -d/--dev and -D/--dry-run

* install.sh: remove -s/--secure because of no use

* riot: if remote ends with dot, treat it as a full-hostname; add tests

* sagent.sh: refuse to work on windows

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-05-30 13:43:25 +08:00
37bf1fa1f0
[keys] remove pc{0,1}/old,sk0/fido,ph0/sep, update pc1/windows (#37)
keys: remove pc{0,1}/old,sk0/fido,ph0/sep, update pc1/windows
2023-04-29 17:46:01 +08:00
8fdd3c477f
[dev] ddns; better ssh agent; riot sshl; sys.online; zsh hist import; DFS_DEBUG; cbd/cbds (#36)
* riot: bj1 -> proxy

* ci: test ask_for_yn

* --wip-- [skip ci]

* install.sh: will prompt version

* zshrc: piv-agent now can re-use agents

* zshrc: in docker use theme robbyrussell

* update.sh: will send online beacon

* beacon: support meta with limited len 64

* bug fix (Sat Jan 21 16:45:35 CST 2023)

* well, finally add ssh key for ltp1-bd

* set DFS_INITED and do not send login beacon if it was set

* rewrite piv-agent to sagent; fmt_note and fmt_into will write to stderr

* bug fix (Mon Jan 30 19:41:00 CST 2023)

* bug fix (Mon Jan 30 19:46:27 CST 2023)

* login beacon add details

* $DFS_ORPHAN turns logger off

* disable more beacons in CI

* install.sh: prepare config earlier

* init pbin

* install.sh: -H|--hist|--history

* install.sh: -H hint

* install.sh: -H support multiple keys

* fix zsh hist with no new line at the end

* remove ^M in hist

* bug fix (Wed Feb  1 21:11:41 CST 2023)

* bug fix (Wed Feb  1 21:16:29 CST 2023)

* bug fix (Wed Feb  1 21:20:21 CST 2023)

* ci will send gh.ci.fail

* show install opts

* DFS_DEBUG to set -x

* bug fix: install.sh re-start itself with no args incorrectly

* bug fix (Thu Feb  2 18:43:16 CST 2023)

* riot: ob->ebd, swap option $1 and $2 and $2 is default to ssh

* riot: introduce sshl

* logger.sh: support ddns

* bug fix (Wed Mar  1 16:37:42 CST 2023)

* dfs.ddns.failed -> dfs.ddns.fail

* login beacon 2>/dev/null

* logger.sh -> frigg-client.sh; curl add time limit 10s

* to-install.sh: improve docker-ce

* use $DFS_CURL_OPTIONS

* ci: add ddns

* bug fix (Wed Mar 15 19:37:21 CST 2023)

* Revert "bug fix (Wed Mar 15 19:37:21 CST 2023)"

This reverts commit 2df87ce1a8.

* Revert "ci: add ddns"

This reverts commit 4fe8321504.

* alias cbd and cbds, riot nasp port to 12022

* .zshrc: sagent -> sagt

* fix ci

* riot: bug fix when 'tmp' has leading zeros

* add ci for cbds

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-04-21 12:37:05 +08:00
9a4c9556f6
[dev] common.sh parses args; riot; getdfs; install.sh -x KEY=VAL (#35)
* common.sh: export vars in env; zshrc: gdebug

* fix error when locale not exists

* DFS_COLOR

* common.sh: parse args automatically

* ci: test common.sh getopts

* common.sh: argparser supports spaces

* ciot: init

* ciot -> diot; remove sibd, sob and snasp

* rename diot -> riot

* update home0 ssh pubkey; fix ci temperarily

* gdebug will record time

* gdebug supports empty; --dry-run wip

* get.dotfiles.cn

* bug fix (Thu Jan  5 20:53:58 CST 2023)

* fix ci

* fix ci

* install.sh: -d will set -x

* ci: -asl

* getdfs: install for another user using -u <uname>

* try fix when su doesnot exist

* bug fix (Thu Jan  5 22:58:40 CST 2023)

* bug fix (Thu Jan  5 22:59:33 CST 2023)

* introduce SUDOE and so debug

* ask_for_yn now use stdout to return

* getdfs: support multiple users

* install.sh: -x to set dfs config; ci

* fix ci

* bug fix (Fri Jan  6 15:11:24 CST 2023)

* auto-detect DFS_NO_WALL

* bug fix (Fri Jan  6 15:43:25 CST 2023)

* getdfs: ${repo}

* bug fix (Fri Jan  6 16:08:41 CST 2023)

* getdfs: prompt user

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2023-01-06 16:14:41 +08:00
952bfabea4
zshrc: fix locale (#34)
* common.sh: export vars in env; zshrc: gdebug

* fix error when locale not exists

* fix ci

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2022-12-10 19:11:05 +08:00
c3e0c28b64
[install.sh] hotfix (#33)
hotfix

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2022-12-03 21:27:22 +08:00