vuex 中dispatch 和 commit 的用法和区别

import { forEach, isContains } from '@/libs/tools' const state = { clusterId: null, sel…

nginx-supervisor-tornado配置

[group:tornadoes] programs=tornado-8000,tornado-8001,tornado-8002,tornado-8003 [program:tornado-800…

bash字符串操作以及shell中$(( ))与$( )还有${ }的区别

介绍下Shell中的${}、##和%%使用范例,本文给出了不同情况下得到的结果。 假设定义了一个变量为: 代码如下: file=/dir1/dir2/dir3/my.file.txt 可以用${ }分…

nginx-geoip-module

geoip_country /opt/geoip/GeoIP.dat; geoip_city /opt/geoip/GeoLiteCity.dat; serve…

nginx-rtmp-module

http{} # RMTP的服务器配置信息 rtmp { server { listen 1935; #推流的监听端口 …

while 读文件一行问题

#!/usr/bin/env bash FILE=$1 while read LINE;do ip=`echo $LINE |awk '{print $1}'` asse…

简单的启动init脚本模版

#!/bin/sh # # Prometheus Start Script # # chkconfig: 235 80 70 # description: Starts, stops prometh…

Python3的concurrent.futures模块

import concurrent.futures import math PRIMES = [ 112272535095293, 112582705942171, 1122…

python3标准库httpclient使用

#coding=utf-8 import http.client, urllib.parse import http.client, urllib.parse import random USER_…

基于Vue2.0的分页

🔗 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> &…