Skip to content

Instantly share code, notes, and snippets.

View bradlucas's full-sized avatar

Brad Lucas bradlucas

View GitHub Profile
@bradlucas
bradlucas / gist:1233763
Created September 22, 2011 00:53
find-new-members
(defn find-new-members
"Return the new people are only in the new-list but not in the current-list.
Both lists are lists of maps where they have at least :first_name and :last_name keys.
"
[current-list new-list]
(let [existing (set (remove #(nil? (second %)) (map (juxt :first_name :last_name) current-list)))]
(remove #(existing ((juxt :first_name :last_name) %)) new-list)))
@bradlucas
bradlucas / gist:5708933
Created June 4, 2013 19:47
Fixes issue with tablesorter scroller showing the first table's header as the header for all subsequent pages
/*
Copyright (C) 2011 T. Connell & Associates, Inc.
Dual-licensed under the MIT and GPL licenses
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@bradlucas
bradlucas / get-all-first-commit-authors-repos.sh
Last active April 12, 2016 18:56
get-all-first-commit-authors-repos.sh
#!/bin/sh
# For each Repo show Author and the Repo Name
(for f in `find . -maxdepth 1`;
do
pushd > /dev/null $f
echo "$(get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' ') : $f"
popd > /dev/null
done)
@bradlucas
bradlucas / get-all-first-commit-authors.sh
Last active April 12, 2016 18:56
get-all-first-commit-authors.sh
#!/bin/sh
(for f in `find . -maxdepth 1`;
do
pushd > /dev/null $f
get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' '
popd > /dev/null
done) | sort --ignore-case | uniq
@bradlucas
bradlucas / release-procedures.md
Last active April 12, 2016 18:57
release-procedures.md

Release Procedures

Some Rules

  • No releases after hours unless previously negotiated

  • Reponsible parties need to be present during the release

    • ie, Developer and Ops
  • Different systems have different release requirements

@bradlucas
bradlucas / Pipeline Eclipse Notes
Last active April 12, 2016 19:01
Pipeline Eclipse Notes
# Introduction
The following are some notes on setting up a development environment for the Pipeline Java projects.
An assumption is made that you are on a Mac and are going to use Eclipse.
Steps
- Install the latest Eclipse
- Clone all the ActionX repos
- Setting up projects in Eclipse
@bradlucas
bradlucas / redshift-rank-quries.org
Last active April 15, 2016 14:12
Redshift Rank Queries - Ids

Redshift Rank Queries

ids

1 2 3 4 5 6 7

@bradlucas
bradlucas / get-first-commit-log.sh
Last active April 27, 2016 13:38
get-first-commit.sh
#!/bin/sh
# @see http://stackoverflow.com/a/5189296
git log $(git rev-list --max-parents=0 HEAD)
@bradlucas
bradlucas / git-flow-pattern.md
Last active May 2, 2016 16:38
git-flow-pattern.md

"Git is easy to learn and has a tiny footprint with lightning fast performance."

That said you can always learn more.

The more you undertand and use something the more transparent it will be.

If you find yourself struggling with a tool you need to work more with it. Practice.

@bradlucas
bradlucas / simple-git-flow-enhancements.sh
Last active May 3, 2016 13:53
simple-git-flow-enhancements.sh
#!/bin/bash
# --------------------------------------------------------------------------------
#
# The following functions assume that you have installed the Git Flow Extensions
# available here:
#
# https://github.com/petervanderdoes/gitflow-avh
#
# On a Mac simply enter the following from a Terminal window