在/root/init.rc中添加下面内容, 开机就会执行/system/bin/boot-complete-script.sh脚本 service boot_complete_script /system/bin/boot-complete-script.sh class main oneshot ...
分类:
移动开发 时间:
2021-04-21 12:38:11
阅读次数:
0
Dim bag,pipe do Set bag=GetObject("WinMgmts:") Set pipe=bag.execquery("select * from win32_process where name='notepad.exe'") for each i in pipe i.ter ...
分类:
系统相关 时间:
2021-04-21 12:36:32
阅读次数:
0
最近做题养成了一个不太好的习惯,习惯性的先去看discuss有没有坑,越是惧怕错误越可能出错,之后的锻炼,出错再去check discuss吧 简单的BFS #include <iostream> #include <algorithm> #include <queue> #include <str ...
分类:
其他好文 时间:
2021-04-21 12:34:23
阅读次数:
0
##一、 //挂载路由导航守卫,控制页面访问权限 //to 将要访问的路径 //from 代表从哪个路径跳转而来 //next 是一个函数,表示放行 // next() 放行 next('/login') 强制跳转 router.beforeEach((to, from, next) => { if ...
分类:
其他好文 时间:
2021-04-21 12:30:59
阅读次数:
0
作用:passwd主要用来修改用户的登录密码 用法: passwd [选项...] <帐号名称> 主要选项: -k, --keep-tokens 保持身份验证令牌不过期 -d, --delete 删除已命名帐号的密码(只有 root 用户才能进行此操作) -l, --lock 锁定指名帐户的密码(仅 ...
分类:
其他好文 时间:
2021-04-21 12:29:33
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
方法一:双指针法 采用就地反转,不用额外开辟空间 注意:接收链表的head节点,返回当前节点 方法二:递归法 代码如下: class Node(object): def __init__(self, item, next=None): self.item = item self.next = nex ...
分类:
其他好文 时间:
2021-04-21 12:23:41
阅读次数:
0
统计tomcat的access日志的ip次数,并按次数排序 awk '{sum[$1]++}END{for(i in sum) print i "\t" sum[i]}' localhost_access_log.* | sort -n -k2 统计某个接口的调用时间 awk '{if($7~/.* ...
分类:
数据库 时间:
2021-04-21 12:18:10
阅读次数:
0
IDEA激活补丁 IDEA激活补丁因为使用的人一多就会出现问题,所以可以使用补丁来一直充重置30天的免费使用时间。 补丁地址如下:https://gitee.com/Aer2/tools-collection/tree/master/ 找到压缩包文件然后下载。 使用方法如下 1.将压缩包拖入IDEA ...
分类:
其他好文 时间:
2021-04-21 12:13:36
阅读次数:
0
集群设计实现 基础设施层面 1 提升硬件资源性能一从入口防火墙到后端 web server 均使用更高性能的硬件资源 2 多域名—DNS轮询A记录解析 3 多入口一将A记录解析到多个公网IP入口 4 多机房一同城+异地容灾 5 CDN(Content Delivery Network)-基于GSLB ...
分类:
其他好文 时间:
2021-04-21 12:11:18
阅读次数:
0