This file contains 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
Unhandled Exception: System.OutOfMemoryException: Out of memory | |
at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int) | |
at System.IO.MemoryStream.set_Capacity (Int32 value) [0x00000] in <filename unknown>:0 | |
at System.IO.MemoryStream.Expand (Int32 newSize) [0x00000] in <filename unknown>:0 | |
at System.IO.MemoryStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 | |
at com.mosso.cloudfiles.domain.response.CloudFilesResponse.CopyToMemory (System.IO.Stream input, System.IO.Stream output) [0x00000] in <filename unknown>:0 | |
at com.mosso.cloudfiles.domain.response.CloudFilesResponse..ctor (System.Net.HttpWebResponse webResponse) [0x00000] in <filename unknown>:0 | |
at com.mosso.cloudfiles.domain.request.CloudFilesRequest.GetResponse () [0x00000] in <filename unknown>:0 | |
at com.mosso.cloudfiles.domain.ResponseFactory.Create (ICloudFilesRequest request) [0x00000] in <filename unknown>:0 | |
at com.mosso.cloudfiles.domain.request. |
This file contains 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
Object.prototype.mixin = function(module, overwrite) | |
{ | |
for (var property in module) | |
{ | |
if (overwrite || !this.hasOwnProperty(property)) | |
{ | |
this[property] = module[property]; | |
} | |
} | |
} |
This file contains 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
#!/usr/bin/ruby | |
# http://clojuredocs.org/clojure_core/clojure.core/-%3E | |
# http://clojuredocs.org/clojure_core/clojure.core/-%3E%3E | |
def thread_first(val, *args) | |
args.inject(val) { |acc, arg| | |
if val.is_a? Hash | |
acc = acc[arg] | |
else |
This file contains 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
from sh import ls | |
from fabric.api import run, env | |
env.hosts = ['localhost', 'rightfootin.info'] | |
def test(): | |
print(ls('/')) # runs on every item in env.hosts |
This file contains 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
package main | |
import "net/http" | |
import "fmt" | |
func hello(w http.ResponseWriter, r *http.Request) { | |
contentType := w.Header().Get("Content-Type") | |
if contentType == "application/json" { | |
fmt.Fprintln(w, `{"Hello": "JSON"}`) | |
} else { |
This file contains 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
Images Talk | |
- Who are we? | |
Rackspace Private Cloud. We install and operate Openstack clusters, both locally in our datacenters, and remotely in customer datacenters. | |
<pending>Reference Alamo v3?</pending> | |
- What are we talking about? |
This file contains 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
#!/bin/bash | |
# REFRIED BEANS | |
# 'soft' rekick a rcps environment | |
echo "PURGING THE BEANS" | |
apt-get -y purge `dpkg -l | awk '/mysql/ {print $2}'` | |
apt-get -y purge `dpkg -l | awk '/keystone/ {print $2}'` |
This file contains 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
#!/usr/bin/env ruby | |
class ArrayWithHashes | |
def initialize(hashes) | |
@hashes = hashes | |
end | |
def find_by(selector) | |
hashes = [] |
This file contains 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
#!/usr/bin/env ruby | |
class ArrayWithHashes | |
def initialize(hashes) | |
@hashes = hashes | |
end | |
def find_by(selector) | |
@hashes.select do |h| |
This file contains 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
(use '[clojure.string :only [split, join]]) | |
(use '[clojure.set :only [difference]]) | |
(def winners | |
(let [w "washington adams jefferson jefferson madison madison monroe | |
monroe adams jackson jackson vanburen harrison polk taylor pierce buchanan | |
lincoln lincoln grant grant hayes garfield cleveland harrison cleveland mckinley | |
mckinley roosevelt taft wilson wilson harding coolidge hoover roosevelt | |
roosevelt roosevelt roosevelt truman eisenhower eisenhower kennedy johnson nixon | |
nixon carter reagan reagan bush clinton clinton bush bush obama obama"] |
OlderNewer