Syntax Specific Key Bindings in Sublime Text

I wanted to remap one of the key bindings for selecting a paragraph / expanding the current selection – but just in the Ruby syntax. Here’s what I added to my Default (OSX).sublime-keymap file:

// when using ruby syntax, set cmd+shift+b to run "expand selection to indentation (or paragraph)"
"keys": ["super+shift+b"],
"command": "expand_selection",
"context": [ { "key": "selector", "operator": "equal", "operand": "source.ruby" } ],
"args": {"to": "indentation"}
// "args": {"to": "paragraph"}
// when not using ruby, set that shortcut to "expand selection"
"keys": ["super+shift+b"],
"command": "expand_selection",
"context": [ { "key": "selector", "operator": "not_equal", "operand": "source.ruby" } ],
"args": {"to": "scope"}
Posted in Uncategorized | Leave a comment

Select a Ruby Block (scope) in Sublime Text

Coming from PHP to Ruby you may wonder if there is a way to select Ruby ( or Ruby on Rails ) block scope that starts with things like begin or def and finishes with end

In PHP it was possible using the commands like

Expand Selection to Scope


Expand Selection to Block

and in PHP it works nicely:

Select a Ruby Block (scope) in Sublime Text

But in the Ruby syntax neither of these items work. So how can you select a ruby block scope in Sublime Text 2 / 3 ?

Easier than you might imagine: just use “Expand Selection to Paragraph” instead

Posted in Tech Tips | Tagged , | Leave a comment

Centos – 3 Ways to Check openSSL Version / Heartbleed vulnerability

If you’re running a Centos server or cPanel WHM and want to see if your server’s OpenSSL version is affected by Heartbleed you can do a few things. Here are three ways to check

Check your OpenSSL version via the command line

run this:

openssl version

It should result in something like this:

OpenSSL 1.0.1e-fips 11 Feb 2013

While 1.0.1e is listed as being vulnerable, your system may have already had a patch installed to fix that version, so to check for that patch run:

rpm -q --changelog openssl-1.0.1e | grep -B 1 CVE-2014-0160

If the patch has been applied you should get a result like this:

* Mon Apr 07 2014 Tomáš Mráz <tmraz> 1.0.1e-16.7
- fix CVE-2014-0160 - information disclosure in TLS heartbeat extension</tmraz>

Check for Heartbleed using this website

Build the Heartbleed command line checker tool ( requires golang )

Posted in Server Administration | Leave a comment

`require’: cannot load such file — ruby-oci8 (LoadError)

If you are attempting to use the Oracle OCI8 gem with Ruby, and you have correctly followed the installation instructions, but you are getting a message like:

`require': cannot load such file -- ruby-oci8 (LoadError)

You may want to check your ruby script and make sure that you have this at the top:

require 'oci8'

Because even though the gem is named ruby-oci8 using this:

require 'ruby-oci8'

Will cause the error:

`require’: cannot load such file — ruby-oci8 (LoadError)

Posted in Tech Tips | Tagged | Leave a comment

The Patrons

The fifteen patrons, as listed in Veils of Destiny: A Threads of Fate Novella

  • Anniah – Patron of Justice. Dominion: First-day.
  • Micka – Patron of Harvest. Dominion: Second-day.
  • Stahl – Patron of War. Dominion: Third-day.
  • Jardin – Patron of Travelers. Dominion: Fourth-day.
  • Suzumu – Patron of Harmony. Dominion: Fifth-day.
  • Rizea – Patron of Revenge. Dominion: Sixth-day.
  • Ehle – Patron of Destiny. Dominion: Seventh-day.
  • Ozvald – Patron of Commerce. Dominion: Eighth-day.
  • Katrien – Patron of Thieves. Dominion: Ninth-day.
  • Arawn – Patron of Chaos. Dominion: Tenth-day.
  • Zalis – Patron of Healing. Dominion: Eleventh-day.
  • Ardin – Patron of Arts. Dominion: Twelfth-day.
  • Dauphinee – Patron of Love. Dominion: Thirteenth-day.
  • Eris – Patron of Magic. Dominion: Fourteenth-day.
  • Cristiana – Patron of Death. Dominion: Fifteenth-day.
The Patrons

Maybe “Ardin Patron of Ballet” is related to ardin / (ardon) patron of the arts.

Posted in Random | Leave a comment

Time Warner Cable: Our merger with Comcast: What it means for you.

  View Web Version | En Español

March 2014

Dear Valued Customer:

Recently, Time Warner Cable announced plans to merge with Comcast, forming an industry-leading technology and media company dedicated to delivering great customer experiences.

Above all, this merger will benefit you, our customers. Our two companies have been behind many of the innovative services that you enjoy every day—digital cable TV, high-speed Internet, DVRs, Video On Demand and WiFi in the home and on-the-go—to name just a few. The combined company will innovate faster and deploy even better products and features, including a superior video guide, faster Broadband Internet speeds and even more WiFi access points so you can access the Internet wherever you go.

We expect the merger to close around the end of 2014. In the meantime, all of us at Time Warner Cable remain committed to providing you with great TV, ultra-fast Internet, rock solid phone service and innovative home security and monitoring. And we will continue to make significant investments to improve reliability and to enhance our customer service.

We are very excited about the promise of this combination for you, our customers.
We’ll keep you posted as things evolve in the coming months.

As always, thank you for choosing Time Warner Cable.

Robert D. Marcus
Chairman and Chief Executive Officer
Important Information For Investors And Shareholders
In connection with the proposed transaction between Comcast Corporation (“Comcast”) and Time Warner Cable Inc. (“Time Warner Cable”), Comcast and Time Warner Cable will file relevant materials with the Securities and Exchange Commission (the “SEC”), including a Comcast registration statement on Form S-4 that will include a joint proxy statement of Comcast and Time Warner Cable that also constitutes a prospectus of Comcast, and a definitive joint proxy statement/prospectus will be mailed to shareholders of Comcast and Time Warner Cable. INVESTORS AND SECURITY HOLDERS OF COMCAST AND TIME WARNER CABLE ARE URGED TO READ THE JOINT PROXY STATEMENT/PROSPECTUS AND OTHER DOCUMENTS THAT WILL BE FILED WITH THE SEC CAREFULLY AND IN THEIR ENTIRETY WHEN THEY BECOME AVAILABLE BECAUSE THEY WILL CONTAIN IMPORTANT INFORMATION. Investors and security holders will be able to obtain free copies of the registration statement and the joint proxy statement/prospectus (when available) and other documents filed with the SEC by Comcast or Time Warner Cable through the website maintained by the SEC at Copies of the documents filed with the SEC by Comcast will be available free of charge on Comcast’s website at or by contacting Comcast’s Investor Relations Department at 1-866-281-2100. Copies of the documents filed with the SEC by Time Warner Cable will be available free of charge on Time Warner Cable’s website at or by contacting Time Warner Cable’s Investor Relations Department at 1-877-446-3689.

Comcast, Time Warner Cable, their respective directors and certain of their respective executive officers may be considered participants in the solicitation of proxies in connection with the proposed transaction. Information about the directors and executive officers of Time Warner Cable is set forth in its Annual Report on Form 10-K for the year ended December 31, 2013, which was filed with the SEC on February 18, 2014, its proxy statement for its 2013 annual meeting of stockholders, which was filed with the SEC on April 4, 2013, and its Current Reports on Form 8-K filed with the SEC on April 30, 2013, July 29, 2013 and December 6, 2013. Information about the directors and executive officers of Comcast is set forth in its Annual Report on Form 10-K for the year ended December 31, 2013, which was filed with the SEC on February 12, 2014, its proxy statement for its 2013 annual meeting of stockholders, which was filed with the SEC on April 5, 2013, and its Current Reports on Form 8-K filed with the SEC on July 24, 2013, August 16, 2013 and February 14, 2014. These documents can be obtained free of charge from the sources indicated above. Additional information regarding the participants in the proxy solicitations and a description of their direct and indirect interests, by security holdings or otherwise, will be contained in the joint proxy statement/prospectus and other relevant materials to be filed with the SEC when they become available.

Cautionary Statement Regarding Forward-Looking Statements
Certain statements in this communication regarding the proposed acquisition of Time Warner Cable by Comcast, including any statements regarding the expected timetable for completing the transaction, benefits and synergies of the transaction, future opportunities for the combined company and products, and any other statements regarding Comcast’s and Time Warner Cable’s future expectations, beliefs, plans, objectives, financial conditions, assumptions or future events or performance that are not historical facts are “forward-looking” statements made within the meaning of Section 27A of the Securities Act of 1933, as amended, and Section 21E of the Securities Exchange Act of 1934, as amended. These statements are often, but not always, made through the use of words or phrases such as “may,” “believe,” “anticipate,” “could,” “should,” “intend,” “plan,” “will,” “expect(s),” “estimate(s),” “project(s),” “forecast(s),” “positioned,” “strategy,” “outlook” and similar expressions. All such forward-looking statements involve estimates and assumptions that are subject to risks, uncertainties and other factors that could cause actual results to differ materially from the results expressed in the statements. Among the key factors that could cause actual results to differ materially from those projected in the forward-looking statements are the following: the timing to consummate the proposed transaction; the risk that a condition to closing of the proposed transaction may not be satisfied; the risk that a regulatory approval that may be required for the proposed transaction is not obtained or is obtained subject to conditions that are not anticipated; Comcast’s ability to achieve the synergies and value creation contemplated by the proposed transaction; Comcast’s ability to promptly, efficiently and effectively integrate Time Warner Cable’s operations into those of Comcast; and the diversion of management time on transaction-related issues. Additional information concerning these and other factors can be found in Comcast’s and Time Warner Cable’s respective filings with the SEC, including Comcast’s and Time Warner Cable’s most recent Annual Reports on Form 10-K, Quarterly Reports on Form 10-Q and Current Reports on Form 8-K. Comcast and Time Warner Cable assume no obligation to update any forward-looking statements. Readers are cautioned not to place undue reliance on these forward-looking statements that speak only as of the date hereof.

Posted in Uncategorized | Leave a comment

USIEC Scam – Fake Award

There is currently a scam going on by a company calling themselves the “US Institute for Excellence in Commerce” in which they email companies such as Marketing Firms and Law Offices and tell them they’ve won an award – and they have the award and press kit and other items available – but these must be “purchased” which is where the scam comes into place – this company is selling fictitious awards.

They send a message saying something like:

Each year, the US Institute for Excellence in Commerce (USIEC) panel identifies firms that have demonstrated excellence in their respective fields and achieved commercial recognition. Your firm has been one of those selected this year and this award exemplifies that distinguished accomplishment.

Here are some examples of the awards they have on their site:

Here is a link to one of the “awards”




If you have any thoughts about if they are real, check the creation date for their domain name, registered only a few days before January 2014:

Domain Name:USIEC.ORG
Domain ID: D170536983-LROR
Creation Date: 2013-12-28T22:42:31Z
Updated Date: 2014-02-27T03:46:26Z

Were you affected by this too? Leave a comment below.

Posted in Marketing | Tagged | 1 Comment

Nagios Passive Check Example

The data below that makes up a service definition and commands definition below should serve as an example of what a passive check definition may look like:

define service{
    service_description PassiveCheck
    check_freshness     1
    ; active checks are NOT enabled
    active_checks_enabled   0
    ; passive checks are enabled (this is how results are reported)
    passive_checks_enabled  1
    ; 26 hour threshold, since backups may not always finish at the same time
    freshness_threshold 93600
    ; this command is run only if the service results are "stale"
    check_command       no-backup-report
    notification_interval           0
    check_interval                     60
    retry_interval                     1
    max_check_attempts                 1
    # parallelize_check               1
    # is_volatile                     1
    # obsess_over_service             0
define command{
    command_name    no-backup-report
    command_line    /usr/local/nagios/libexec/check_dummy 2 "CRITICAL: Results of backup job were not reported!"
Posted in Linux | Tagged | Leave a comment

Yamaha 4500 Generator – Won’t Start – Solved – Manual

Consumer: Have you ever rebuilt or repaired any Yamaha generators? Or maybe just a generator in general?

Yamaha Generator Advice: Our most common generator is the yamaha EF2000is generator, followed by the EF4500 iSE

Consumer: How do you like working on those models?

Yamaha Generator Advice: I convert a lot from gas to be able to run on gas, propane, or natural gas. Are you going to buy a generator?

Consumer: Ok. I got an old 4500 – Yamaha yf4500 – yf-4500 – I’m trying to get running at work that ran fine all summer. Gas is good, new spark plug that is sparking, but won’t pull start. All switches set to run/on. Any ideas what I should check tomorrow? The Internet was no help. And yes fuel valve is on and clear.

Continue reading

Posted in Tech Tips | Tagged , | Leave a comment

Fix Thunderbolt Display Static Noise on OS X Mavericks

(May also work on other versions of OS X)

Premise: With a Macbook Pro Late 2013 running OS X Mavericks and a brand new Thunderbolt Display there is an issue where when the Macbook is connected to the Thunderbolt Display it emits a soft hissing sound – like static – or white noise.

There seem to be a lot of people with this issue – one popular thread on the Apple Support Site has around 30k views to date.

In a nutshell a few things that people are reporting that fix the issue for them include:

Continue reading

Posted in Mac, Tech Tips | Tagged , , , | Leave a comment