问题原因:raw.githubusercontent.com网站不能访问,需要修改hosts文件,添加新网站的ip地址 1.打开终端,输入gedit /etc/hosts。 2.在打开的文本最后添加:199.232.28.133 raw.githubusercontent.com。 3.保存并退出, ...
分类:
其他好文 时间:
2020-07-15 23:33:12
阅读次数:
239
51node 上的一道题目 01 串[1] 给定一个 01 串 S,求出它的一个尽可能长的子串 S[i..j],满足存在一个位置 i<=x <j, S[i..x]中 0 比 1 多,而 S[x + 1..j]中 1 比 0 多。求满足条件的最长子串长度。 输入 一行包含一个只由 0 和 1 构成的字 ...
分类:
其他好文 时间:
2020-07-14 20:09:57
阅读次数:
65
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 来自于知乎大神: 金牛肖马 ...
分类:
系统相关 时间:
2020-07-13 18:03:24
阅读次数:
83
项目中是有多个集群的,现在存在一个是:在切换web集群时,如何切换HangFire的周期性任务。 先采取的解决办法是: 每个集群分一个队列,在周期性任务入队时分配当前web集群的集群id单做队列名称。 之前已存在的周期性任务,在其入队时修正到正确的集群执行 通过BackgroundJobServer ...
分类:
其他好文 时间:
2020-07-13 15:12:13
阅读次数:
66
安装 homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 常用命令 安装软件:brew install 软件名,例:brew insta ...
分类:
系统相关 时间:
2020-07-13 13:51:28
阅读次数:
155
构建项目 将vue项目打包,打包后会在项目根路径下生成一个dist文件,这个就是需要发布到nginx服务器上的静态页面。(不同项目配置的打包命令可能稍有不同) npm run dev 具体看的脚手架 安装Nginx 1、打开terminal终端 2、安装Command Line Tools xcod ...
分类:
系统相关 时间:
2020-07-13 11:38:24
阅读次数:
147
python语言: import re while True: try: line = raw_input() li = re.findall(r'[a-zA-z0-9 ]', line) s = ''.join(set(li)) dic = {} for x in s: dic[x] = line ...
分类:
编程语言 时间:
2020-07-12 22:08:22
阅读次数:
82
curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/bashrc_Core_Shell -o ~/.bashrc_Core_Shell && . ~/.bashrc_Core_Shell && g ...
分类:
Web程序 时间:
2020-07-12 17:18:12
阅读次数:
111
sersync同步实战 sersync是基于inotify和srync的二次开发,代码托管在github上面在rsync的客户端上安装,下载地址: https://raw.githubusercontent.com/wsgzao/sersync/master/sersync2.5.4_64bit_b ...
分类:
其他好文 时间:
2020-07-12 12:34:29
阅读次数:
116
#一.要求 web01,web02中的目录挂载到nfs的目录下下,并且把nfs的目录实时同步到backup中。 | 主机名 | 外网IP | 内网IP | 作用 | 要部署服务 | | | | | | | | web01 | 172.16.1.7 | 10.0.0.7 | rsync和nfs的客户端 ...
分类:
其他好文 时间:
2020-07-10 20:56:37
阅读次数:
75