Skip to content

Instantly share code, notes, and snippets.

View onnet's full-sized avatar

OnNet onnet

  • OnNet communications Inc
  • Saint-Petersburg
View GitHub Profile
#!/usr/bin/env python
import pika
import json
import requests
connection = pika.BlockingConnection(pika.ConnectionParameters(host='10.220.16.30'))
channel = connection.channel()
channel.exchange_declare(exchange='zbrt', exchange_type='topic')
result = channel.queue_declare(queue='', exclusive=True)
@onnet
onnet / smart-pub.md
Created April 8, 2018 14:34 — forked from glinton/smart-pub.md
SmartOS zone manipulation. Snapshot, image, rollback, and migrate.

SmartOS Zone Manipulation

Notes on snapshots, images, and migrations

Create Zone/KVM

# Create zone
vmadm create <<EOL
{
 "brand": "joyent",
 .