Skip to content

Instantly share code, notes, and snippets.

View abutcher's full-sized avatar

abutcher

  • Raleigh, NC
View GitHub Profile
diff --git a/VERSION b/VERSION
index 09a3acf..7ceb040 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.6.0
\ No newline at end of file
+0.6.1
\ No newline at end of file
diff --git a/docs/man/man1/juicer-admin.1 b/docs/man/man1/juicer-admin.1
@abutcher
abutcher / check_rsyslog_queue
Created November 13, 2013 19:11
If any files are older than one hour grab your knees and cry loudly.
#!/usr/bin/env python
import os.path
import time
import sys
files = []
for line in os.popen("ls /var/log/rsyslog_queue/").readlines():
files.append("/var/log/rsyslog_queue/" + line.strip())
[root@pulp-gca01 x86_64]# rpmdev-diff 100d424232e36d2111b53716daaab8475885e1e7/m2crypto-debuginfo-0.21.1.pulp-8.el6.x86_64.rpm e4f630bd92ab16a4ebdc08b7eafec752/m2crypto-debuginfo-0.21.1.pulp-8.el6.x86_64.rpm
diff: old/m2crypto-debuginfo-0.21.1.pulp-8.el6.x86_64/usr/lib/debug/.build-id/fe/916d5dc558be334c68999fa75a765e1b280ba5: No such file or directory
diff: new/m2crypto-debuginfo-0.21.1.pulp-8.el6.x86_64/usr/lib/debug/.build-id/fe/916d5dc558be334c68999fa75a765e1b280ba5: No such file or directory
# Class: aws::failover::secondaryip
#
# Associate a secondary IP to the primary interface of a node.
#
# Parameters:
# service_ip - The ip address you've pre-allocated for the service
# aws_user - The system user who will be executing the aws call
#
# Sample Usage :
# class { 'aws::failover::secondaryip':
@abutcher
abutcher / juicer-ng
Last active August 29, 2015 14:14
*explosions*
#!/usr/bin/env python
import logging
from pulp.bindings.server import PulpConnection
from pulp.bindings.base import PulpAPI
from pulp.bindings.repository import RepositoryAPI
from pulp.bindings.auth import UserAPI
class Juicer(object):
def __init__(self):
@abutcher
abutcher / gist:92d93990acca464c075a
Last active August 29, 2015 14:17
Recreate ose dns entries
#!/usr/bin/env python
import argparse
from pymongo import MongoClient
import urllib
def main():
parser = argparse.ArgumentParser(description='Restore your OSE DNS entries.')
parser.add_argument('--database-host', dest='dbhost', action='store',
default='localhost',
@abutcher
abutcher / gist:ad9271655e4fe63a2740
Last active March 25, 2020 13:48
Regenerate ose dns entries
#!/usr/bin/env oo-ruby
require "/var/www/openshift/broker/config/environment"
Rails.configuration.analytics[:enabled] = false
Mongoid.raise_not_found_error = false
class Regenerate
def self.run
entries = []
Application.all.each do |app|
@abutcher
abutcher / destiny cards
Created April 3, 2015 22:27
destiny cards from api
#!/usr/bin/env ruby
require 'json'
require 'open-uri'
# display_name = ARGV[0]
# membership_id = JSON.load(open("https://www.bungie.net/platform/destiny/SearchDestinyPlayer/All/#{display_name}/"))["Response"][0]["membershipId"]
# puts membership_id.to_s
themes = JSON.load(open("http://www.bungie.net/Platform/Destiny/Vanguard/Grimoire/Definition/"))["Response"]["themeCollection"]
@abutcher
abutcher / human_log.py
Last active February 4, 2016 20:47 — forked from cliffano/human_log.py
FIELDS = ['cmd', 'command', 'stdout', 'stderr']
def human_log(res):
if type(res) == type(dict()):
for field in FIELDS:
if field in res.keys():
# use default encoding, check out sys.setdefaultencoding
print u'\n{0}:\n{1}'.format(field, res[field])
# or use specific encoding, e.g. utf-8
@abutcher
abutcher / gist:485f25c5e95102f9d508
Created September 1, 2015 19:04
ose nginx proxy
server {
listen 80;
listen 443 ssl spdy;
server_name <SERVER NAME>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_connect_timeout 2s;