Unique environment for same server.
require 'http' | |
require 'json' | |
require 'peach' | |
require 'gabbler' | |
require 'pry' | |
USERNAME = "patio11" | |
unless File.exists?("comments.txt") | |
def get_json(url) |
--- | |
sockets: | |
- id: 'one' | |
address: '127.0.0.1' | |
port: '8001' | |
- id: 'two' | |
address: '127.0.0.2' | |
port: '8002' |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
I feel your pain. SSL is tough and is probably the number one stumbling block for new users getting Puppet working in their environment. Hopefully this answer helps reduce frustration and get you up and running. The good news is, once it's set up right, you won't have to fiddle with it any more.
First, make sure the problem you're having is actually an SSL problem. Almost all of the SSL-related error messages on the client start with the string SSL_connect
and then the error raised up by the underlying crypto libraries. General networking errors will not have this string, so normal network troubleshooting methodology applies; specifically, Connection refused - connect(2)
means a TCP connection attempt got a RST packet indicating a firewall or puppet master not running, and getaddrinfo: nodename nor servname provided, or not known
means the server's hostname (the value of puppet agent --configprint server
) was not resolvable in DNS/hosts.
Next, assuming you do have an SSL_connect
style error, it