This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void RGsummary_ItemDataBound(object sender, GridItemEventArgs e) | |
{ | |
if (e.Item is GridPagerItem) | |
{ | |
//setting the page sizes | |
RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox"); | |
BLL.RadGridFunctions.PopulatePageSizeCombo(PageSizeCombo, RGsummary.MasterTableView.ClientID); | |
PageSizeCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true; | |
//Localization... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class role::sms_gateway_development { | |
include profile::laravel3 | |
class {'profile::sms_gateway': | |
application_environment => 'development' | |
} | |
} | |
class role::sms_gateway_testing { | |
include profile::laravel3 | |
class {'profile::sms_gateway': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
class NoSuchDayException(Exception): | |
""" Custom exception for trying to select an invalid day of the month | |
Rather than try and be clever around which days are valid in a month, we trust that | |
the widget is populating things correctly and just blow up if you request the 4th day | |
of the month for instance. | |
""" | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defaults for puppet - sourced by /etc/init.d/puppet | |
# Enable puppet agent service? | |
# Setting this to "yes" allows the puppet agent service to run. | |
# Setting this to "no" keeps the puppet agent service from running. | |
START=yes | |
for x in $(facter ec2_userdata); do | |
case $x in | |
puppet_environment*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f codedeploy.id ]; then | |
rm codedeploy.id | |
fi | |
aws deploy create-deployment \ | |
--application-name MY_APPLICATION \ | |
--deployment-group-name humans \ | |
--s3-location bucket=MY_BUCKET,bundleType=zip,key=MY_APPLICATION\/$revision.zip \ | |
--output text \ | |
--region us-west-2 > codedeploy.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basics | |
------ | |
parts | |
selectors | |
synchronization | |
evolution-of-a-script | |
se-ide | |
------ | |
overview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So this is what I have got myself into: | |
An important trend in software development is the idea of continuous delivery and the deployment pipeline. It is possible to have a deployment pipeline that is a series of manual steps, but that is neither efficient to execute or fun to build. Automation plays a large role in addressing both of these problems. This workshop looks at each stage of a typical pipeline and illustrates the role of automation and it’s goals. Appropriate for developers, testers, operations or anyone who wants to speed up their release time, participants will leave with implementable automation ideas and strategies. | |
The current version of the agenda is: | |
- Introduction to Continuous Delivery | |
- http://element34.ca/blog/what-continuous-delivery-looks-like-to-me | |
- http://vimeo.com/16587500 | |
- Managing the Machines (Puppet) | |
- http://element34.ca/blog/continuous-delivery-managing-the-machines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When doing automation I coach people not to put in logging in their scripts aside from things like 'here is the user name and password I randomly created just now' but I couldn't coax the default documentation formatter in rspec to capture information send via 'puts'. So I over-engineered a solution. Proper documentation and inclusion in my rspec-selenium-pageobjects project in a day or so. | |
spec_helper.rb | |
-------------- | |
module RSpec | |
module Core | |
class Reporter | |
def with(message) | |
notify :with, message | |
end |
OlderNewer