Skip to main content

Posts

Showing posts from 2014

I made a GIF!

Block Skype Ads and Banners

Skype and other free services is well loathed, yet necessary because of adoption by friends and family.  Make it less painful by reducing the advertising content. Open the 'Internet Options' panel through the Internet Explorer browser or Windows Control Panel Select the 'Security' tab Select the 'Restricted sites' icon Open the the 'Restricted Sites' panel by selecting the 'Sites' button Add this website to the zone:  https://apps.skype.com/ Select the 'Add' button Select the 'Close' button on the the 'Restricted Sites' panel Select the 'Ok' button on the 'Internet Options' panel Restart Skype Via: Reddit

Debian package (deb) archive extract

Had to extract multiple Debian packages recently (*.deb).  The packages are compressed with "ar" a Unix utility that maintains groups of files as a single archive file.  The ar command, like cpio, is less commonly used and even less friendly.  To extract only the Debian package data, excluding metadata), run: # for DEB in `ls *.deb`; do ar p $DEB data.tar.gz | tar -xzf - ; done or use the Debian package utility... # for DEB in `ls *.deb`; do dpkg-deb -x $DEB ./ ; done

Handling shell script command line arguments with getopt and case

Below is a short BASH scripting example how to use getopt and case together and provide better script command line argument handling than simple if-then-else.  It accepts out of order arguments, multiple methods for the same argument (short and long), and ignores unrecognized arguments. The script itself writes a ISO formatted date and time stamp to a file.  The default options for the number of iterations (count), the interval between iterations (sleep) and the output  file (write) can all be specified from the command line when running the script. #!/bin/bash usage () { echo -e "Usage: tick.sh [-c #] [-s #] [ -w FILE ]" echo -e "\t\t -c, --count= \t count for iterations to run (integer, default infinite)" echo -e "\t\t -s, --sleep= \t sleep between iterations (integer, default 5)" echo -e "\t\t -w, --write= \t write output to file (file system path, default ./tick-ISODATETIME.log)" echo -e &q

VMware Knowledge Base articles for SSL management

A VMware colleague shared with me these VMware Knowledge Base articles: "Creating certificate requests and certificates for vCenter Server 5.1 components (2037432)" at URL http://kb.vmware.com/kb/2037432 "Creating certificate requests and certificates for vCenter Server 5.5 components (2061934)" at URL http://kb.vmware.com/kb/2061934 Both include well written, documented OpenSSL examples for generating VMware certificates.  The OpenSSL basics are applicable to any task and therefore good references for anyone.  Tips found during my quick review of the above include: vSphere 5.x does not support wild card certificates vSphere 5.x requires using OpenSSL Version 0.9.8 Create OpenSSL configuration files for each service Verify that all parameters in the OpenSSL configuration files are properly set in the request and certificate Your feedback is needed! If this post was helpful, incorrect or could be better, please comment below. Also see thes