Skip to content

Instantly share code, notes, and snippets.

View techzilla's full-sized avatar

J. M. Becker techzilla

View GitHub Profile
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"runtime"
"sync"
"time"
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"time"
"github.com/segmentio/kafka-go"
package main
import (
"fmt"
"log"
"time"
"github.com/Shopify/sarama"
)
import threading
import time
import json
import os
import signal
from datetime import datetime, timezone
from confluent_kafka import Producer
# Kafka broker(s) configuration
bootstrap_servers = 'your_kafka_broker(s)'
#!/bin/sh
##
## FILE: pulp-autocreate.sh
##
## DESCRIPTION: Auto Create Mirror Repositories
##
REPO_ARGS='
--repo-id=remi-7-x86_64 --feed "http://mirror5.layerjet.com/remi/enterprise/7/remi/x86_64/"
--repo-id=remi-7-x86_64-safe --feed "http://mirror5.layerjet.com/remi/enterprise/7/safe/x86_64/"
#!/bin/sh
##
## FILE: split-vss2xhtml.sh
##
## DESCRIPTION: Split VSS/SVG Sections
##
## Exit Point
die() {
[ -n "$2" ] && echo "$2"
#!/usr/bin/env python
# (c) 2016, J. M. Becker <[email protected]>
# GPL V3
######################################################################
'''
VMware Inventory Script
=======================
@techzilla
techzilla / gogs-clonecreatepush.sh
Created January 20, 2016 22:25
Git Clone, Gogs Create, Git Push
#!/bin/sh
##
## FILE: gogs-clonecreatepush.sh
##
## DESCRIPTION: Git Clone, Gogs Create, Git Push
##
## AUTHOR: J. M. Becker
##
## Exit Point
die() {
@techzilla
techzilla / vmware.py
Last active September 27, 2015 02:31
POC, better scaling, Ansible pyVmomi dynamic inventory
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
VMware Inventory Script
=======================
'''
# import logging
# import time
# import os.path
# import subprocess