Skip to content

Instantly share code, notes, and snippets.

@Dashue
Dashue / gist:0a3dbbc265d24ada49582a553dd45eff
Created April 7, 2017 23:49
vagrant error with rackspace
C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/ssl_socket.rb:116:in `connect_nonblock': An existing connection was forcibly closed by the remote host. - SSL_connect (Errno::ECONNRESET) (Excon::Error::Socket)
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/ssl_socket.rb:116:in `initialize'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/connection.rb:403:in `new'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/connection.rb:403:in `socket'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/connection.rb:100:in `request_call'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/middlewares/mock.rb:48:in `request_call'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/middlewares/instrumentor.rb:26:in `request_call'
from C:/Users/Jonh0/.vagrant.d/gems/2.2.5/gems/excon-0.55.0/lib/excon/middlewares/base.rb:16:in `request_
@Dashue
Dashue / HttpContextCacheHelper
Created October 25, 2011 18:36
Helper for inserting and getting entries from the HttpContext Cache
using System;
using System.Collections.Generic;
namespace PinnacleSports.DynamicLines.Helpers
{
public class HttpContextCacheHelper
{
private readonly ICache _cache;
public HttpContextCacheHelper()
@Dashue
Dashue / ImplicitOperators,cs
Created October 5, 2011 15:16
Implicit operators
static void Main(string[] args)
{
var domainModel = new DomainModel
{
Firstname = "Firstname",
Lastname = "Lastname"
};
ViewModel viewModel = domainModel;