Skip to content

Instantly share code, notes, and snippets.

View Thingee's full-sized avatar

Mike Perez Thingee

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thingee on github.
  • I am thingee (https://keybase.io/thingee) on keybase.
  • I have a public key ASCcmi-ReL9V7c1fBpPcaWuc2zQK9yFrRtEbTQ07FiV9yQo

To claim this, I am signing this object:

@Thingee
Thingee / cinder-ci-log-example
Created June 12, 2015 17:05
Cinder CI Log Example
├── dstat.log.txt
├── etc
│   ├── cinder
│   │   ├── api-paste.ini
│   │   ├── cinder.conf
│   │   ├── policy.json
│   │   ├── rootwrap.conf
│   │   └── rootwrap.d
│   │   └── volume.filters
│   ├── glance

Keybase proof

I hereby claim:

  • I am thingee on github.
  • I am thingee (https://keybase.io/thingee) on keybase.
  • I have a public key whose fingerprint is 577A 8C08 CE8F 7178 A4EC 3081 2E54 32AC 5A76 40F9

To claim this, I am signing this object:

@Thingee
Thingee / gist:ac82e6d30c6e72e86905
Created October 30, 2014 19:34
openvpn update resolv.conf
#!/bin/bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.
[root@host~]# targetcli ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- fileio ................................................................................................... [0 Storage Object]
| o- iblock .................................................................................................. [1 Storage Objects]
| | o- sdb .................................................................................................. [/dev/sdb activated]
| o- pscsi .................................................................................................... [0 Storage Object]
| o- rd_mcp ................................................................................................... [0 Storage Object]
o- ib_srpt .....................................................
[root@host target]# tree /sys/kernel/config/target
.
├── core
│   ├── alua
│   │   └── lu_gps
│   │   └── default_lu_gp
│   │   ├── lu_gp_id
│   │   └── members
│   ├── iblock_0
│   │   ├── sdb
#!/usr/bin/env python
from rtslib import *
# Setup an IBLOCK backstore
backstore = IBlockBackstore(0, mode='create')
try:
storage_object = IBlockStorageObject(backstore, "sdb", "/dev/sdb", gen_wwn=True)