Skip to content

Instantly share code, notes, and snippets.

View rykov's full-sized avatar
🔧
Working

Michael Rykov rykov

🔧
Working
View GitHub Profile
@rykov
rykov / live.js
Last active November 6, 2018 04:49
[Unofficial] Listening to live Gemfury package updates
// This sample script will listen to package updates in a Gemfury
// account. To get your API token, go to the Tokens section of
// your Dashboard, and look for "Full Access token".
// To get started, first install the dependencies:
// npm install ws xmlhttprequest request centrifuge@2.x.x
//
// Then run the script with your API token and account username:
// node ./live.js <API token> <username>
@rykov
rykov / gist:1365054
Created November 14, 2011 20:30
Using environment variables in Heroku gem manifests
# I have a verified that this works in the .gems Heroku Gem manifest:
sinatra --version '1.2.3' --source https://gems.gemfury.com/mysecret123/
# Gemfury add-on injects GEMFURY_URL environment variable
# I would like to be able to do something like:
sinatra --version '1.2.3' --source ENV['GEMFURY_URL']
# ...or...
@rykov
rykov / SMTPDKIMMessage.java.patch
Created May 8, 2009 19:42
SMTPDKIMMessage patch for ActionMailer-JavaMail
--- SMTPDKIMMessage.bak 2009-05-07 01:03:52.000000000 -0700
+++ SMTPDKIMMessage.java 2009-05-07 01:53:45.000000000 -0700
@@ -54,6 +54,11 @@
this.signer = signer;
}
+ public SMTPDKIMMessage(Session session, InputStream is, DKIMSigner signer) throws MessagingException {
+ super(session, is);
+ this.signer = signer;
+ }