Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup NY 7-19-2012

Jeff Saracco
Thursday, July 19, 2012

Interestings

  • automated deploys with jenkins

TL;DR:

exec ssh-agent ./path/to/your/build/script

We setup our ci server to deploy (via capistrano) our app to an “acceptance” environment after a successful build. However, the ssh configuration on the environment we deploy to confuses the ruby net-ssh library, rendering the “forward-agent” option in capistrano useless. Therefore, our build script needed to manually add keys to the ssh-agent.

To make an ssh-agent available to your build script in jenkins, wrap the shell command for your build script in “exec ssh-agent”:

exec ssh-agent ./path/to/your/build/script

Your build script will be executed as a subprocess of the agent. When the command finishes, the agent dies with it.

To help DRY up your stylesheets, SCSS allows for inheritance. Take the following example:

.btn-red {
height: 20px;
width: 20px;
border-radius: 5px 5px 5px 5px;
background-color: #FF0000;
}

.btn-white {
height: 20px;
width: 20px;
border-radius: 5px 5px 5px 5px;
background-color: #FFFFFF;
}

Notice the similarities between the three classes; copying & pasting style declarations should tickle the same spidey sense that copying & pasting Ruby code does. Fortunately, SCSS offers @extend, which can be used like so:

.btn {
height: 20px;
width: 20px;
border-radius: 5px 5px 5px 5px;
}

.btn-red {
@extend .btn;
background-color: #FF0000;
}

.btn-white {
@extend .btn;
background-color: #FFFFFF;
}

Events

  • Machine learning meetup tonight
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 04/12/2012 -

Jeff Saracco
Thursday, April 12, 2012

Interestings

  • Chrome JsonViewer plugin – pretty prints JSON useful for debugging. Also some people use Awesome Print for similar functionality

  • ElementalJS

  • jquery_currency

  • Arel now has distinct, otherwise a work-around like
    #scope#.clone.tap { |arel| select_value = [ 'DISTINCT users.*'] }
    is used

  • Amazon released CloudSearch today – an Amazon hosted search service

Helps

  • How to use Twitter Bootstrap SASS semantically?
    • “span3″ sucks
    • “@extend span3″ breaks

Events

  • Anyone interested in hardware hacking (arduino, etc…) see Fader or Berger
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Standup 04/10/2011: How to succeed in business like a ninja

Jeff Saracco
Tuesday, April 10, 2012

Interesting

  • Facebook bought Instagram for $1 billion

Events

Today:

Brownbag Enterprise-Fu or How to succeed in business (like a ninja)

NYC.rb – Lean startup

Wednesday:

Libs@Lunch: book club has been moved to lunch time so more people can come
This week they will be finishing smalltalk best practices and will be choosing the next book

Lean UX roundtable – JB will be speaking, see him for more info or if you would like to attend

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Jeff Saracco

Jeff Saracco
New York

Subscribe to Jeff's Feed

Author Topics

ny (1)
agile (2)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >