-
A glance at CentOS 7
For some reason, I've started a CentOS 7 instance to manage some services. It has a bunch of nice features, including LinuX Containers.However, because of those changes, it is replacing some well-known components to better fit the latest development - specifically the isolation of namespace. Some significant updates includes:service -->...
-
Sudo in a Shell
While managing servers, it’s necessary to use the proper account to manipulate the assets - and here’s the example for updating assets on edX: #!/bin/bash # update theme svn cd /edx/app/edxapp/themes/default sudo -H -u edxapp svn update # update lms assets cd /edx/app/edxapp/edx-platform sudo -u edxapp LANG="en_US.UTF-8" SKIP_WS_MIGRATIONS="1" GEM_PATH="/edx/app/edxapp/.gem" NO_PREREQ_INSTALL="1"...
-
Git submodule
Git submodule is very useful and important when doing a huge project. However the mechanism is not clearly described in most of the online manuals: 1) Submodule Add git submodule add git@github.com:yyang/repo submodule_path_here This will log and register certain submodule in .gitmodules file. Registration is also triggered via git submodule...
-
First Impression on Node.js - Created a prototype website
1) Node.js is a really powerful tool nowadays, it has a huge number of plug-ins and is very friendly to developers. The philosophy - or at least you could build your gadget with such philosophy - of node.js is that you never need to mix-up multiple kinds of syntax,...
-
Running Git with Github
Running Git with Github on Mac seems very easy, with the help from XCode. However running such configuration on Windows lacks of proper instruction.The steps are list as following:Download Git for Windows: http://git-scm.com/download/winGenerate SSH Key, PuTTYgen is a great Windows tool: linkFor mac user we can just use: ssh-keygen -t rsa...
-
Mac - Mountain Lion Dev. Environment
It is a great pity that Mac OS X 10.8 Mountain Lion has removed a list of important features - at least they are important for me since I will need to connect with multiple Linux servers and test. Well here's a list on everything should be installed -...
-
Mac - LC_CTYPE
To solve this:warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)Typically appeared when using OS X Lion and ssh to a remote server.Add the following line to your ~/.bash_profile of OS X:export LC_CTYPE="en_US.UTF-8"
-
Trac Installation
Requires Python 2.5+, setuptools 0.6+, Genshi 0.6+ and SQLite (already installed with Python 2.5+) $ sh setuptools-0.6c11-py2.6.egg $ easy_install Genshi