上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 55 下一页
摘要: class Genre: def __init__(self,title,mold): self.title=title self.mold=mold def __get__(self,instance,owner): print('__get__',self,instance,owner) ret 阅读全文
posted @ 2020-11-28 19:55 ascertain 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #/bin/env sh #set -e # errexit #cwRsyncServer <=> case sensitive(module) #cwRsyncClinet <=> case insensitive export LANG=zh_CN.utf8 ml_slb=lb-uf611bih 阅读全文
posted @ 2020-11-27 17:09 ascertain 阅读(104) 评论(0) 推荐(0) 编辑
摘要: echo "which package to retroversio?:disabled" #ssh administrator@172.16.20.106 "ssh administrator@172.16.20.106 C:\\Progra~1\\git\\bin\\bash -c /c/scr 阅读全文
posted @ 2020-11-27 17:00 ascertain 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Active Choice plug-in会生成三种参数类型: 1,Active Choices Parameter(主动选择参数) Active Choices参数使用Groovy脚本或Scriptler目录中的脚本动态生成构建参数的值选项列表。 2,Active Choices Reactive 阅读全文
posted @ 2020-11-27 16:53 ascertain 阅读(5879) 评论(0) 推荐(1) 编辑
摘要: 只列出目录: ll -F | grep '/$' ls -F 选项append indicator ( one of */=>@| ) to entries,目录会被追加 "/" 后缀* 是可执行文件suffix= socket文件| FIFO管道文件> 进程间通信设备 ll | grep '^d' 阅读全文
posted @ 2020-11-27 16:01 ascertain 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 安装32位rar: 下载至/usr/src目录 wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz -directory-prefix=/usr/src 解压 tar xzvf rarlinux-3.8.0.tar.gz 其已经是编译完成的包,M 阅读全文
posted @ 2020-11-27 14:18 ascertain 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 7z的选项设计实在让人无语,只能说太难用 Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] Command: a 压缩 7z a bb.7z /etc/security # 带security目录 7z a bb 阅读全文
posted @ 2020-11-25 19:59 ascertain 阅读(676) 评论(0) 推荐(0) 编辑
摘要: shell没有专门的时间转换函数,更没有oop之类的类方法,不过操作时间还是很简单的 date:date 直接后跟格式化字符串默认显示当前时区的当前时间 %a abbreviated weekday 简写的weekday %A full weekday name 全写weekday %b abbre 阅读全文
posted @ 2020-11-25 14:40 ascertain 阅读(470) 评论(0) 推荐(0) 编辑
摘要: Cannot assign requested addressclient频繁连接server,每次都在很短时间内结束,产生大量TIME_WAIT,导致端口耗尽,新的连接无法绑定端口,出现 "Cannot assign requested address"解决方案 sysctl --write ne 阅读全文
posted @ 2020-11-25 11:25 ascertain 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 首先,Linux比其它操作系统更稳定更安全。理论上Linux是有可能被病毒侵害的。但实际上 Linux机器几乎不可能遭受病毒的攻击。所以我这里的问题是为什么要为Linux准备防病毒软件,为了更好理解,我准备了以下理由: Linux平台安装杀毒软件的原因: 从Linux平台扫描Windows驱动 通过 阅读全文
posted @ 2020-11-25 09:53 ascertain 阅读(4551) 评论(0) 推荐(0) 编辑
摘要: echo "background-image: url(/media/images/index/im2.jpg);"|grep -oP '(?<=url\()[^)]+' 采用负向断言 echo "background-image: url(/media/images/index/im2.jpg); 阅读全文
posted @ 2020-11-24 15:32 ascertain 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 开发的时候碰到如下的错误(PHP-FPM+apache),所以想好好理解下Segmentation fault. 参考了文章 Segmentation fault到底是何方妖孽 维基百科的解释如下: 存储器区块错误(英语:Segmentation fault,经常被缩写为segfault),又译为存 阅读全文
posted @ 2020-11-23 19:20 ascertain 阅读(3283) 评论(0) 推荐(0) 编辑
摘要: 报错: 置foreign_key_checks变量为0 set @@session.foreign_key_checks=0 select @@session.foreign_key_checks; 比对两张表 show full columns from dept_emp; show full c 阅读全文
posted @ 2020-11-21 14:14 ascertain 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 准备 首先在GitHub上下载DokanSetup-1.0.5.1000和WinSSHFS-1.6.1.13-devel注意:Dokan不能使用最新的版本,得使用1.0.5版本。要不win-sshfs会报Dokan版本错误的问题。(win10版本) 安装 按照提示,安装Dokan和win-sshfs 阅读全文
posted @ 2020-11-19 18:05 ascertain 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 开始会有三个选项 选择Basic Parameter TypesExtended choice parameters,扩展选项插件 勾选Quote Values后,变量是有双引号的Multi Select: Radio Buttons:相当于单选,但是比Single Select直观 Check B 阅读全文
posted @ 2020-11-16 16:02 ascertain 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 试了Windows & Linux 全部失败,按照网上的教程:1.更改Jenkins根目录的hudson.model.UpdateCenter.xml <?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id>default</id> <!- 阅读全文
posted @ 2020-11-16 15:26 ascertain 阅读(89) 评论(0) 推荐(0) 编辑
摘要: class B: def __setattr__(self,key,value): pass raise NotImplementedError 类方法__setattr__覆盖父类方法后,如果为pass, raise NotImplementedError之类的,则实例不能设置任何属性 pass不 阅读全文
posted @ 2020-11-14 13:55 ascertain 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Linux: 文件分割 split: Usage: split [options] [Input] [Prefix] 默认prefix为x,需要指定Prefix来改写前缀 --suffix-length=N 后缀长度,默认为2 --additional-suffix=SUFFIX 每个子文件最后附加 阅读全文
posted @ 2020-11-12 19:11 ascertain 阅读(306) 评论(0) 推荐(0) 编辑
摘要: import logging,traceback,sys logging.basicConfig(level=logging.WARNING,filename='c:/uiop.txt',filemode='a', format='%(lineno)s %(pathname)s %(asctime) 阅读全文
posted @ 2020-11-12 17:04 ascertain 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 判断list包含关系 a = [1, 2, 3, 4, 5] b = [3, 4, 5, 3] if [v for v in b if v not in a]: print('a doesn\'t comprise b') else: print('a comprise b') 采用列表解析式 a 阅读全文
posted @ 2020-11-11 14:54 ascertain 阅读(72) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 55 下一页