Skip to content

Instantly share code, notes, and snippets.

View briandoll's full-sized avatar
😎
Helping companies market and sell more software

Brian Doll briandoll

😎
Helping companies market and sell more software
View GitHub Profile
@briandoll
briandoll / full.plugin.list.txt
Created September 29, 2011 05:09
Full Plugin List Deployed in applications monitored by New Relic, September 2011
Full Plugin List Deployed in Rails applications monitored by New Relic, September 2011
Count Plugin Name
-------------------
2040 rpm
1534 newrelic_rpm
1268 acts_as_list
1186 paperclip
1130 will_paginate
1068 exception_notification
@briandoll
briandoll / A_toast_to_you.md
Last active March 19, 2022 01:17
Toasts! - scripts to convert images attached to GitHub issues into an animated gif for serious celebratory purposes

To toast:

  • Make sure you have ImageMagick installed (brew install imagemagick)
  • Change line 7 of toast.rb to the repository name you're working with
  • toast!
$ bundle install
$ ./get_token [user] [pass]
$ export GHUSER=[myuser]

Information is power. But like all power, there are those who want to keep it for themselves. The world’s entire scientific and cultural heritage, published over centuries in books and journals, is increasingly being digitized and locked up by a handful of private corporations. Want to read the papers featuring the most famous results of the sciences? You’ll need to send enormous amounts to publishers like Reed Elsevier.

There are those struggling to change this. The Open Access Movement has fought valiantly to ensure that scientists do not sign their copyrights away but instead ensure their work is published on the Internet, under terms that allow anyone to access it. But even under the best scenarios, their work will only apply to things published in the future. Everything up until now will have been lost.

That is too high a price to pay. Forcing academics to pay money to read the work of their colleagues? Scanning entire libraries but only allowing the folks at Google to read them? Providing scientific a

{
"Version": "2012-10-17",
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:getObject",
"Resource": "arn:aws:s3:::BUCKETNAME/*"
@briandoll
briandoll / GitHub Quick Facts.md
Created July 3, 2012 16:13
GitHub Quick Facts

GitHub Quick Facts

GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over a million people use GitHub to build amazing things together.

Company

@briandoll
briandoll / gist:6980359e85eb9284ea14
Last active December 25, 2019 10:29
Farewell to Joe Strummer by Tom Morello

Joe Strummer, 1952-2002

Farewell to Joe Strummer by Tom Morello

The first time I heard of the Clash was in high school. I was working on the school newspaper, and one day a fellow named Dave Vogel came in with a copy of London Calling that he was showing off to anybody who was willing to listen. I thought the cover of the album was really cool, and asked him "is it heavy metal?" He said "no, but it's really great." I doubted him, but asked if I could borrow it, and I made

@briandoll
briandoll / convertMod2Dv.app
Created August 16, 2008 19:36
AppleScript to convert .MOD files to .DV
--
-- convertMod2Dv.app
--
-- a simple apple script applet to convert .mod files to .dv files
-- this is an essential step for those of us who own DV video cameras
-- that use this .mod file format, but would also like to edit those videos
-- in iMove HD or other editing apps. This applet was developed solely to
-- provide drag-n-drop functionality to the command line tool ffmpeg2.
-- It supports dragging individual files or folders of files, etc.
--
class ActiveRecord::Base
def self.table_name_prefix
"appname."
end
end
class TransactionalBase < ActiveRecord::Base
self.abstract_class = true
establish_connection "#{RAILS_ENV}-transactional"
s = Time.now
e = s + 100.days
i = s
dates = []
dates << s
while i < e
i += 1.week
dates << i
end
module RailsNamingConventions
def file_name_to_class_name(file_name)
file_name.split(".rb")[0].classify
end
end