ngrok

2018-05-18 00:00:00   ngrok 内网穿透   内网 ngrok  

内网穿透

ngrok by @inconshreveable  
Session Status                online
Account                       yongze (Plan: Free)
Version                       2.2.8
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://b0cecd04.ngrok.io -> localhost:80
Forwarding                    https://b0cecd04.ngrok.io -> localhost:80

Connections                   ttl     opn     rt1     rt5     p50     p90
                              3       0       0.00    0.01    0.65    98.26

HTTP Requests
-------------

GET /                          200 OK
GET /                          200 OK
GET /                          200 OK
GET /favicon.ico               404 Not Found
GET /                          200 OK


Java使用HttpUrlConnection下载网络文件

2018-05-11 09:47:00   朋也   java学习笔记   下载 http  

单线程下载

读取文件长度

防止文件过大,建议用long接收

HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
long contentLength = connection.getContentLength();

egg.js开发博客

2018-04-20 16:34:44   朋也   egg.js学习笔记   egg.js  

业余时间学了一下egg.js,并开发了个非常简单的博客,实现了 CRUD 功能,总结一下

安装

$ npm i egg-init -g
$ egg-init eblog --type=simple
$ cd eblog
$ yarn install

使用axios一次上传多张图片,自带上传进度

2018-04-16 16:41:44   朋也   javascript学习笔记   axios  

引入JS

国内就用 https://bootcdn.cn 上找一下axios的链接就可以了

用法

<input type="file" multiple accept="image/jpeg,image/png," name="multipleFile" id="multipleFile"/>

在非NodeJS项目里使用Vue

2018-04-16 16:08:44   朋也   vue.js学习笔记   vue.js  

背景: 作为一个后台开发人员,有时候想用一下前端的框架来构建页面,总结一下在非NodeJS项目里用Vue的方法

引入JS

国内就用 https://bootcdn.cn 上找一下vue的链接就可以了

更新zsh

2018-04-11 00:00:00     mac  

start

upgrade_oh_my_zsh

主题

 vim  ~/.zshrc
 
 ###
 
 ZSH_THEME="muse"

主题链接

centos yum

2018-04-11 00:00:00   centos   yum linux shell  

yum 资源

    [root@iZm5e0o3yq2o3sc6vc3hu0Z yum.repos.d]# ll
    总用量 52
    drwxr-xr-x 2 root root 4096 2月  13 2017 backup
    -r--r--r-- 1 root root 1887 2月  13 2017 CentOS-Base.repo
    -rw-r--r-- 1 root root 1309 8月  30 2017 CentOS-CR.repo
    -rw-r--r-- 1 root root  649 8月  30 2017 CentOS-Debuginfo.repo
    -rw-r--r-- 1 root root  314 8月  30 2017 CentOS-fasttrack.repo
    -rw-r--r-- 1 root root  630 8月  30 2017 CentOS-Media.repo
    -rw-r--r-- 1 root root 1331 8月  30 2017 CentOS-Sources.repo
    -rw-r--r-- 1 root root 3830 8月  30 2017 CentOS-Vault.repo
    -rw-r--r-- 1 root root  175 12月 28 16:09 elastic-beats.repo
    -r--r--r-- 1 root root  825 2月  13 2017 epel.repo
    -rw-r--r-- 1 root root  951 10月  3 2017 epel.repo.rpmnew
    -rw-r--r-- 1 root root 1050 10月  3 2017 epel-testing.repo
    -rw-r--r-- 1 root root  267 5月  23 2017 openresty.repo
    [root@iZm5e0o3yq2o3sc6vc3hu0Z yum.repos.d]# pwd
    /etc/yum.repos.d


       5 / 16