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
begin | |
raise 'example' | |
rescue Exception => exception | |
if defined? ::NewRelic | |
::NewRelic::Agent.notice_error(exception) | |
end | |
end |
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
#!/usr/bin/env sh | |
## | |
# This is script with useful tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh | |
# |
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
* keep people working on internal projects, assign and schedule the work | |
* dont look desperate, dont have immediate availability | |
* can tell a client you can 'shuffle internal projects' to accomodate them | |
* online ads dont work well | |
* referrals instead | |
* do a great job every single time | |
* voice calls important | |
* when people call you call them back |
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
require 'open3' | |
describe 'my_script' do | |
def run *args | |
options = args.extract_options! | |
args.unshift './my_script' | |
out = err = '' | |
Open3.popen3(args.join(' ')) do |i, o, e| | |
i.write options[:stdin] |