Seacolor Labs. このページをアンテナに追加 RSSフィード

2006-10-28

[] recipesを使ったyaml 16:10  recipesを使ったyaml - Seacolor Labs. を含むブックマーク はてなブックマーク -  recipesを使ったyaml - Seacolor Labs.  recipesを使ったyaml - Seacolor Labs. のブックマークコメント

config.yamlをrecipesを使って作り直し。

せっかくなのでここらで晒してみる。

ただし、けっこうな数があるので一部だけで。

base-config.yaml

global:
  assets_path: /home/(account)/plagger/assets
  timezone: Asia/Tokyo
  log:
    level: debug
    encoding: UTF-8
  cache:
    base: /home/(account)/plagger/cache
    expires: 259200

define_recipes:
  fresh_1days:
    - module: Filter::Rule
      rule:
        module: Fresh
        limit: 1days

  deduped:
    - module: Filter::Rule
      rule:
        - module: Deduped
          compare_body: 0

  deduped_compare:
    - module: Filter::Rule
      rule:
        - module: Deduped
          compare_body: 1

  EFT:
    - module: Filter::EntryFullText
    - module: Filter::ResolveRelativeLink
    - module: Filter::TruePermalink

  EFT_FU:
    - module: Filter::EntryFullText
      config:
        force_upgrade: 1
    - module: Filter::ResolveRelativeLink
    - module: Filter::TruePermalink

  find_enclosure:
    - module: Filter::FindEnclosures

  break:
    - module: Filter::BreakEntriesToFeeds

  break_edit_title:
    - module: Filter::BreakEntriesToFeeds
      config:
        use_entry_title: 1

recipes-gmail-config.yaml

define_recipes:
  widget:
    - module: Widget::HatenaBookmarkUsersCount
    - module: Widget::Simple
      config:
        widget: delicious

  sns:
    - module: Publish::Gmail
      config:
        mailto:   (account)+mixi@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail

  tags:
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('Game')
      config:
        mailto:   (account)+game@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('Hatena')
      config:
        mailto:   (account)+hatena@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('Music')
      config:
        mailto:   (account)+music@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('News')
      config:
        mailto:   (account)+news@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('Soft')
      config:
        mailto:   (account)+soft@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail
    - module: Publish::Gmail
      rule:
        expression: $args->{feed}->has_tag('Other')
      config:
        mailto:   (account)+other@gmail.com
        mailfrom: (account address)
        mailroute:
          via: sendmail
          command: /usr/sbin/sendmail

recipes-rss-config.yaml

define_recipes:
  bloglines:
    - module: Subscription::Bloglines
      config:
        username: (account)
        password: (password)
        mark_read: 1
        fetch_meta: 1

  my_bookmark:
    - module: Subscription::Config
      config:
        feed:
          - url: http://b.hatena.ne.jp/Seacolor/atomfeed
    - module: Filter::AtomLinkRelated

recipes-sns-config.yaml

define_recipes:
  mixi:
    - module: CustomFeed::Mixi
      config:
        email: (account)
        password: (password)
        fetch_body: 1
        fetch_body_internal: 1.5
        show_icon: 1
        feed_type:
          - FriendDiary
          - Message
        fetch_items: 10

bloglines-config.yaml

include:
  - /home/seacolorswind/plagger/base-config.yaml
  - /home/seacolorswind/plagger/recipes-rss-config.yaml
  - /home/seacolorswind/plagger/recipes-gmail-config.yaml

recipes:
  - bloglines
  - EFT
  - widget
  - tags

mt-hateb-config.yaml

include:
  - /home/seacolorswind/plagger/base-config.yaml
  - /home/seacolorswind/plagger/recipes-rss-config.yaml

recipes:
  - my_bookmark
  - fresh_1days

plugins:
  - module: Publish::MTWidget
    config:
      blog_id: 1
      mt_path: /home/(account)/www/(Movable Type)
      title: はてなブックマーク
      rebuild:
        - メインページ
        - エントリー・アーカイブ

mixi-config.yaml

include:
  - /home/seacolorswind/plagger/base-config.yaml
  - /home/seacolorswind/plagger/recipes-sns-config.yaml
  - /home/seacolorswind/plagger/recipes-gmail-config.yaml

recipes:
  - mixi
  - deduped_compare
  - break_edit_title
  - sns