Windows下Jekyll乱码问题
Sep 21, 2013
在Ruby目录中搜索convertible.rb,找到大概27行如下内容: self.content = File.read(File.join(base, name)) 替换为 self.content = File.read(File.join(base, name), :encoding => 'utf-8') 在windows环境变量中,添加以下两个环境变量 …
为Jekyll站点添加rss.xml
Sep 18, 2013
在网站根目录中新建rss.xml文件,写入以下内容: rss.xml 代码 参考以上代码,其中的域名等信息自定义。
将Wordpress数据转换为Jekyll文件
Sep 15, 2013
这里使用的工具名为Exitwp,项目主页为https://github.com/thomasf/exitwp 安装Exitwp 必备组件 Python html2text PyYAML Beautiful soup ubuntu下安装软件: # aptitude install python git build-essential # aptitude install python-pip python-yaml python-bs4 python-html2text # aptitude install libyaml-dev python-dev libxml2-utils 安装Exitwp git clone https://github.com/thomasf/exitwp ###使用Exitwp转换wordpress数据 …
fstab自动挂载分区
Sep 08, 2013
使用fdisk -l查看分区信息 以下为需要自动挂载的分区: 分区 | 格式 ------------------------------ /dev/sd1 | NTFS /dev/sd5 | NTFS /dev/sd6 | NTFS /dev/sd7 | NTFS /dev/sd8 | NTFS 新建挂载目录 #mkdir /media/{a,b,c,d,e} 编辑fstab文件vi /etc/fstab写入以下内容 …
Debian下安装Jekyll
Sep 06, 2013
安装Rvm $sudo aptitude install curl $curl -L get.rvm.io | bash -s stable 加载Rvm $source ~/.rvm/scripts/rvm 检查安装必备组件 $rvm requirements 安装 Ruby 1.9.3 $rvm install 1.9.3 $ruby -v $gem -v 更改Gem软件源 $gem sources -a http://ruby.taobao.org/ $gem sources -r http://rubygems.org/ $gem sources -l 安装Jekyll $gem install jekyll $jekyll -v 打完收工! …
使用SSH密匙登录Github
Sep 03, 2013
相较于旧的RSA,更加推荐ED25519 $ ssh-keygen -t ed25519 -C "your_email@example.com" 生成ssh密匙文件 ssh-keygen -t rsa -C "user@domain.com" 接下来会提示输入密码,推荐自定义密码,当然也可以置空 Enter passphrase(empty for no passphrase): Enter same passphrase again: 完成后会在用户目录下的.ssh文件夹中新建id_rsa与is_rsa.pub两个文件。 …
阿朗BTS开启40个邻区
Sep 01, 2013
阿朗基站默认未开启40个邻区功能,如果fci表的15、16页已经加满,再需要添加多的邻区关系就得设置打开40个邻区。 编辑cell2 (SERIES 2 CELL)表单 登录阿朗OMP平台,进入OMP Shell,输入apxrcv,然后按照提示输入表单名cell2 …
stuff阿尔卡特朗讯阿尔卡特朗讯AlcatelLucentAlcatel LucentBTSCDMA邻区OMPcell2ceqfacefci
卸载linux旧内核
Aug 13, 2013
当linux内核更新后,开机的GRUB引导菜单中会存在新旧内核多个引导菜单,当新内核使用稳定后,我们可以将旧的内核删除以减少开机引导项,以下是在fedora与ubuntu中删除旧内核的方法,其他的YUM系或APT系系统可以参考参考 …
Linux下部署goAgent
May 30, 2013
准备工作 下载Google Appengine SDK For Pyahont与goAgent 1.Google App Engine SDK for Python https://developers.google.com/appengine/downloads?hl=zh-CN#Google_App_Engine_SDK_for_Python 2.goagent https://code.google.com/p/goagent/ 下载后解压,将goagent文件夹放到google_appengine目录下,目录结构如下: …
Ubuntu Server中安装VNC Server
May 11, 2013
安装所有软件 #aptitude install openbox firefox ttf-wqy-microhei #aptitude install vnc4server 设置openbox启动 #update-alternatives --config x-session-manager 然后选择openbox-session 设置vncserver密码: #vncpasswd Password: ****** Verify:***** 运行vncserver …