上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
  2023年3月25日
摘要: 这是我花了一整天的时间写的node.js命令行扫描器,500多行代码,功能完整,附带英文注解和使用说明,可以拿来直接用。 const validOptions = [ { "name": "ports", "cmd": ["-p", "--ports"], "value": "21-23,25,80 阅读全文
posted @ 2023-03-25 14:30 项希盛 阅读(155) 评论(0) 推荐(0) 编辑
  2023年3月20日
摘要: step 1: put your database in $mysql_data_dir first step 2: put your my.conf to $mysql_cnf, for example: that my.cnf from alibaba cloud [mysqld] pid-fi 阅读全文
posted @ 2023-03-20 17:48 项希盛 阅读(25) 评论(0) 推荐(0) 编辑
摘要: install mysql in docker for testing # step-1: configure mysql_port='3306' mysql_password='123qwe' mysql_data_dir="~/docker/mysqld_${mysql_port}/data" 阅读全文
posted @ 2023-03-20 16:40 项希盛 阅读(15) 评论(0) 推荐(0) 编辑
摘要: admin user use sudo can be do:(拥有sudo权限应该做什么?)1: add <username> to <groupname> groupsudo gpasswd -a <username> <groupname> 2: remove <username> from < 阅读全文
posted @ 2023-03-20 12:32 项希盛 阅读(24) 评论(0) 推荐(0) 编辑
  2023年3月17日
摘要: node.js解析bash下的curl命令并发送请求 const { promises: fs } = require("fs"); const https = require('https'); function https_request(url, headers, data) { const 阅读全文
posted @ 2023-03-17 18:39 项希盛 阅读(343) 评论(0) 推荐(0) 编辑
  2023年2月25日
摘要: 保存为readmsg.go package main import ( "bytes" "database/sql" "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "log" "mime" "mime/multipart" "net 阅读全文
posted @ 2023-02-25 18:48 项希盛 阅读(245) 评论(0) 推荐(0) 编辑
  2023年2月24日
摘要: 使用Go语言编写的邮件接收服务器,并把收到的邮件存入mysql 保存文件名smtpserver.go package main import ( "database/sql" "errors" "io" "io/ioutil" "log" "strings" "time" "github.com/e 阅读全文
posted @ 2023-02-24 21:43 项希盛 阅读(415) 评论(0) 推荐(0) 编辑
  2023年1月13日
摘要: 复制原有的登录功能,如此一来,注册后就能够自动登录系统。 第一步:修改 /src/api/sys/user.ts 添加接口提交代码 /** * @description: user register api */ export function registerApi(params: LoginPa 阅读全文
posted @ 2023-01-13 16:21 项希盛 阅读(823) 评论(1) 推荐(0) 编辑
  2023年1月11日
摘要: 登录页面有很多内容需要调整,不同网站需要重新编译前端就非常麻烦。 下面改成通过后端代码来控制登录页面的效果。 第一步:首先添加API接口 将下面的代码保存到 /src/api/sys/page.ts (创建新文件) import { defHttp } from '/@/utils/http/axi 阅读全文
posted @ 2023-01-11 23:08 项希盛 阅读(1857) 评论(0) 推荐(0) 编辑
摘要: Vben设计了2种权限模式,分别是【前端角色权限(ROLE)】和【后端动态获取(BACK)】 详细说明请参考https://doc.vvbin.cn/guide/auth.html 为了打造【轻前端重后端】我们希望后端可以操纵这个权限模式,而无需通过重新编译【前端代码】的方式实现模式切换 第一步:打 阅读全文
posted @ 2023-01-11 20:18 项希盛 阅读(1472) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页