郭爽 blog

颤巍巍,牛哄哄


  • 首页

  • 归档

  • 标签

mac shell find .7z and calculate size

发表于 2018-10-07

查找当前目录下 所有.7z 文件,顺便看一下大小

1
find . -name '*.7z' | xargs du -sch

change last modified time

发表于 2018-08-18

“摸”一下,就好

1
touch abc

或者 指定日期 2018 0712 12:00

1
touch -mt 201807121200  abc/

docker nginx

发表于 2018-05-14

需要一个 autoindex 的 www。先建立一个 guoshuang_labs.conf

1
2
3
4
5
6
7
8
9
10
server {
listen 80;
server_name labs.guoshuang.com;
charset utf-8;
index index.html index.htm index.php;
root /usr/share/nginx/html/guoshuang_labs/;
location / {
autoindex on;
}
}

然后 copy 到 docker nginx 容器

1
docker cp guoshuang_labs.conf nginx:/etc/nginx/conf.d/guoshuang_labs.conf

重启

1
docker retart nginx

更多参考


1
2
3
4
5
6
# 查找镜像
docker search nginx
# 拉取镜像
docker pull nginx
# 查看本地镜像
docker images
1
docker cp nginx:/etc/nginx/conf.d/guoshuang_demo.conf guoshuang_demo.conf

进入容器

1
docker exec -it nginx bash

autoindex

1
2
3
4
5
6
location /somedirectory/ {
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
}

autoindex_exact_size; – This directive specifies whether Nginx should display the exact file sizes of the output in the directory index or simply round to the nearest KB, MB, or GB. This directive has 2 options: on | off.

autoindex_format; – This directive specifies what format the Nginx index listing should be outputted to. This directive has 4 options: html | xml | json | jsonp.

autoindex_localtime; – This directive specifies whether the times for the directory listing should be outputted to local time or UTC. This directive has 2 options: on | off.

ol map

发表于 2018-03-29
1
this.map.getView().fit(c.extent, this.map.getSize());


var bb = bm.map.getView().calculateExtent(bm.map.getSize());
console.log(bb);
bm.map.getView().fit(bb, bm.map.getSize());

1
ol.extent.getIntersection(extent1, extent2,opt_extent)
1
bm.map.getView().fit([109.88221343277776, 33.515607112547585, 111.90703702710506, 34.256566724741006], bm.map.getSize());

blue is hit

发表于 2018-02-11

老旧svdvdkkkkkk

/usr/share/nginx/html

Wltyxny1bw 11

sss

web indexdb

发表于 2017-04-19

test

blue is sb

查找 apache httpd.conf 位置

发表于 2017-04-18
1
find / -name 'httpd.conf' -print
1
(/usr/sbin)apachectl -V

Hello World

发表于 2015-12-17

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

test

发表于 2015-12-17

test

hi ,ksdfhakhfwh fw
fwef
we

123
guoshuang

guoshuang

29 日志
16 标签
RSS
© 2019 guoshuang
由 Hexo 强力驱动
主题 - NexT.Pisces