码迷,mamicode.com
首页 >  
搜索关键字:shell awk cat    ( 54363个结果)
springboot与jedis的整合
1、创建SpringBoot工程 使用idea自带的Spring Initializr创建一个基本的SpringBoot工程。 2、修改POM文件 工程创建成功后,修改pom文件,添加所需的jar包 <dependency> <groupId>org.springframework.boot</gr ...
分类:编程语言   时间:2020-06-09 23:33:06    阅读次数:116
linux /proc/stat
root@vmuser:~# cat /proc/stat cpu 254339 26981 244855 60357611 81274 0 5266 4371 0 0cpu0 254339 26981 244855 60357611 81274 0 5266 4371 0 0intr 367409 ...
分类:系统相关   时间:2020-06-09 20:49:24    阅读次数:70
小程序 解决同行cell中 多点击事件冲突
在大cell中有一个小view cell有点击事件,view也有点击事件,这个时候点击view触发view的事件的同时,也会触发cell的点击事件 解决方法: 在view中使用catchtap添加事件 同时设置 hover-stop-propagation="true" <image class=" ...
分类:微信   时间:2020-06-09 20:49:12    阅读次数:103
Auth模块
""" 其实我们在创建好一个django项目之后直接执行数据库迁移命令会自动生成很多表 django_session auth_user django在启动之后就可以直接访问admin路由,需要输入用户名和密码,数据参考的就是auth_user表,并且还必须是管理员用户才能进入 创建超级用户(管理员 ...
分类:其他好文   时间:2020-06-09 20:42:16    阅读次数:54
linux:shell
关于shell 什么是shell? shell,是用c编写的,既是命令语言,也是一种程序设计语言 shell指一种应用程序,该程序提供一个界面,用户可通过该界面访问操作系统 什么是脚本? 脚本是一条文字命令,可以编辑的 常见的脚本:js(前端开发,浏览器解释)、asp、jsp【后端开发,服务器解释】 ...
分类:系统相关   时间:2020-06-09 20:40:51    阅读次数:80
Flink DataStream API
1. API基本概念 Flink程序可以对分布式集合进行转换(例如: filtering, mapping, updating state, joining, grouping, defining windows, aggregating) 集合最初是从源创建的(例如,从文件、kafka主题或本地内 ...
分类:Windows程序   时间:2020-06-09 20:40:32    阅读次数:95
ubuntu etho0 up cron
sudo touch if_interface_up.shsudo chmod 777 if_interface_up.sh sudo vi if_interface_up.sh #!/bin/bashwhile true do result=`cat /sys/class/net/enp0/car ...
分类:系统相关   时间:2020-06-09 20:17:09    阅读次数:66
shell脚本字符串截取
假设我们定义了一个变量为: file=/dir1/dir2/dir3/my.file.txt 可以用${ }分别替换得到不同的值: ${file#*/}:删掉第一个 / 及其左边的字符串:dir1/dir2/dir3/my.file.txt ${file##*/}:删掉最后一个 / 及其左边的字符串 ...
分类:系统相关   时间:2020-06-09 18:50:34    阅读次数:74
linux shell 命令readlink, basename, declare -A使用
basename readlink declare -A x //bash 4.0版本后支持此功能 ? test readlink -f test.sh //输出文件的绝对路径/home/pandx/my_useful_shell/test/test.sh ? test basename test. ...
分类:系统相关   时间:2020-06-09 18:46:33    阅读次数:111
收集服务器基本信息
#!/usr/bin/python # coding: utf-8 import re, os DiamondPath = "cat /root/diamond-v1.100.0010-SNAPSHOT/diamond.yaml" user = "ubuntu" keyPath = "1.key" ...
分类:其他好文   时间:2020-06-09 17:00:57    阅读次数:78
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!