Several CLI Ways to Find Out Your Public IP Address
Need to know your public IP address? Use one of the following:
|
|
Need to know your public IP address? Use one of the following:
|
|
If you have both Node.js and io.js installed, PM2 will run Node.js by default. To start the app with io.js, use --interpreter
flag:
|
|
Using Vagrant file provision in a Windows host, the line endings are not converted from CRLF to LF (Linux systems). So, code cannot be executed properly in the guest Linux system. And also this is a frequently occurred message for working with Windows:
|
|
One solution is to use UNIX line ending (LF) even in Windows, hence no conversion is needed. This is done by setting:
|
|
Which means when committing the code to a remote repository, the line ending will be convert from CRLF to LF if any, but when checking out from the remote directory, no conversion from LF to CRLF is performed.
Branch is cheap, use it often. But when you create too many, knowing which is for what becomes a management problem. Here are two solutions:
--edit-description
to provide more than just a simple branch nameFor the first solution:
|
|
Also see:
I prefer the second approach.
I asked myself this question:
Why startup?
I answered:
To be my own boss.
Commands:
|
|
Explanation:
docker
I always forget about how to use shell environment variable correctly. I think because I did not grasp the key concept. For example, here is the wrong approach:
|
|
The correct answer I was hoping for is:
|
|
Because what I frequently do is use environment variable inside shell script:
|
|
then do:
|
|
This works as expected because the environment variables are passed into the subshell that executing the script.
But why not the first or the wrong approach?
The reason is that shell expands the variable before the command being executed. To shell, the first approach looks like:
|
|
The environment variables FOO
and BAR
were expanded before the command was executed. Hence, no values were printed.
I can use SSH directly instead of Vagrant SSH command for interactive programs such as top
or running tmux
sessions. But I frequently just want to run Tmux or Byobu upon login. I can do:
|
|
But still too much trouble to go through all SSH configuration steps. So, I ended up with two-step process:
|
|
Now inside the guest machine, I immediately type:
|
|
To bring up new Tmux session or attach existing sessions.
Need to deploy private Docker containers without a private registry? Try docker save
and docker load
.
Working set:
|
|
Actions to perform:
Save a single tagged image:
|
|
Save a single image with all tags:
|
|
The tagged one is slightly less in size:
|
|
Save multiple images:
|
|
The size is almost twice as much comparing to a single image tar:
|
|
Compress it:
|
|
Much better in size:
|
|
Do the reverse, load the tarred Docker images with docker load.
In January 2015, there are 956 unique visitors making 1,111 visits resulting in 1,320 pageviews, about 43 daily pageviews, about 17% increase comparing to last month.
As today, my blog is still estimated by Alexa. It ranks my blog 880,218 globally and 177,784 in the United States. Lower than last month, but these are estimates.
Where are my visitors located?
27.63% of visits are from the United States, almost 1.64% drop compare to last month. The second place is from India with 6.57%, that is more than 2% drop.
Where do my visitors come from?
Google is the top traffic source with 86.05% of all visits, more than 4% increase comparing to last month. Social is still almost non-existing.
What devices and operating systems are my visitors using?
43.02% are using Windows, then followed closely by Macintosh with 37.62%. And 96.58% visitors are using desktop devices, a slight drop.
What is the top post?
The most popular post is still Split a Large JSON File into Smaller Pieces, it is even more popular than the site’s main index page.
How is my site speed?
The average page load time is 3.26 seconds. The slowest is sampled at 6.95 seconds.
Is my blog getting more and more visitors?
Yes! The month-to-month gain is 14.22%, and year-to-year gain is 646.88%, more than a half of thousdand fold.