- 博客(26)
- 收藏
- 关注
原创 大厂设计组件库UI设计规范
https://tdesign.tencent.com/https://arco.design/https://ant-design.antgroup.com/index-cnhttps://semi.design/zh-CN/https://taro-ui.jd.com/#/
2024-12-05 10:37:44 158
原创 mongodb配置文件
# mongod.conf# for documentation of all options, see:# http://docs.mongodb.org/manual/reference/configuration-options/# where to write logging data.systemLog: destination: file logAppend: true path: /var/log/mongodb/mongod.log# Where and ho
2022-01-11 16:44:00 1643
原创 win10安装linux子系统
# 安装运行适用于 Linux 的 Windows 子系统 (WSL)wsl --install# 查看可通过在线商店下载的可用 Linux 发行版列表wsl -l -o# 列出已安装的 Linux 发行版wsl -l -v# 更改或重置root密码wsl -u root# 使用 Linux 文件系统根目录\\wsl$\<DistroName>\home\<UserName>\Project# 设置默认用户ubuntu config --default-user
2022-01-08 21:51:37 671
原创 通过ssh代理连接内网MySQL
# coding:utf8from sshtunnel import SSHTunnelForwarderserver = SSHTunnelForwarder( ssh_address_or_host=('服务器IP', 22), ssh_username='root', ssh_password='密码', remote_bind_address=('127.0.0.1', 3306))server.start()print("代理端口", server.local_bind_
2022-01-05 16:32:43 1579
原创 HTTP消息推送
<?phprequire_once __DIR__ . '/vendor/autoload.php';use Workerman\Worker;use PHPSocketIO\SocketIO;$port = 3120;$url = 'http://0.0.0.0:9191';$io = new SocketIO($port);$io->on('workerStart', function () use ($io, $url) { $inner_http_worke
2021-12-24 14:36:09 568
原创 ZAP分割日志
import ( "github.com/natefinch/lumberjack" "go.uber.org/zap" "go.uber.org/zap/zapcore")hook := lumberjack.Logger{ Filename: "run.log", MaxSize: 1, MaxBackups: 1, MaxAge: 7, Compress: false,}encoderConfig := zap.NewDevelopmentEncode
2021-09-16 14:45:52 280
原创 MySQL
事务隔离级别REPEATABLE READ(可重复读)READ COMMITTED(读取提交内容)READ UNCOMMITTED(读未提交)SERIALIZABLE(可序列化)ACIDAtomicity(原子性)Consistency(一致性)Isolation(隔离性)Durability(持久性)...
2021-09-10 15:38:04 63
原创 常见排序算法
冒泡排序$arr = [2, 5, 3, 7, 9, 10, 1, 14];$len = count($arr);$n = count($arr) - 1;for ($i = 0; $i < $len; $i++) { for ($j = 0; $j < $n; $j++) { if ($arr[$j] > $arr[$j + 1]) { $tmp = $arr[$j]; $arr[$j] = $arr[$j
2021-09-07 15:53:24 65
原创 PHP带符号十六进制转十进制
$hexString = "fffd"; $binNumeric = hexdec($hexString); $binString = decbin($binNumeric - 1); $str = ''; for ($i = 0; $i < strlen($binString); $i++) { $str .= $binString[$i] ^ 1; } v...
2021-08-31 13:55:07 322 1
原创 python3 tkinter 列表 子窗口 ssh连接mysql
# coding=utf-8import pymysqlfrom tkinter import *from tkinter import ttk, messageboxfrom sshtunnel import SSHTunnelForwarderserver = SSHTunnelForwarder( ssh_address_or_host=('remote_host', 22), ssh_username='root', ssh_password='passwd',
2020-07-08 11:57:17 323
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人