Skip to content

Instantly share code, notes, and snippets.

@sub-mod
sub-mod / get_ip_kube.go
Created March 4, 2015 21:02
get_ip_kube.go
package main
import (
"bufio"
"encoding/hex"
"fmt"
"io"
"net"
"os"
"strings"
@sub-mod
sub-mod / gist:d0df2b90227a239b2496
Created February 23, 2015 17:17
label_methods_dump
this.get_entities_exists = function get_entities_exists(lname) {
var gservices = $.grep(self.services, function(element) {
if (element) { //skip kubernetes services
if (element.spec.selector) {
if (element.spec.selector.hasOwnProperty(lname)) {
return true;
}
}
}
});