Author: Kirin Lin

  • Take a screen shot under Firefox

    It’s very easy when Firefox provides Developer Toolbar. I’m using Firefox esr 24.3.0.

    Steps:
    Launch it. Firefox > Web Developer > Developer Toolbar
    Input this command to take a full-page screen shot then copy to clipboard:

    [code language=”bash”]>>screenshot –clipboard –fullpage[/code]

  • two movies last week

    英文片名:Hansel & Gretel: Witch Hunters
    中文片名:女巫獵人
    IMDb: Hansel & Gretel: Witch Hunters (2013)

    英文片名:Now You See Me
    中文片名:出神入化
    IMDb: Chushen ruhua (I) (2013)

    兩部片都是去年(2013)的片子,娛樂效果都很不錯,《Hansel & Gretel: Witch Hunters》完全不適合小孩子看呦!爆頭噴血什麼的都有;而《Now You See Me》故事有趣,大家一起來魔術推理。

  • 看見台灣

    英文片名:Beyond Beauty: Taiwan from Above
    IMDb: Beyond Beauty: Taiwan from Above (2013)

    忘記哪個禮拜六跟老爹約好一起去看,從另外一個角度看台灣。嗯…

  • The Decoy Bride

    中文片名:誘餌新娘/冒牌新娘
    IMDb: The Decoy Bride (2011)

    網誌長草好一陣子,現在也只是貼一個觀賞紀錄而已。英國片,對話都很幽默諷刺,語言張力十足。英國人是最愛抬槓的吧我想。

  • enable NOPASSWD for yourself

    I have some bash scripts which I manually run a lot and they need to run with sudo. I also don’t want to be prompted for any password. Here is the solution.

    1. Edit the /etc/sudoers:

      [code language=”bash”]$ sudo vi /etc/sudoers[/code]

    2. Add a new entry at the last (USERNAME is your account name).

      [code language=”text” firstline=”18″ highlight=”26″]
      # User privilege specification
      root ALL=(ALL:ALL) ALL

      # Members of the admin group may gain root privileges
      %admin ALL=(ALL) ALL

      # Allow members of group sudo to execute any command
      %sudo ALL=(ALL:ALL) ALL
      USERNAME ALL=(ALL:ALL) NOPASSWD:ALL

      # See sudoers(5) for more information on "#include" directives:

      #includedir /etc/sudoers.d
      [/code]

    3. Restart the sudo service.

      [code language=”bash”]$ sudo service sudo restart[/code]

    4. Logout then login again. You won’t be prompted for the password anymore.