This file contains hidden or 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 ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "regexp" | |
| "os" | |
| ) |
This file contains hidden or 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 ( | |
| "github.com/docker/docker/client" | |
| "github.com/docker/docker/api/types" | |
| "golang.org/x/net/context" | |
| "encoding/json" | |
| "fmt" | |
| ) |
This file contains hidden or 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/ioutil" | |
| "github.com/docker/engine-api/client" | |
| "github.com/docker/engine-api/types" | |
| "golang.org/x/net/context" | |
| ) |
This file contains hidden or 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 bs4 import BeautifulSoup | |
| from graphitesend import graphitesend | |
| import requests | |
| import re | |
| gsend = graphitesend.init(graphite_server='localhost', group='dockerhub', system_name="", prefix="") | |
| req = requests.get("https://registry.hub.docker.com/repos/qnib/") | |
| data = req.text | |
| soup = BeautifulSoup(data) | |
| res = {} |
This file contains hidden or 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 bs4 import BeautifulSoup | |
| import requests | |
| req = requests.get("https://registry.hub.docker.com/u/qnib/monster/") | |
| data = r.text | |
| soup = BeautifulSoup(data) | |
| for div in soup.findAll("span", class_="downloads"): | |
| print div.text |
This file contains hidden or 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
| function create_rangeset { | |
| # consumes a list of integers and creates a rangeset | |
| #### | |
| # $ create_rangeset 0 1 2 5 6 {10..50} | |
| # 0-2,5-6,10-50 | |
| RSET="" | |
| CNT="-1" | |
| PREV_CNT="-1" | |
| for INT in $*;do |
This file contains hidden or 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
| import socket | |
| import pickle | |
| import random | |
| import time | |
| import struct | |
| import threading | |
| import urllib2 | |
| #from sc_watchdog.logger import log |
NewerOlder