What are the differences between Perl, Python, AWK and sed In order of appearance, the languages are sed, awk, perl, python. The sed program is a stre ...
分类:
编程语言 时间:
2020-05-29 23:12:24
阅读次数:
87
题目链接:https://vjudge.net/problem/POJ-2796 题意:求一个区间内的最小值乘以这个区间元素和的最大值 和poj2082的思路基本一样,对于区间内每个元素,都可以作为最小值。那么尽量往左右延伸到第一个比它小的数,记录下延伸之前的一个位置l[i]和r[i]。由此感觉单调 ...
分类:
其他好文 时间:
2020-05-29 21:26:43
阅读次数:
51
A - Sorted Adjacent Differences 题意:给定数组,对其排序,使其满足|a1?a2|≤|a2?a3|≤…≤|an?1?an|. 解题思路:先对数组进行排序,由最大值与最小值之差最大,次大值与次小值之差第二大,依次类推,将数组从中间开始输出. ac代码: #include< ...
分类:
其他好文 时间:
2020-05-29 21:21:37
阅读次数:
57
<R3>reset saved-configuration 输入命令后会出现: This will delete the configuration in the flash memory. The device configuratio ns will be erased to reconfigu ...
分类:
其他好文 时间:
2020-05-29 13:34:05
阅读次数:
208
##jumpserver 1.5.9安装 #!/bin/bash ###jumpserver 1.5.9 systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/SELINUX=.*/SELINUX=di ...
分类:
其他好文 时间:
2020-05-29 11:58:41
阅读次数:
121
ubuntu换源 目的:ubuntu默认的源是国外的,使用apt-get的时候很慢,换成国内的源可以在安装软件时快很多很多。我用的是ubuntu16.04。 相关文件: /etc/apt/sources.list 步骤: (1).先备份这个文件(以防以后需要) sudo cp /etc/apt/so ...
分类:
系统相关 时间:
2020-05-29 09:54:05
阅读次数:
101
日志分析 时间戳格式化 awk -F'\t' '{ts_high=$3/10000000;ts_low=$3%10000000;sub(/.*/,strftime("%Y-%m-%d %H:%M:%S",ts_high)"."ts_low,$3);sub(/.*/, $NF/10"us", $NF) ...
分类:
其他好文 时间:
2020-05-28 23:56:13
阅读次数:
103
说明 <>连带括号内的内容大概率是要进行相应的替换。 直接复制可能会出事,建议先仔细看看。 sql,sh分别表示sql语句和命令行,如果没表明,请甄别一下。 安装配置 sudo apt-get install mysql-server 下载完成后,完成安装时配置 mysql_secure_insta ...
分类:
数据库 时间:
2020-05-28 21:16:59
阅读次数:
86
Dubbo 线程池满异常应该是大多数 Dubbo 用户都遇到过的一个问题,本文以 Arthas 3.1.7 版本为例,介绍如何针对该异常进行诊断,主要使用到 `dashboard`?/?`thread` 两个指令。
分类:
编程语言 时间:
2020-05-28 19:45:27
阅读次数:
64
#vim /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true G ...
分类:
其他好文 时间:
2020-05-28 19:30:02
阅读次数:
116