这是一篇受密码保护的文章,您需要提供访问密码:

Read more 要查看留言请输入您的密码。
K6IXATEF43-eyJsaWNlbnNlSWQiOiJLNklYQVRFRjQzIiwibGljZW5zZWVOYW1lIjoi5o6I5p2D5Luj55CG5ZWGOiBodHRwOi8vaWRlYS5oay5jbiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNi0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNi0wNCJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNi0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNi0wNCJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDYtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDYtMDQifSx7ImNvZGUiOiJQUyIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDYtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDYtMDQifSx7ImNvZGUiOiJHTyIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDYtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDYtMDQifSx7ImNvZGUiOiJETSIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDYtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDYtMDQifSx7ImNvZGUiOiJDTCIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDYtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDYtMDQifSx7ImNvZGUiOiJSUzAiLCJmYWxsYmFja0RhdGUiOiIyMDE5LTA2LTA1IiwicGFpZFVwVG8iOiIyMDIwLTA2LTA0In0seyJjb2RlIjoiUkMiLCJmYWxsYmFja0RhdGUiOiIyMDE5LTA2LTA1IiwicGF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ve6euqsrFicYkIIuUu4zYPndJwfe0YkS5nY72SHnNdbPhEnN8wcB2Kz+OIG0lih3yz5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow== 

 

以前go的包管理工具用的gopath

现在一般改用mod了

以前我的环境变量里面的gopath为C:\Go\src

用mod管理包后goland里面包名一直是红色的,导致无法做到代码提示,但是却能正常运行

后来发现拉取下来的包在C:\Go\src\src下

不知为何系统自动给我多加了一层src,估计是和系统默认gopath冲突了

此时只需要把gopath改为其他任意路径就ok(当然不能和goroot相同)最好就不要放c盘啦~

这是一篇受密码保护的文章,您需要提供访问密码:

Read more 要查看留言请输入您的密码。

1.先找到改端口对应的pid

netstat -ano|findstr “443”

2.通过pid找到程序

tasklist|findstr “9527”

linux下文件的复制、移动与删除命令为:cp,mv,rm 一、文件复制命令cp 命令格式:cp [-adfilprsu] 源文件(source) 目标文件(destination) cp [option] source1 source2 source3 …  directory 参数说明: -a:是指archive的意思,也说是指复制所有的目录 -d:若源文件为连接文件(link file),则复制连接文件属性而非文件本身 -f:强制(force),若有重复或其它疑问时,不会询问用户,而强制复制 -i:若目标文件(destination)已存在,在覆盖时会先询问是否真的操作 -l:建立硬连接(hard link)的连接文件,而非复制文件本身 -p:与文件的属性一起复制,而非使用默认属性 -r:递归复制,用于目录的复制操作 -s:复制成符号连接文件(symbolic link),即“快捷方式”文件 -u:若目标文件比源文件旧,更新目标文件 如将/test1目录下的file1复制到/test3目录,并将文件名改为file2,可输入以下命令: cp /test1/file1 /test3/file2

二、文件移动命令mv 命令格式:mv [-fiv] source destination 参数说明: -f:force,强制直接移动而不询问 -i:若目标文件(destination)已经存在,就会询问是否覆盖 -u:若目标文件已经存在,且源文件比较新,才会更新 如将/test1目录下的file1复制到/test3 目录,并将文件名改为file2,可输入以下命令: mv /test1/file1 /test3/file2

三、文件删除命令rm 命令格式:rm [fir] 文件或目录 参数说明: -f:强制删除 -i:交互模式,在删除前询问用户是否操作 -r:递归删除,常用在目录的删除 如删除/test目录下的file1文件,可以输入以下命令: rm -i /test/file1

ss

By in 学习

为了避免之后某页面被屏蔽,下文内容为直接复制的,点击查看原链接

1.服务器端下载

[root@nginx-m ~]# wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
--2018-10-23 14:02:16--  https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.76.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46141 (45K) [text/plain]
Saving to: ‘shadowsocks-all.sh’

100%[=====================================================================>] 46,141      --.-K/s   in 0.004s  

2018-10-23 14:02:16 (11.8 MB/s) - ‘shadowsocks-all.sh’ saved [46141/46141]

[root@nginx-m ~]# chmod +x shadowsocks-all.sh

2.服务器端安装

[root@nginx-m ~]# ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
Which Shadowsocks server you'd select:  #选择安装的版本
1) Shadowsocks-Python
2) ShadowsocksR
3) Shadowsocks-Go
4) Shadowsocks-libev
Please enter a number (Default Shadowsocks-Python):1    #默认1) Shadowsocks-Python

You choose = Shadowsocks-Python

Please enter password for Shadowsocks-Python        #shadowsock客户端使用的密码
(Default password: teddysun.com):centos

password = centos

Please enter a port for Shadowsocks-Python [1-65535]    #服务端监听的端口
(Default port: 17392):10086

port = 10086

Please select stream cipher for Shadowsocks-Python:     #选择加密算法
1) aes-256-gcm
2) aes-192-gcm
3) aes-128-gcm
4) aes-256-ctr
5) aes-192-ctr
6) aes-128-ctr
7) aes-256-cfb
8) aes-192-cfb
9) aes-128-cfb
10) camellia-128-cfb
11) camellia-192-cfb
12) camellia-256-cfb
13) xchacha20-ietf-poly1305
14) chacha20-ietf-poly1305
15) chacha20-ietf
16) chacha20
17) salsa20
18) rc4-md5
Which cipher you'd select(Default: aes-256-gcm):12

cipher = aes-256-cfb

Press any key to start...or Press Ctrl+C to cancel      #按任意键继续,Ctrl+C取消

3.安装完成

INFO: loading config from /etc/shadowsocks-python/config.json
2018-10-23 14:05:43 INFO     loading libcrypto from libcrypto.so.10
2018-10-23 14:05:43 INFO     loading libsodium from libsodium.so.23
Starting Shadowsocks success

Congratulations, Shadowsocks-Python server install completed!
Your Server IP        :  XX.XX.XXX.XX       #服务端地址
Your Server Port      :  10086              #服务端监听端口
Your Password         :  centos             #客户端访问该服务时使用的密码
Your Encryption Method:  aes-256-cfb        #加密算法

Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients)
 ss://YWVzLTI1Ni1nY206Y2VudG9zQDQ3Ljc1LjEyOS43OToxMDA4Ng== 
Your QR Code has been saved as a PNG file path:
 /root/shadowsocks_python_qr.png 

Welcome to visit: https://teddysun.com/486.html
Enjoy it!

4.启动

/etc/init.d/shadowsocks-python start | stop | restart | status

接下来就自己下个小飞机就能用了

有时候windows下有大文件需要被删除,移动到回收站比较慢,而且删到一般还可能说你权限不足,导致删了几分钟都白删了
可以采用以下命令行的方法删除,速度快又简单
1.安装rimraf
cnpm install rimraf -g
2.删除某目录
rimraf 目录

百度许久都未找到答案,在官方群提问后无人回答,最后只有‘曲线救国’了

将数组的末项全部提到第一项,兼容多级

// 数据样式
[
 {
 label: '科目编码',
 prop: '',
 width: '',
 children: [{
 label: '类',
 prop: 'l',
 width: '35px',
 }, {
 label: '款',
 prop: 'k',
 width: '35px',
 }, {
 label: '项',
 prop: 'x',
 width: '35px',
 }]
 }, {
 label: '单位编码',
 prop: '单位编码',
 width: '',
 }, {
 label: '单位名称(科目)',
 prop: '单位名称(科目)',
 width: '',
 }
]
// 末项变首项

import $_ from 'lodash'

fun (r) {
    var that = this
    $_.forEach(r,function (v,k) {
        if (v['children']) {
         	r[k]['children'] = this.fun (v['children'])
        }
    })
    r.unshift(r.pop())
    return r
}

 

### 1、Mac 下编译 Linux 和 Windows 64位可执行程序
* CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
* CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go

### 2、Linux 下编译 Mac 和 Windows 64位可执行程序
* CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go
* CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go

### 3、Windows 下编译 Mac 和 Linux 64位可执行程序
* SET CGO_ENABLED=0
  SET GOOS=darwin
  SET GOARCH=amd64
  go build main.go
* SET CGO_ENABLED=0
  SET GOOS=linux
  SET GOARCH=amd64
  go build main.go

 

Top