November 6, 2017 0 Comments

yum -y install lsyncd vi /etc/lsyncd.conf settings { logfile = "/var/log/lsyncd.log", statusFile = "/var/log/lsyncd.stat", statusInterval = 2, } sync { default.rsync, source="/home/ning/cloud/", target="/home/ning/www/" } sync { default.rsync, source="/home/ning/www/", target="/home/ning/cloud/" }

August 4, 2016 0 Comments

For my understanding, extend not allowed customization, and include allowed. @extend %button background-color: lightgrey &:hover, &:active background-color: white a @extend %button button @extend %button @include @mixin my-button($size: 15, $color: red) { @include inline-block;

April 21, 2016 1 Comment

Example of if a variable is undefined function test() { console.log(_.isUndefined(foo)); // true, no error due to hoisting var foo = 3; console.log(_.isUndefined(foo)); // false, foo is defined now. } Example of if

January 18, 2016 0 Comments

Cloud storage is everywhere in today's multi-device environment, where people want to access content across multiple devices wherever they go. Dropbox is the most widely used cloud storage service thanks to its elegant

December 26, 2015 0 Comments

1. Create a new ssh key, you need enter your key name and password $ cd ~/.ssh $ ssh-keygen 2. Start the ssh-agent and load your keys replace id_ras to your key name

December 22, 2015 0 Comments

# Allow outgoing traffic and disallow any passthroughs iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP # Allow traffic already established to continue iptables -A INPUT -m state --state

December 21, 2015 0 Comments

sudo yum -y update sudo yum -y install perl wget sudo sh Then access panel by https://your ip address:10000/

December 18, 2015 0 Comments

1. Install git yum install git git config --global "Ning Ma" git config --global "" 2. Clone file from the bitbucket git clone 3. Commit a file git init git

December 10, 2015 0 Comments

Step 0 – Login to your server via SSH. You better login as root. Step 1 – Now issue this first command syntax: yum install -y git example: Step 2 – Now also

December 10, 2015 0 Comments

Pre-Flight Check These instructions are intended specifically for adding a user on CentOS 6.5. I’ll be working from a Liquid Web Core Managed CentOS 6.5 server, and I’ll be logged in as root.