Skip to content

Instantly share code, notes, and snippets.

<section data-id="7bb20dfaad1b68486d62b23c68c87824">
<div class="sl-block" data-block-type="text" style="width: 800px; left: 80px; top: 210px; height: auto;" data-block-id="3d88ff058802a160a65cb722c42ab560">
<div class="sl-block-content" data-placeholder-tag="h1" data-placeholder-text="Title Text" style="z-index: 10;">
<h1>Bash To Basics</h1>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 600px; left: 180px; top: 331px;" data-block-id="c5d649a43afe3d010525fe3b50d08c36">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 13;">
<p><span style="font-size:20px">Connor McKelvey</span></p>
</div>

Keybase proof

I hereby claim:

  • I am connormckelvey on github.
  • I am connormckelvey (https://keybase.io/connormckelvey) on keybase.
  • I have a public key whose fingerprint is 99D8 C1C5 9C12 8DA5 7B1D 1236 1CE9 EB84 548A 3284

To claim this, I am signing this object:

@connormckelvey
connormckelvey / vimrc
Last active August 29, 2015 14:19 — forked from r00k/vimrc
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@connormckelvey
connormckelvey / es5.js
Last active August 29, 2015 14:16 — forked from whichsteveyp/es5.js
// one
[].each(function (foo) {
return foo.info ? "hello" : "hi";
});
// two
[].each(function (foo) {
return foo.info ? "hello" : "hi";
});
// Social Colors
// ====================================================================
$facebook_color : hsla(222, 47%, 40%, 1); // #365397
$twitter_color : hsla(198, 100%, 47%, 1); // #00a9f1
$linkedin_color : hsla(203, 100%, 35%, 1); // #006db3
$apple_color : hsla(0, 0%, 45%, 1); // #737373
$google_color : hsla(217, 89%, 61%, 1); // #4285f4
$google_plus_color : hsla(8, 74%, 53%, 1); // #e0452c
#!/bin/bash
PAGES=(
"http://www.example.com"
"http://www.example.com/home"
"http://www.example.com/about"
)
for ((i = 0; i < ${#PAGES[@]}; i++))
do
webkit2png ${PAGES[$i]} --fullsize
@connormckelvey
connormckelvey / gist:97d56bed872ecaa6ea00
Created August 6, 2014 16:12
Take Screenshots of Website
#!/bin/bash
PAGES=("http://www.example.com/"
"http://www.example.com/about.aspx"
"http://www.example.com/blog/"
"http://www.example.com/blog/?page=1")
for ((i = 0; i < ${#PAGES[@]}; i++))
do
webkit2png ${PAGES[$i]} --fullsize
done
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
* always reference jQuery with $, even when in .noConflict() mode.
" Remap :W to :w
command W w
+command Wq wq
" Better mark jumping (line + col)
nnoremap ' `
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"