Skip to content

Instantly share code, notes, and snippets.

{
"color_scheme": "Packages/Color Scheme - Default/Pastels on Dark.tmTheme",
"font_face": "Consolas",
"font_size": 11
}
`system_profiler | grep "r (system)"`.sub(" Serial Number (system): ", "").strip
class Status < ActiveRecord::Base
belongs_to :feed
attr_accessible :description, :publication_date, :title
attr_protected :feed_id
def self.update_or_create_with_entry(entry, feed_id)
if entry.present?
if @@status = Status.find_by_publication_date(entry.published.to_datetime)
@@status.update_status!(entry)
else
class Feed < ActiveRecord::Base
attr_accessible :name, :url, :etag, :last_modified
has_many :statuses, :order => "publication_date DESC"
def self.update_each!
all.each { |feed| feed.update_from_url! }
end
def self.update_or_parse_from_url!(url)
if @@feed = Feed.find_by_url(url)
class FeedController < ApplicationController
def index
@feeds = Feed.last_day
if @feeds.blank?
@feeds = Feed.last_week
end
end
def show
@feed = Feed.find(params[:id])
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
Sep 9 00:00:07 (none) named[26423]: client 74.207.242.5#46860 (ili392-103.dns.friendsend.co): query (cache) 'ili392-103.dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:07 (none) named[26423]: client 74.207.242.5#13157 (ili392-103.dns.friendsend.co): query (cache) 'ili392-103.dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:07 (none) named[26423]: client 74.207.242.5#62963 (ili392-103.dns.friendsend.co): query (cache) 'ili392-103.dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:07 (none) named[26423]: client 74.207.242.5#18782 (ili392-103.dns.friendsend.co): query (cache) 'ili392-103.dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:08 (none) named[26423]: client 74.207.241.5#13531 (dns.friendsend.co): query (cache) 'dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:08 (none) named[26423]: client 74.207.241.5#18805 (dns.friendsend.co): query (cache) 'dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:08 (none) named[26423]: client 74.207.241.5#8896 (dns.friendsend.co): query (cache) 'dns.friendsend.co/SOA/IN' denied
Sep 9 00:00:
//
// Include keys file
//
include "/etc/rndc.key";
// Declares control channels to be used by the rndc utility.
//
// It is recommended that 127.0.0.1 be the only address used.
// This also allows non-privileged users on the local host to manage
// your name server.
options {
// tell named where to find zone files
directory "/var/named";
// these answer DNS queries outside of the bonjour.example.com. zone.
// insert address(es) of your normal DNS servers or caches here.
// On Mac OS X, you can find the address(es) via the "scutil --dns" command.
forwarders { 1.2.3.4; 5.6.7.8; };
};
options {
// tell named where to find zone files
directory "/var/named";
// these answer DNS queries outside of the bonjour.example.com. zone.
// insert address(es) of your normal DNS servers or caches here.
// On Mac OS X, you can find the address(es) via the "scutil --dns" command.
forwarders { 1.2.3.4; 5.6.7.8; };
};