AUDCH
鄙人不才,又写了个鸡肋的轮子,既然写了,还是介绍下吧 工作原理:获取所有Docker容器的IP地址,添加到 hosts 文件 我丰富的经验告诉我 Go 的 Docker 库很成熟了,So 1import "github.com/docker/docker/client" 先连接 Docker 服务端 1Cli, err = client.NewClientWithOpts(client.FromEnv) 列出所有的 Docker 容器 1list, err := Cli.ContainerList(context.Background(), types.ContainerListOptions{}) 待会拿到了IP和名字怎么处理呢?[]string? map[string]string ? []struct{}? For 循环 获取容器名称和IP 123456789for i := 0; i < len(list); i++ { name :=...
When Wechaty meets Android Studio
Android Studio Android Studio zh-cn WeChat Wechaty Go-Wechaty-Bot Init Start Arbitrary Settings Install Wechat Login WeChatBot XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be...
Windows Double Language Icon
Windows Double Language Icon Fix Language Bar Problem in Windows 任务栏两个语言图标 RDP Double Language 1REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v IgnoreRemoteKeyboardLayout /t REG_DWORD /d 1 XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this...
Windows Install OpenSSH
生成密钥123456ssh-keygen \ -m PEM \ -t rsa \ -b 4096 \ -C "laowang@qq.com" \ -N my_ssh_passwd Install OpenSSH12# >>>Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*' 123456<<<Name : OpenSSH.Client~~~~0.0.1.0State : NotPresentName : OpenSSH.Server~~~~0.0.1.0State : NotPresent 123456# >>># Install the OpenSSH ClientAdd-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0# Install the OpenSSH...
Vue BootStrap toast (闪 消失 disappears)
Vue BootStrap toast (闪 消失 disappears) when I click the button to show up toast, it showed once and disappear immediately. Version12345"bootstrap": "^5.1.3","bootstrap-vue": "^2.22.0","vue": "^2.6.14","axios": "^0.27.2","vue-axios": "^3.4.1", Main.js123import Vue from 'vue';import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';Vue.use(BootstrapVue,...
Wechaty Gateway 使用教程
声明 wechaty 属于开源工具,并没有太多的义务帮你解决问题 大家也多是一步一步学习的,工具做好了基本也潜水了 所以请尝试自己查找资料 我喜欢go嘛 提问的艺术 其实 wechaty官网 已经很详细了,这里有很多的文档可供参考 使用谷歌语法 wechaty go xp 使用 Github 搜索 org:wechaty roomInvitation 请将你的问题,代码,错误日志一起提交到 issues 希望你能接受上面的说法,感谢 关于架构1234567891011121314flowchart LR Polyglot-->Python Polyglot-->Go Polyglot -->Rust Python-->Grpc Go-->Grpc Rust-->Grpc Grpc-->Puppet Puppet-->Padlocal Puppet-->Wechat4U Puppet-->XP Padlocal-->微信 ...
轻量服务器安装 OpenWrt
环境GitHub:https://github.com/esirplayground/VPS_OpenWrt OpenWrt:自由下载 BaiduPAN:https://pan.baidu.com/s/1jtf3g97rCbuPhbiFxTkyhA / ktiw 腾讯云轻量服务器 开始 把你的 img 、vps_deploy.sh、wrt_kernel.bin 打包成为压缩包,对了,vps_deploy.sh 里面有下载链接,删了就好 上传你压缩后的文件 到 https://quickfile.cn/#/ 中转站,保留下载地址 ⚠️ 注意,接下来的操作会初始化你的服务器 下载 压缩包 并解压,执行 chmod +x vps_deploy.sh && vps_deploy.sh 等待两次系统重启 腾讯轻量服务器 vnc 页面进入终端 执行一段命令 123456789101112vi /etc/config/network# 找到 lan --> static --> 修改为 dhcp ,下面这个样子# config...
Hackone 环境搭建
网络环境 Vmware PIN1Group_FW -> openwrt-x86-64-generic-squashfs-combined-efi -> StarWind V2V Converter -> vmwre_new -> 其他linux64位 -> 2h2g -> 桥接 -> vi_network_config@Router -> vist -> 防火墙全部接受 -> 接口修改 -> 不桥接接口-> 博客 passwall -> 订阅 -> 全局 -> 高级设置 kali -> 修改网络配置文件 -> 网络测试 windows 同理 # kali 网络修改 sudo vi /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.11.145 netmask 255.255.255.0 gateway openwrt_ip cat...
Git 优化三连击
本文不做过多讲解,不懂的内容请留言 Git.HTTP/S 加速1234567891011121314151617➜ cat ~/.gitconfig[user] email = github-actions[bot]@users.noreply.github.com name = github-actions[bot][http] proxy = socks5://127.0.0.1:7890 proxy = http://127.0.0.1:7890[https] proxy = socks5://127.0.0.1:7890 proxy = https://127.0.0.1:7890[core] excludesfile = /Users/xr/.gitignore[filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true Git.SSH...
个人隐私保护-Bitwarden
背景Bitwarden 是一个类似 1Password 和 LastPass 的开源密码管理软件,Bitwarden RS 是基于 Rust 语言的一个实现,更轻量一些,可能效率也会更高一点点,并且是完全兼容官方 App 的,比如各种浏览器扩展,手机 App 等。[ 摘抄 ] 不想折腾可以直接官网注册使用即可,网速有点慢 准备工作 一台公网 linux 服务器( Ubuntu / Centos ) docker 域名和证书 可以通过腾讯云购买服务器和域名并申请免费证书 安装 Docker1234curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyunsudo systemctl enable dockersudo systemctl start dockersudo usermod -aG docker $USER 修改配置文件12345678910111213141516171819202122{ // 镜像加速 "registry-mirrors":...
狗东西的防黑之路
本文章基于 SSH 出发 作者很随性,随缘写文 涉及知识面:openssh ,proxy ,fwknop ,docker OPENSSHOpenSSH (also known as OpenBSD Secure Shell[a]) is a suite of secure networking utilities based on the Secure Shell (SSH) protocol, which provides a secure channel over an unsecured network in a client–server architecture.[4][5] OpenSSH started as a fork of the free SSH program developed by Tatu Ylönen; later versions of Ylönen’s SSH were proprietary software offered by SSH Communications Security.[6] OpenSSH was first...
Docker Action IniT
Dockerfile12345678910111213141516171819LABEL maintainer="xrsec"LABEL mail="Jalapeno1868@outlook.com"LABEL Github="https://github.com/XRSec/Code-Server-Update"RUN apt update -y && apt upgrade -y \ && apt install -y ncurses-bin \ && apt clean -y \RUN yum update -y && yum upgrade -y \ && yum install ncurses -y \ && yum clean all -y \WORKDIRENTRYPOINT ["/goby.sh"]EXPOSE 80ENV...
Centos init
Centos init12345678910111213141516171819202122yum update -y && yum upgrade -yyum install wget unzip git util-linux-user net-tools iputils util-linux-user zsh ncurses -ycurl -s curl -s https://mirror.ghproxy.com/https://gist.githubusercontent.com/Ran-Xing/0e47c9b793887d201bab9de2a07a740c/raw/3a63ca4fe9b775c5a8e141f05ddb35cc1ea09334/zsh_init.sh | bash -source ~/.zshrcsudo yum install -y yum-utilssudo yum remove docker \ docker-client \ ...
Docker Centos init
1docker run -it --name server centos:latest 12345678yum update -y && yum upgrade -y && yum install wget git curl sudo net-tools iputils util-linux-user zsh ncurses -ychsh -s /usr/bin/zshsh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightinggit clone...
趣玩Github Action
在 GitHub Actions 的仓库中自动化、自定义和执行软件开发工作流程。 您可以发现、创建和共享操作以执行您喜欢的任何作业(包括 CI/CD),并将操作合并到完全自定义的工作流程中。 Action 能干啥?都能干,前段时间还有人挖矿 下面所有的用户名和仓库用 laowang 和 zhangshan 代替 Actions secrets一些不方便的隐私的东西可以放进去,然后用环境变量代替 https://github.com/laowang/zhangshan/settings/secrets/actions 12345# 推荐变量名DOCKERHUB_PASSWORD 123456 ${{ secrets.DOCKERHUB_PASSWORD }}DOCKERHUB_TOKEN 123456 ${{ secrets.DOCKERHUB_TOKEN }}DOCKERHUB_USERNAME laowang ${{...