Skip to content

Instantly share code, notes, and snippets.

import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
)
ip_address = '192.155.223.148'
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
hostname = 'pjackson-video'
domain_name = 'example.com'
client = SoftLayer.Client(
#!/usr/bin/env python
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
source /Users/_phil/Documents/antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle pip
# Extra bundles
<TaskerData dvi="1" sr="" tv="4.4u2m">
<Task sr="task9">
<cdate>1395068390823</cdate>
<edate>1407798105260</edate>
<id>9</id>
<nme>Toggle Silent</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>37</code>
<ConditionList sr="if">
#!/usr/bin/env python
import os
import sys
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
require 'softlayer_api'
require 'table_print'
softlayer_client = SoftLayer::Client.new()
account = SoftLayer::Account.account_for_client(softlayer_client)
servers = SoftLayer::VirtualServer.find_servers(:client => softlayer_client, :object_mask => 'mask[location.pathString]')
location_info = servers.map do |server|
datacenter, server_room, rack, slot = server['location']['pathString'].split('.')
{ :server => server.fullyQualifiedDomainName,
require 'softlayer_api'
require 'table_print'
softlayer_client = SoftLayer::Client.new()
account = SoftLayer::Account.account_for_client(softlayer_client)
servers = SoftLayer::VirtualServer.find_servers(:client => softlayer_client, :object_mask => 'mask[location.pathString]')
location_info = servers.map do |server|
datacenter, server_room, rack, slot = server['location']['pathString'].split('.')
{ :server => server.fullyQualifiedDomainName,
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
quote_id = 1234
client = SoftLayer.Client(
username=api_username,
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)