ps -ef | grep httpd | wc -l
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
git init # 初始化本地git仓库(创建新仓库) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "xxx@xxx.com" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 |
就是通过一个bit位来表示某个元素对应的值或者状态,其中的key就是对应元素本身。我们知道8个bit可以组成一个Byte,所以bitmap本身会极大的节省储存空间。
Redis从2.2.0版本开始新增了setbit,getbit,bitcount等几个bitmap相关命令。虽然是新命令,但是并没有新增新的数据类型,因为setbit等命令只不过是在set上的扩展。
BitMap 就是通过一个 bit 位来表示某个元素对应的值或者状态, 其中的 key 就是对应元素本身,实际上底层也是通过对字符串的操作来实现。Redis 从 2.2 版本之后新增了setbit, getbit, bitcount 等几个 bitmap 相关命令。虽然是新命令,但是本身都是对字符串的操作
添加网站
ip addr add 192.168.0.77/24 dev eth0
cat /etc/systemconfig/network-scripts/ifcfg-eht0
BOOTPROTO=static
IPADDR=172.18.14.223
PREFIX=24
chatops: docker run --name=errbot -v /home/errbot:/errbot -d dustise/errbot-image
_ssh()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
#!/bin/bash | |
time=$(date "+%Y-%m-%d %H:%M:%S") | |
cd /home/deploy/laradock | |
docker-compose exec workspace mysqldump -h mysql -u root --password=root default | gzip > /home/backup/db-$(date +\%F-\%T).sql.gz |
#!/bin/bash | |
# chkconfig: 2345 20 80 | |
# description: Description comes here.... | |
# Source function library. | |
. /etc/init.d/functions | |
start() { | |
# code to start app comes here | |
# example: daemon program_name & |
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Here we write upgrading notes for brands. It's a team effort to make them as
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" | |
"strconv" |