Oracle VM Consulting
view counter

Servers & Storage Feed

Sun Servers and Storage, Solaris, Oracle Linux, Red Hat Linux, Oracle VM for x86, Oracle VDI and Virtualization resources, news, and support articles.

Learning command arguments using

Suppose you come across the following command in a script. You are not quite sure what it does. Specifically, you want to know the meaning of each command argument. $ wget --spider -r -nd -nv -H -l 1 -w 2 -o test.log Traditionally, to find out what each argument does, you look up the man page for the wget command. Then, you scroll through page after page of information, and extract the description for each argument. This is a time-consuming, and eye-straining exercise.

Python – find files in directory with extension

The glob module finds all the pathnames matching a specific pattern according to the rules used by the Unix Shell. No tilde expansion is done, but *, ?, and character ranges expressed with [] will be correctly matched.
To list all files ending with *.txt in /home/guest directory:

>>> import glob
>>> glob.glob("/home/guest/*.txt")

[‘/home/guest/syslog.txt’, ‘/home/guest/mysql.txt’, ‘/home/guest/topics.txt’, ‘/home/guest/bus.txt’]

Get 56GB of free cloud storage in one folder!

Dropbox gives you up to 16GB free. Google Drive & Gmail give you 15GB.OneDrive gives you 15GB.Box gives you 10GB.

Oracle Data Placement on XtremIO

Many customers these days are implementing Oracle on XtremIO so they benefit from excellent, predictable performance and other benefits such as inline compression and deduplication, snapshots, ease of use etc.

CVE-2015-0235: Replacing the CloudStack systemvm template

Due to the Ghost bug aka CVE-2015-0235, we had to upgrade 500+ system vm’s. We’re running CloudStack 4.4.2. The version of the systemvm template it uses was 4.4.1 and so we created 4.4.2 and used that instead.

Username and password with wget/curl

To download a url with basic authentication we need to pass username & password.
To acheive this functionality with wget or curl observer following examples:
With curl:
$ curl -u 'username:password' ''
With wget:
$ wget --user='username' --password='password' ''
Wget with cookie:

Python – remove first and last character

By using slicing technique we can remove first ans last character from a string.
Observe following example for more details:

>>> input = "abcd"
>>> input[1:-1]

In above example I removed a and d from input string (‘abcd’) with input[1:-1], so out our output is ‘bc’.

Xen Project @ FOSDEM

Going to FOSDEM’15? Well, you want to check out the schedule of the Virtualization & IaaS devroom then, and make sure you do not miss the talks about Xen.

Here they are the talks, in some more details:

Using Astral from a known location

I’ve been working out a minor idea involving the control of some household actions based on local time, but relative to sunrise and sunset rather than a naive time of day. Simon Kennedy’s Astral is a Python module that can compute these times, but its examples focus on retrieval of locations from major cities. Most places aren’t major cities in the module’s list, so I spent a little time to read the source to determine what other entry points were enabled.

Using gdebi to install and resolve dependencies for a local deb file

Debian comes with over 37,500 packages in its default distribution. Yet, occasionally, we still need to install a package which has not made it into the default distribution. If your current system already has all the prerequisite packages installed, then life is good. You simply download the deb file, and install it with the dpkg command: $ sudo apt-get update $ sudo dpkg -i somelocal.deb

view counter