06 2020 档案
摘要:git clone https://github.com/zh-google-styleguide/zh-google-styleguide.git 上面下载的代码分格是中文的 Google C++ 编码规范(英文)在线地址:http://google-styleguide.googlecode.c
阅读全文
摘要:https://blog.csdn.net/ustbyangcheng/article/details/8689632 sudo apt-get build-dep openscenegraph #安装必备依赖库 sudo apt-get install mesa-common-dev freegl
阅读全文
摘要:小红伞免费版 https://www.iavira.com/free.html
阅读全文
摘要:新建脚本,并命名为welcome.sh,将如下内容写入脚本中。#!/bin/bashchmod ugo+x welcome.shcd ~sudo apt-get updatesudo apt-get install cowsaysudo apt-get install fortunegit clon
阅读全文
摘要:https://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git/tree/drivers/target?id=HEAD http://linux-iscsi.org/wiki/Target
阅读全文
摘要:#!/bin/bashwhile truedo date; lsof -n|awk '{print $2}'|sort|uniq -c |sort -nr|head -3 echo " "; echo " "; sleep 5done 每隔5秒输出一次系统描述符数量最多的前3个进程。
阅读全文
摘要:当一个日志文件过大时,使用split进行分割会很有用。 split -b 20M source dst_prefix //把文件source切割为以dst_prefix为文件名前缀的小文件,每个小文件大小为20M。
阅读全文
摘要:sudo pip install bashate ➜ tools git:(master) bashate -v install_modules_acceptance.sh Running bashate on install_modules_acceptance.shinstall_modules
阅读全文
摘要:ROOT=$(readlink -fn $(dirname $0)/.. )find $ROOT -not -wholename \*.tox/\* -and \( -name \*.sh -or -name \*rc -or -name functions\* \) -print0 | xargs
阅读全文
摘要:mysql -u$DB_USER -p$DB_PASS reviewdb -e "DELETE FROM account_project_watches WHERE project_name='openstack/openstack-ci';"mysql -u$DB_USER -p$DB_PASS
阅读全文
摘要:https://www.linuxidc.com/Linux/2017-08/146610.htm 1.3 csplit命令 split只能按行或按照大小进行切分,无法按段落切分。csplit是split的变体,功能更多,它主要是按指定上下文按段落分割文件。 csplit [OPTION]... F
阅读全文
摘要:删除列 1.光标定位到要操作的地方。 2.CTRL+v 进入“可视 块”模式,选取这一列操作多少行。 3.d 删除。 插入列 插入操作的话知识稍有区别。例如我们在每一行前都插入"() ": 1.光标定位到要操作的地方。 2.CTRL+v 进入“可视 块”模式,选取这一列操作多少行。 3.SHIFT+
阅读全文
摘要:#!/bin/bash# Copyright 2013 OpenStack Foundation## Licensed under the Apache License, Version 2.0 (the "License"); you may# not use this file except i
阅读全文
摘要:https://www.cnblogs.com/kelamoyujuzhen/p/10089454.html 简介 rsync是远程(或本地)复制和同步文件最常用的命令。 借助rsync命令,你可以跨目录,跨磁盘和跨网络远程与本地数据进行复制和同步。举例来说:在两台Linux主机之间进行数据备份和镜
阅读全文
摘要:https://www.cnblogs.com/agostop/archive/2012/03/09/2387775.html https://blog.csdn.net/weixin_30825581/article/details/98601867 https://www.ibm.com/dev
阅读全文
摘要:来自mount_volume.sh文件https://opendev.org/opendev/system-config DEVICE=$1 MOUNT_PATH=$2 FS_LABEL=$3 parted --script $DEVICE mklabel msdos mkpart primary
阅读全文
摘要:parted --script $DEVICE mklabel msdos mkpart primary 0% 100% set 1 lvm on parted [options] [device [command [options...]...]] -s, --script never promp
阅读全文
摘要:blkid 查看块设备的文件系统类型、LABEL、UUID等信息 补充说明 在Linux下可以使用 blkid命令 对查询设备上所采用文件系统类型进行查询。blkid主要用来对系统的块设备(包括交换分区)所使用的文件系统类型、LABEL、UUID等信息进行查询。要使用这个命令必须安装e2fsprog
阅读全文
摘要:以下命令学习自https://opendev.org/opendev/system-config basename readlink declare -A x //bash 4.0版本后支持此功能 nc date timeout ➜ test readlink -f test.sh //输出文件的绝
阅读全文
摘要:括号 括号一般在命令替换的时候使用。 双括号 使用双括号,在比较过程中使用高级数学表达式 方括号 方括号定义了测试条件。 第一个方括号后和第二个方括号前都要加一个空格,否则会报错。 双方括号 双方括号提供了字符串比较的高级特性。 括号中可以定义一些正则表达式来匹配字符串 注意不是所有的shell都支
阅读全文
摘要:发行版; 发布版; Distro specific puppet installs 发布版本指定的puppet安装
阅读全文
摘要:It's not a drop-in replacement, and, in fact, JDOM and DOM can happily coexist. 它并不是一个简单的替代品,实际上JDOM和DOM能够愉快地并存。 dnf is a drop-in replacement for yum
阅读全文
摘要:针对OpenStack N版测试,存储使用的是共享存储。 发生磁盘扩展的程序代码在/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py: finish_migration函数,具体如下: 7353 # Resize root dis
阅读全文
摘要:wget https://silenceshell-1255345740.cos.ap-shanghai.myqcloud.com/hcache chmod +x hcache mv hcache /usr/local/bin hcache -top 3 至于为何buff/cache会占用高,说明系
阅读全文
摘要:编辑~/.wine/system.reg中的下面部分 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]"Lucida Sans Unicode"="simsun.ttc""Mic
阅读全文
摘要:出现这个问题的原因是本机没fibre channel, 代码调用流程如下: 1 def pre_live_migration(self, context, instance, block_migration, disk, migrate_data):2 connector = self.driver
阅读全文