Skip to content

Instantly share code, notes, and snippets.

# OCTOKIT_ACCESS_TOKEN=yourtoken ruby huginn_changelog.rb
require 'json'
require 'octokit'
require 'rugged'
AFTER_NUMBER = 2607
pull_requests = unless File.exists?('pull_requests.dump')
Octokit.auto_paginate = true
@dsander
dsander / rubocop --format offenses
Last active August 29, 2015 14:17
Huginn rubocop offences
1288 Style/HashSyntax
231 Metrics/LineLength
134 Metrics/AbcSize
116 Metrics/MethodLength
103 Style/IndentHash
98 Style/Blocks
95 Style/BracesAroundHashParameters
91 Style/SpaceAroundOperators
85 Style/TrailingComma
71 Style/SpaceInsideBlockBraces

Keybase proof

I hereby claim:

  • I am dsander on github.
  • I am dsander (https://keybase.io/dsander) on keybase.
  • I have a public key whose fingerprint is 92C7 966B 9FAF 93E2 A40E A2C7 CC3C 7D3C 3FEC 7EB1

To claim this, I am signing this object:

{
"name": "Website Agents",
"description": "No description provided",
"source_url": false,
"guid": "bc515f995bae4e9e03c8facb03802ba3",
"exported_at": "2014-06-22T07:33:58Z",
"agents": [
{
"type": "Agents::WebsiteAgent",
"name": "WebsiteAgent 1",
@dsander
dsander / ubuntu12.04-gems-ohai-pre.erb
Created July 3, 2013 14:57
knife bootstrap template using the prerelease version of ohai
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
aptitude update
aptitude install -y ruby ruby1.8-dev build-essential wget libruby1.8 rubygems
fi
gem update --no-rdoc --no-ri
gem install ohai --pre --no-rdoc --no-ri --verbose
attachments: parent_id, asset_id
domain_names: organisation_id
event_memberships: user_id, event_id
events: editor_id
group_actions: user_id, group_id
groups: user_id
icons: parent_id
invitations: sender_id
legacy_actions: item_upon_id
news_items: author_id