墮落 (一)

「嘟嘟嘟嘟嘟嘟嘟嘟嘟 …」

每天早上都有耳內遊蕩的地鐵關門聲。擠迫的車廂裡偶爾你會聽到你左邊那位先生巨型耳機中的搖滾樂,或右邊那位女士在手機上與友人 Whatsapp 著最近的八掛新聞,現世的凡音可從未放過任何機會跳進你的腦袋。

「妳行入d好無呀!?」十步外的車門傳來一把滿腔怒氣的一把女人聲音。

「點行入d呀?妳行到咪自己行入去囉!」另一位女士同樣不耐煩地埋怨著。

「妳收埋份報紙咪可以行入D囉,咁多人睇乜鬼報紙呀?」

「我睇報紙關妳咩事唧,妳夠拎住部電話睇啦!」

我笑而不語,繼續細看一個城市的墮落。

陶傑 – 日式諷刺

北海道的溫泉酒店,大堂小賣部,有餅乾、乳酪、牛奶,插上一隻用中文寫的牌子:「這些產品都是真正日本本國製造的,請放心購買」。

告示的對象,當然是中國遊客。日本人很聰明,永遠懂得用最含蓄的方式羞辱一個他從心底裏鄙視的鄰國。

錢是要賺的,日本人懂得中國顧客心理。最近一項調查,由於誠信問題,因電影「非誠勿擾」的宣傳,中國遊客赴日購物大增。買的是什麼東西?依次為奶粉、即食 麪、藥品、餅乾、雞蛋,連掏耳朵用的小棉棒,也大手掃貨。

還有買十幾把菜刀的,收在行李箱子,帶回大陸。中國遊客當然也不蠢,他們知道有許多日本貨,生產線設在中國,中國的廉價勞工,貼上日本牌子,於是來到日本,東問西問,中國生產的偽日本貨不要,日本人給問得煩了,製作一塊牌子:「這些產品都是真正日本本國製造的,請放心購買」。
Continue reading 陶傑 – 日式諷刺

Puppet – Create a Custom Resource Type

We can define our own Puppet Resource Type. Here is an simple example which will takes create new folders from a existing folder.

class eureka::ykyuen ($new_folder) {
  define copy_folder {
    file { "/home/ykyuen/$name":
      source => "/home/ykyuen/src_folder",
      recurse => "true",
      group => "ykyuen",
      owner => "ykyuen",
      ensure  => directory,
      replace => "false", # Create new folder only if it doesn't exist
    }
  }

  copy_folder { ["new_folder_1", "new_folder_2"]: }
}

Continue reading Puppet – Create a Custom Resource Type

Puppet – Automate New Relic Server Monitor Agent Installation

This is an example to install the newrelic-sysmond package on the Puppet Agent.

class system::newrelic-sysmond ($licensekey) {
  package { "newrelic-sysmond": ensure => installed, }

  exec { 'Insert newrelic license key':
    command => "nrsysmond-config --set license_key=$licensekey",
    require => Package['newrelic-sysmond'],
    creates => '/etc/newrelic/key_added',
  }

  exec { 'Restart newrelic system monitor':
    command => "/etc/init.d/newrelic-sysmond start",
    require => Exec['Insert newrelic license key'],
    creates => '/etc/newrelic/key_added',
  }

  exec { 'Create the key_added file':
    command => "echo key_added > /etc/newrelic/key_added",
    require => Exec['Restart newrelic system monitor'],
    creates => '/etc/newrelic/key_added',
  }
}

 

Done =)

Puppet – Update resource which is already declared

If you want to update the declared resource, you need to make use of the resource reference which is denoted by the Capital letter of the type reference. The following example is found in the Puppet 3 Reference Menu.

file {'/etc/passwd':
  ensure => file,
}

File['/etc/passwd'] {
  owner => 'root',
  group => 'root',
  mode  => 0640,
}

 

Done =)

Reference: Puppet 3 Reference Menu – Amending Attributes With a Reference

陶傑・讀書・做人

訪問陶傑,是難也是易,傳媒裏的陶傑是個多面手,要寫陶傑,難!容易變瞎子摸象,他文字功夫上乘,說話條理分明,旁徵博引,抓住這點,他是才子,若抓住他抵死比喻,會說他刻薄犬儒,抓住小農DNA, 便是反華反共。陶傑本人並不介意,百貨百賣有百客。但正如孫悟空分身,萬變不離其宗。穿越他的文字及傳媒形象,你會見到一個真實的陶傑,就是他留給自己的那一部分,陶傑對中國知識分子的痛苦、掙扎沒有感覺嗎?對毛澤東的痛恨,是無緣無故的嗎?到今日取笑大中華膠、左膠,是刻薄嗎?陶傑由讀書、做人說起,再論到中國知識分子的traumatic創傷性集體心理、中國歷史之痛苦及「國情」二字之桎梏。

當收起嘻笑怒罵、尖酸刻薄犬儒之後,仍然是當初相識的那個有火的讀書人,沒有改變,要寫陶傑,其實一點也不難。

劉:劉細良
陶:陶傑

劉:你寫作多年,近年還參與電影創作,你有固定吸收知識的方法嗎?
陶:每日都要讀書,是一生一世的。身為中產或知識分子最基本的職責,亦是跟基層或商人最基本的區別,就是你要看書。看書is what makes you中產、知識分子,或者專業人士,特別要讀humanities的書。你在大學三年共九個學期,其實讀到多少?大學不過指了一個方向給你,讓你培養出一種讀書方法和志趣,然後你便一路走下去。
Continue reading 陶傑・讀書・做人

Dream BIG and go for it =)