科学上网

持续更新,Shadowsocks下载 2016最新版(影梭,小飞机客户端)Shadowsocks(中文名称:影梭)是一个安全的socks5代理,用于保护网络流量,是一个开源项目。 特性快速(异步I/O和事件驱动程序)安全(所有的流量都经过加密算法加密,支持自定义算法)支持移动客户端(专为移动设备和无线网络优化)跨平台(可运行于包括PC,Mac,手机(Android和iOS)和路由器(OpenWrt)在内的多种平台上) 开源易于维护按下Ctrl点击->github地址

Continue Reading →

socks5,socks4,http,vpn 代理是怎么回事

一、什么是代理服务器? 代理服务器英文全称是Proxy Server,其功能就是代理网络用户去取得网络信息。形象的说:它是网络信息的中转站。 在一般情况下,我们使用网络浏览器直接去连接其他Internet站点取得网络信息时,需送出Request信号来得到回答,然后对方再把信息以bit方式传送回来。代理服务器是介于浏览器和Web服务器之间的一台服务器,有了它之后,浏览器不是直接到Web服务器去取回网页而是向代理服务器发出请求, Request信号会先送到代理服务器,由代理服务器来取回浏览器所需要的信息并传送给你的浏览器。而且,大部分代理服务器都具有缓冲的功能,就好象一个大的Cache,它有很大的存储空间,它不断将新取得数据储存到它本机的存储器上,如果浏览器所请求的数据在它本机的存储器上已经存在而且是最新的,那么它就不重新从Web服务器取数据,而直接将存储器上的数据传送给用户的浏览器,这样就能显著提高浏览速度和效率。 更重要的是:Proxy Server (代理服务器)是 Internet链路级网关所提供的一种重要的安全功能,它的工作主要在开放系统互联 (OSI) 模型的对话层。

Continue Reading →

Hexo搭建个人博客及NexT主题配置与优化

命令行帮助

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
D:\Github\blog-hexo>hexo -help
Usage: hexo <command>

Commands:
clean Removed generated files and cache.
config Get or set configurations.
deploy Deploy your website.
generate Generate static files.
help Get help on a command.
init Create a new Hexo folder.
list List the information of the site
migrate Migrate your site from other system to Hexo.
new Create a new post.
publish Moves a draft post from _drafts to _posts folder.
render Render files with renderer plugins.
server Start the server.
version Display version information.

Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/
  • 常用命令:

    hexo help #查看帮助
    hexo init #初始化一个目录
    hexo new "postName" #新建文章
    hexo new page "pageName" #新建页面
    hexo generate #生成网页,可以在 public 目录查看整个网站的文件
    hexo server #本地预览,'Ctrl+C'关闭
    hexo deploy #部署.deploy目录
    hexo clean #清除缓存,强烈建议每次执行命令前先清理缓存,每次部署前先删除 .deploy 文件夹
    
    简写:
    hexo n == hexo new
    hexo g == hexo generate
    hexo s == hexo server
    hexo d == hexo deploy
    

直接在命令行中操作出现一下错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
D:\Github\blog-hexo>hexo d
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: spawn git ENOENT
at notFoundError (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
FATAL spawn git ENOENT
Error: spawn git ENOENT
at notFoundError (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (D:\Github\blog-hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

原因是:git的执行目录没有加入系统环境变量。解决方案:1.将git加入环境变量Path中。2.直接在git shell中进行操作。我更习惯于方式2。

环境搭建好以后,常用到的就是增加新的博客然后提交git。以下操作均在git shell中操作

操作目录:

1
2
3
4
5
6
7
8
9
10
11
YGC@YGC  /d/Github
$ cd blog-hexo/

YGC@YGC /d/Github/blog-hexo
$ pwd
/d/Github/blog-hexo

YGC@YGC /d/Github/blog-hexo
$ ls
_config.yml node_modules/ public/ scaffolds/ themes/
db.json package.json readme.md source/ upload.bat
1
2
3
4
hexo n "Linux基础"
hexo clean
hexo s -p 5500
hexo d -g
  • Error message “Filename too long”

    git config --system core.longpaths true
    

GitHub入门记 Go Git!!!

git install and config install Linux: 1shell 界面输入 ``sudo apt-get install git-core`` 回车输入密码 Windows:下载 12345[git-for-windows](https://github.com/git-for-windows/git/releases/tag/v2.6.3.windows.1)[github-windows](https://github-windows.s3.amazonaws.com/GitHubSetup.exe)安装就不用说了,上面两个的区别自己去琢磨吧! Mac:terminal : brew install git 完成上面的步骤就算安装好环境了,你离git已经很近了,下面是怎么配置。 12345678#配置全局用户名和邮箱#Linux: shell ,Windows: Git Bash ,Mac:terminal 命令如下:git config --global user.name "yourname"git config --global user.email "Youremail@gmail#查看是否配置成功:git config --global user.namegit config --global user.email

Continue Reading →