Skip to content

Instantly share code, notes, and snippets.

View jliuhtonen's full-sized avatar
🦡

Janne Liuhtonen jliuhtonen

🦡
  • Helsinki, Finland
  • 20:21 (UTC +03:00)
View GitHub Profile
curl -sSL https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '("# syncToken: " + .syncToken), ("# createDate: " + .createDate), (.prefixes | .[] | select(.service == "CLOUDFRONT") | "set_real_ip_from " + .ip_prefix + ";")'

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@lusis
lusis / keytool.rb
Created March 26, 2012 04:51
recipe for adding certs to keytool
keystore = "/etc/java-6-sun/security/cacerts"
keystore_pass = "foobar"
# you'll need foo.cert et. al. in files/default
certs = %w{foo bar bang}
certs.each do |cert|
cookbook_file "#{Chef::Config[:file_cache_path]}/#{cert}.cert" do
source "#{cert}.cert"
end
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: