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 jenkins.* | |
import jenkins.model.* | |
import hudson.* | |
import hudson.model.* | |
nodes = Jenkins.getInstance().getGlobalNodeProperties() |
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 pycurl | |
import cStringIO | |
import json | |
import base64 | |
import sys | |
import re | |
from pprint import pprint | |
from datetime import datetime | |
from calendar import timegm |
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 calendar, datetime,time | |
import hashlib | |
import pycurl | |
import cStringIO | |
import json | |
def get_sig(api_key,api_secret,expire_time,funnel_id,unit): | |
api_str='api_key=%s' % api_key | |
expire_str='expire=%s' % expire_time |
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
require 'facter' | |
{ :MemorySizeRaw => "MemTotal", | |
:MemoryFreeRaw => "MemFree", | |
:SwapSizeRaw => "SwapTotal", | |
:SwapFreeRaw => "SwapFree" | |
}.each do |fact, name| | |
Facter.add(fact) do | |
confine :kernel => :linux | |
setcode do |