This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Gemfile | |
| … | |
| gem 'uuidtools' | |
| … |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // aptitude install libboost-dev | |
| // http://www.boost.org/doc/libs/1_52_0/libs/crc/crc.html | |
| #include <boost/crc.hpp> | |
| static uint64_t crc64 (const string& str) { | |
| boost::crc_optimal<64, 0x04C11DB7, 0, 0, false, false> crc; | |
| crc.process_bytes (str.data(), str.size()); | |
| return crc.checksum(); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns cascalog.helpers | |
| (:use cascalog.api) | |
| (:import [org.apache.hadoop.mapred JobConf] | |
| [cascalog Util])) | |
| (defn lazy-generator | |
| "Returns a cascalog generator on the supplied lazy | |
| sequence. `lazy-generator` serializes each item in the lazy sequence | |
| into a sequencefile located at the supplied temporary directory, and | |
| returns a tap into its guts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns pallet.aether | |
| "Wrapper for aether resolution | |
| See: | |
| https://docs.sonatype.org/display/AETHER/Home" | |
| (:require | |
| [clojure.java.io :as io] | |
| [clojure.contrib.logging :as logging]) | |
| (import | |
| org.apache.maven.repository.internal.MavenRepositorySystemSession |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Cookbook Name:: github_key | |
| # Recipe:: default | |
| # | |
| ey_cloud_report "github_key" do | |
| message "Running Custom Github SSH Key Chef Configuration" | |
| end | |
| # loop over all application instances |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Ohm | |
| module Expiring | |
| def self.included(base) | |
| base.send(:extend, ClassMethods) | |
| end | |
| module ClassMethods | |
| def expire(ttl) | |
| @@expire = ttl.to_i | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module AssetPath | |
| # Why this instead of Sproket's require_tree? | |
| # Sprokets compiles one SASS file at a time, which works OK... until you want | |
| # to pull out some SASS things (mixins, layout settings) into separate files. | |
| # In that case, you want to have SASS compile everything all at once, in one big file | |
| # So, use this helper to include all the SASS files down a path | |
| # | |
| # The alternative is the ugly (and not DRY!): <http://asciicasts.com/episodes/268-sass-basics> | |
| # where you list every file manually in the application.css.scass file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bash -c ' | |
| <% if knife_config[:bootstrap_proxy] -%> | |
| ( | |
| cat <<'EOP' | |
| <%= "proxy = #{knife_config[:bootstrap_proxy]}" %> | |
| EOP | |
| ) > ~/.curlrc | |
| <% end -%> | |
| if [ ! -f /usr/bin/chef-client ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
| <script type="text/javascript" src="jquery.tipsy.js"></script> | |
| <link href="tipsy.css" rel="stylesheet" type="text/css" /> | |
| </head> | |
| <body> | |
| <div id="chart"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install prerequisites before compiling: | |
| apt-get install build-essential | |
| apt-get install libfuse-dev | |
| apt-get install fuse-utils | |
| apt-get install libcurl4-openssl-dev | |
| apt-get install libxml2-dev | |
| apt-get install mime-support | |
| # Download and Install | |
| wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz |