Skip to content

Instantly share code, notes, and snippets.

View davecowart's full-sized avatar

Dave Cowart davecowart

  • Homewood, Alabama
View GitHub Profile
@t2
t2 / ssh-git-push
Last active January 8, 2020 12:13
Github & Bitbucket (SSH) - Port 22 Blocked
# vi ~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
require "erb"
require "pathname"
DOT_TEMPLATE=<<-END
digraph {
size="20,20";
overlap=false;
sep=0.4;
graph [fontname=Helvetica,fontsize=10];
node [fontname=Helvetica,fontsize=10];
@jmoody
jmoody / navbar_steps.rb
Created July 27, 2012 19:49
calabash-cucumber steps for dealing with the navigation bar
def navbar_visible?
!query('navigationBar').empty?
end
def navbar_has_back_button?
!query("navigationItemButtonView").empty?
end
def navbar_should_have_back_button
unless navbar_has_back_button?
@luckyllama
luckyllama / example.sh
Created July 13, 2012 20:56
The Git-CompareBranchesMerged Cmdlet
# Assume we have a QA branch and a master (production) branch.
# The following feature branches have been merged with QA: A, B, C, D, E, F
# The following feature branches have been merged with master: A, B, C
PS> gcbm QA master
Listing branches in QA which are not in master
-> D
-> E
-> F
PS>
@javan
javan / screenshot.js
Created June 19, 2012 21:40
Create a screenshot of any URL using phantomjs (headless webkit)
//
// Example usage: phantomjs screenshot.js http://yahoo.com /tmp/yahoo.png
//
var system = require('system');
var url = system.args[1];
var filename = system.args[2];
var page = new WebPage();
page.open(url, function (status) {
@bradwilson
bradwilson / My.Types.ps1xml
Created May 2, 2012 03:54
My profile.ps1 (and several related scripts)
<Types>
<Type>
<Name>System.String</Name>
<Members>
<ScriptProperty>
<Name>ToBase64</Name>
<GetScriptBlock>
[System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this))
</GetScriptBlock>
</ScriptProperty>

What's Wrong with Ruby? Hah Yeah, It's Me!

(by _why, 16 Mar 2007)

In an article posted entitled "What’s Wrong With Ruby?", the author cites me as one of the main problems:

If I was put off Ruby by the hype, I was put off more by the many cutesy introductory tutorials I encountered when trying to get into it. Why’s