Skip to content

Instantly share code, notes, and snippets.

@sergiopena
sergiopena / break.py
Created October 1, 2018 09:07 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
// Setting up an IRC server on Cent 6
// Create a user and group for this guy
$ groupadd ircadmin && useradd -m -g ircadmin -s /bin/bash ircadmin
// Make a working directory (/var/source/)
mkdir source && cd source
// Grab the latest versions of Anope and UnrealIRCd
$ wget http://www.unrealircd.com/downloads/Unreal3.2.9.tar.gz http://downloads.sourceforge.net/project/anope/anope-stable/Anope%201.8.7/anope-1.8.7.tar.gz

VSM Rest API ( < v2.2)

Take care to build the hypervisor address as follows (last '/' is mandatory):

http://#{ip}:#{port}/

Hypervisor types are:

  • VMX_04
@sergiopena
sergiopena / api.md
Last active December 17, 2015 19:49 — forked from enricruiz/api.md

VSM Rest API ( >= v2.2)

Take care to build the hypervisor address as follows (last '/' is mandatory):

http://#{ip}:#{port}/

Hypervisor types are:

  • VMX_04
#!/usr/bin/ruby
#
# Author: Sergio Pena
#
# yum -y install mysql-devel
# gem install mysql
# gem install rest-client
# gem install logger
# gem install xml-simple
@sergiopena
sergiopena / vmtasks.rb
Created December 4, 2012 23:27
List tasks of a virtual machine and change last task state
#!/usr/bin/env ruby
require 'rubygems'
require 'trollop'
require 'redis'
require 'taulukko'
require 'date'
=begin