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
func testImplicitAuth() { | |
conf := &oauth2.Config{ | |
ClientID: "clientid", | |
RedirectURL: "https://server.com", | |
Endpoint: oauth2.Endpoint{ | |
TokenURL: "http://test.com/auth/token", | |
AuthURL: "http://test.com/auth/authorize", | |
}, | |
} |
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 ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
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
{ | |
"kind":"Service", | |
"apiVersion":"v1", | |
"metadata":{ | |
"name":"goapp-service" | |
}, | |
"spec":{ | |
"ports": [ | |
{ | |
"port":80, |
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
{ | |
"kind":"ReplicationController", | |
"apiVersion":"v1", | |
"id":"goapp", | |
"metadata":{ | |
"name":"goapp-controller" | |
}, | |
"spec":{ | |
"replicas":3, | |
"selector":{ |
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 ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
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 ( | |
"crypto/tls" | |
"crypto/x509" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
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 ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |
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
public class ArchaiusPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { | |
@Override | |
protected String resolvePlaceholder(String placeholder, Properties props, int systemPropertiesMode) { | |
return DynamicPropertyFactory.getInstance().getStringProperty(placeholder, "null").get(); | |
} | |
} |
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
#make sure were up to date | |
yum update -y | |
#install java 7 | |
yum install -y java-1.7.0-openjdk.x86_64 | |
#install tomcat 6 | |
yum install -y tomcat6 tomcat6-admin-webapps tomcat6-webapps | |
#edit the users file to allow admin |
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
#install gcc | |
yum install gcc | |
#install C++ extensions | |
yum install gcc-c++.x86_64 | |
#install uuid dev (may not be needed) | |
#yum install uuid-devel.x86_64 | |
#install libuuid |
NewerOlder