1.终端生成ssh key: ssh-keygen -t rsa -C "your@qq.com" 预设密码 使用 ssh-agent保存密码: 输入:eval `ssh-agent ` 复制出现的三行类似于: SSH_AUTH_SOCK=/tmp/ssh-bq1jxmZsvSEF/agent.20 ...
分类:
其他好文 时间:
2020-04-27 17:26:53
阅读次数:
60
使用依次相加,记录进位的方式进行运算,下面是我的解答,leetcode上运行耗时20ms,内存占用7.3MB struct ListNode{ int val; struct ListNode *next; }; struct ListNode* addTwoNumbers(struct ListN ...
分类:
其他好文 时间:
2020-04-27 15:44:38
阅读次数:
47
Bin:全称binary,用于存放二进制文件,可以被运行。 Dev:存放外接设备,在其中的设备需要挂载(类似windows下面的分配盘符)才能直接使用。 Etc:主要存储一些配置文件 Home:表示除了root用户以外的其他用户的家目录,类似windows下的user/用户用户。 Proc:proc ...
分类:
系统相关 时间:
2020-04-27 13:24:39
阅读次数:
106
致读者 等几天在更新,最近有点吃不消了😝 完成数据结构 哈夫曼编码 实验部分代码。 函数功能 void insert(LIST head, LIST tmp) 有序插入结点 LIST find_and_insert(LIST head, LIST tmp) 弹出内部的结点,然后调用insert函数 ...
分类:
其他好文 时间:
2020-04-26 19:09:27
阅读次数:
119
js下载图片TOC js下载图片 使用超链接下载图片的时候,会变成预览,使用下面的方法,就可以直接下载图片了 downUrl(url) { // window.open(_this.detail.imgUrl) let xmlhttp = new XMLHttpRequest(); xmlhttp.... ...
分类:
Web程序 时间:
2020-04-26 13:51:33
阅读次数:
69
leetcode 面试题51. 数组中的逆序对 本质上就是归并排序,并在合并区间过程中统计交换的逆序对的数目 归并排序需要开o(n)的辅助空间 class Solution { public: int deal(vector<int>&nums,vector<int>&tmp,int ll,int ...
分类:
编程语言 时间:
2020-04-26 12:34:31
阅读次数:
80
1.安装percona xtrabackup 下载地址为http://www.percona.com/downloads/XtraBackup/ 1)服务器搭建本地yum源; 2)yum y install perl perl devel libaio libaio devel perl Time ...
分类:
其他好文 时间:
2020-04-26 10:54:17
阅读次数:
61
https://leetcode-cn.com/problems/house-robber-ii/ //rob 0, not rob n-1 || not rob 0,not rob n-1 ==>rob(0,nums.length-2,nums) //not rob 0,rob n-1 || no ...
分类:
其他好文 时间:
2020-04-26 10:50:46
阅读次数:
45
常见目录介绍 / 根目录 root/ root用户的家目录 home/ 用户的家目录 boot/ grub 开机设置相关文件 内核文件(vmlinuz) dev/ 设备文件目录 etc/ 配置文件目录,包含系统特有的可编辑配置文件,即用于控制程序运行的本地文件 rc.d 用于存放不同运行等级的启动脚 ...
分类:
系统相关 时间:
2020-04-26 01:08:13
阅读次数:
111
1、找出ifconfifig “网卡名” 命令结果中本机的IPv4地址 [root@Centos8 data]# ifconfig|grep inet|head -n1|tr -s ' '|cut -d' ' -f3 10.0.0.100 2、查出分区空间使用率的最大百分比值 [root@Cento ...
分类:
其他好文 时间:
2020-04-24 22:06:39
阅读次数:
105