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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'open-uri' | |
sample_size = 1000 | |
specs = Marshal.load(Gem.gunzip(File.read("latest_specs.4.8.gz"))) | |
sample = specs.sample(sample_size) |
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
#!/usr/bin/python | |
import xmlrpclib, sys, socket | |
TASKO_URL = "http://localhost:2829/RPC2" | |
try: | |
client = xmlrpclib.Server(TASKO_URL) | |
result = client.tasko.one(0) | |
if result == 1: |
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
provider "libvirt" { | |
uri = "qemu:///system" | |
} | |
resource "libvirt_network" "network" { | |
name = "mynetwork" | |
mode = "nat" | |
domain = "whatever.local" | |
addresses = ["192.168.127.0/24"] | |
} |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import subprocess | |
import sys | |
import zmq | |
SERVER_ADDRESS = "tcp://suma3pg.tf.local:4505" | |
print "libzmq-%s" % zmq.zmq_version() |
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
#!/usr/bin/python | |
import sys | |
import xmlrpclib | |
if len(sys.argv) != 5: | |
print("Usage: getdetails.py <SUSE MANAGER HOSTNAME> <USERNAME> <PASSWORD> <SYSTEM ID>") | |
sys.exit(1) | |
manager_url = "http://" + sys.argv[1] + "/rpc/api" | |
client = xmlrpclib.Server(manager_url, verbose=0) |
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
#!/usr/bin/python | |
import sys | |
import xmlrpclib | |
if len(sys.argv) != 5: | |
print("Usage: get_package_list.py <SUSE MANAGER HOSTNAME> <USERNAME> <PASSWORD> <SYSTEM NAME>") | |
sys.exit(1) | |
_, hostname, username, password, system_name = sys.argv |
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
#!/usr/bin/python | |
import sys | |
import xmlrpclib | |
if len(sys.argv) != 5: | |
print("Usage: change_channels.py <SUSE MANAGER HOSTNAME> <USERNAME> <PASSWORD> <NEW BASE CHANNEL>") | |
sys.exit(1) | |
_, hostname, username, password, channel = sys.argv |
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
2018/04/17 07:23:52 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161 | |
2018/04/17 07:23:52 [INFO] Go runtime version: go1.10.1 | |
2018/04/17 07:23:52 [INFO] CLI args: []string{"/root/opt/terraform", "plan", "-out", "plan.out"} | |
2018/04/17 07:23:52 [DEBUG] Attempting to open CLI config file: /root/.terraformrc | |
2018/04/17 07:23:52 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/04/17 07:23:52 [INFO] CLI command args: []string{"plan", "-out", "plan.out"} | |
2018/04/17 07:23:52 [INFO] command: empty terraform config, returning nil | |
2018/04/17 07:23:52 [DEBUG] command: no data state file found for backend config | |
2018/04/17 07:23:52 [DEBUG] New state was assigned lineage "1260e09e-f160-7f89-c9d9-0e37451b1c16" | |
2018/04/17 07:23:52 [INFO] command: backend initialized: <nil> |
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
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
require 'time' | |
require 'pg' | |
def random_string(rng) | |
"%02x" % rng.rand(2 ** 64) | |
end |
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
-- oracle equivalent source sha1 231a317e7ec144399cc913861269e968d41b8840 | |
-- | |
-- Copyright (c) 2008--2012 Red Hat, Inc. | |
-- | |
-- This software is licensed to you under the GNU General Public License, | |
-- version 2 (GPLv2). There is NO WARRANTY for this software, express or | |
-- implied, including the implied warranties of MERCHANTABILITY or FITNESS | |
-- FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 | |
-- along with this software; if not, see | |
-- http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. |
OlderNewer