陶傑 – 寄劉進圖

明報前總編輯劉進圖遭暴徒刀斬,性命垂危,香港正式進入第三世界的黑暗時代。

劉進圖是香港大學的法律系畢業生。他的志願卻是新聞系。二十多年前我初識劉君,發現他頭腦冷靜,有法理訓練,做新聞的偵查報道,是很理想的人選。

劉君很熱愛新聞工作,源於他是一個很有正義感的人。香港主權移交之前,他曾出任記協主席,在公園的論壇高呼維護香港的自由。我那時私下與劉君時有見面,我告訴他極權之恐怖與殘酷,是一個香港唸英文書長大的優才生難以想像的。我說,做好中國人社會的新聞工作,必先熟知中國歷史。

劉進圖後來調去鄰近地區當駐外記者,為期兩年。那時我已與他不常見面,暗自為他擔心。不久之後他回到香港,昇任主筆、總編輯,而且在特首「選舉」期間與之後,有許多獨家新聞。我為他高興之餘,也希望他明白,一旦陷入中國式的醬缸社會,影響一些人的權力,處境可以很危險。
Continue reading 陶傑 – 寄劉進圖

Puppet – Exec only if a certain condition is true

Sometimes we would only want to execute some initialization configurations on Puppet agent only on the first of manifest application. One approach is to create a text file and only skip the execution when that file exists.

 

Here is another example written on the Puppet CookBook.
Continue reading Puppet – Exec only if a certain condition is true

Puppet – Restart a service after a file has changed

After we have used Puppet to update a service config file, we would like to restart the service so as to apply the new changes to the service.

Say for example, we want to keep the SSH service alive and whenever the /etc/ssh/sshd_config is synchronized from the Puppet server, restart the SSH service. This can be done as follow.
Continue reading Puppet – Restart a service after a file has changed

Yum – Check for update of repositories

When a new rpm is added to a yum repository server, the cache in the client machine makes the new rpm unreachable. To check for update of repositories, run the following command in the client.

  • yum clean expire-cache

 

Then you can try to search for your new rpm by

  • yum list <new rpm package>

 

Done =)

Reference: How do I get yum to see updates to a local repo without cleaning cache?

陶傑 – Interesting

港大聘請英國人做校長,掀起教員的種族仇恨,紛紛質問港大的遴選委員會:港大有那許多中國人在,為什麼要聘洋人?

問題就出在「明明有那麼多中國人在,為什麼一定要聘用洋人」這個謎了,不但港大的種族主義教員想知道,全世界也想知道。

譬如中國有十四億人口,一支十一人的國家足球隊、明明可以聘中國人做教練,不知何故,二十年來,請來請去,都聘用西方的白種人。

最近這位白人教練,洋名卡馬喬,來自西班牙,如果「由四十三萬人口的英國布里斯托市空降一個英國人來香港,做七百萬人的香港的大學校長,簡直是笑話」,西班牙人口只有四千萬,中國人口十四億,更是一個國際笑話。
Continue reading 陶傑 – Interesting

陶傑 – 港大種族之戰

港大新校長人選,果然掀起政治風暴,產生種族主義攻擊,指這個英國人不懂中文,不了解中國,對香港的社會撕裂一無所知,所以沒有資格來。

英國人應徵這個職位,而且通過遴選,當初你港大在西方文明國家的報刊登招攬廣告,並無註明要了解中國、懂中文,現在無端端一個糞殼子當頭扣上來,並遭港大自己的醫學系教授破口大罵:「無能、無知、無心」(Incompetent,Ignorant,Heartless),當做一名罪犯來展開中國人的公審。這個英國學者本來不了解中國,只知道有幾家「孔子學院」,他或許以為中國人信奉孔子的仁義禮智、溫良恭儉,現在,對於中國,他了解了。

至於香港的什麼「社會撕裂」,並不是香港大學的歷任校長造成的,應對「社會撕裂」,是香港梁班子的責任,中國人自相殘殺,是你自家的事,跟一名英國白人出任的大學校長職務有何關係?當初港大在國際招聘,既沒有講港大校長要幫忙修補「社會撕裂」,如同沒有講明,哪一個港大女生在宿舍失了身,哭着找校長,英國人新校長要負責替她修補處女膜,香港大學裏中國式那副流氓德性,發作起來,倒也好笑。
Continue reading 陶傑 – 港大種族之戰

Puppet – Get the IP address of your Puppet Agent by Facts

In Puppet, there are a bunch of core facts which are are available for developer to get the Puppet Agent information such as the IP address of a specific network interface card and the free memory. The following piece of code snippet is a very good example on using facts in the manifest.

file {'puppet_facts_example':
  ensure  => file,
  path    => '/tmp/puppet_facts_example.txt',
  mode    => 0644,
  content => "This Learning Puppet VM's IP address is ${ipaddress}. It thinks its
    hostname is ${fqdn}, but you might not be able to reach it there
    from your host machine. It is running ${operatingsystem} ${operatingsystemrelease} and
    Puppet ${puppetversion}.
    Web console login:
    URL: https://${ipaddress_eth0}
    User: puppet@example.com
    Password: learningpuppet",
}

 

You can find the list of Puppet core facts in the reference link below.

Done =)

Reference:

I Am a Ukrainian

PLEASE SHARE… BEFORE IT’S TOO LATE…

We want to be free from a dictatorship. We want to be free from the politicians who work only for themselves, who are ready to shoot, to beat, to injure people, just for saving their money, just for saving their houses, just to saving their power.

We are civilized people, but our government are barbarians. That’s not a soviet union. We want our courts not to be corrupted. We want to be free.

A Ukrainian

Full script:

I am a Ukrainian, the native of Kiev. And now I am on Maidan, on the central part of my city. I want you to know why thousands of people all over my country are on the streets. There is only one reason: We want to be free from a dictatorship. We want to be free from the politicians who work only for themselves, who are ready to shoot, to beat, to injure people, just for saving their money, just for saving their houses, just to saving their power.

I want these people who are here, who have dignity, who are brave, I want them to lead a normal life. We are civilized people, but our government are barbarians. That’s not a soviet union. We want our courts not to be corrupted. We want to be free.

I know that maybe tomorrow we’ll have no phone, no internet connection, and we will be alone here. And maybe police men will murder us, one after another, when it will be dark here.

That’s why I ask you now to help us. We have this freedom inside our hearts. We have this freedom in our minds. And now I ask you to build this freedom in our country.

You can help us only by telling this story to your friends, only by sharing this video. Please share, share it. Speak to your friends, speak to your family, speak to your government, and show that you support us.

Dream BIG and go for it =)