This file contains hidden or 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
| ~ | |
| build/ | |
| [Bb]in | |
| [Dd]ebug*/ | |
| obj/ | |
| [Rr]elease*/ | |
| _ReSharper*/ | |
| [Tt]est[Rr]esult | |
| [Bb]uild[Ll]og.* | |
| *.swp |
This file contains hidden or 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
| The UriTemplate '/blah/search?{key}={value}' is not valid; each portion of the query string must be of the form 'name' or of the form 'name=value', where name is a simple literal. See the documentation for UriTemplate for more details. |
This file contains hidden or 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
| # figure out your teamcity build url via help from http://bit.ly/dAFVO3 | |
| # make sure you install curl.exe from http://bit.ly/dT7Ove | |
| url="http://user:password@host/httpAuth/action.html?add2Queue=bt# | |
| system("C:\\curl.exe --insecure #{url} > NUL") |
This file contains hidden or 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
| get '/:min/:max/:count' do |min, max, count| | |
| defaults = {"count" => 10, "min" => 1, "max" => 100} | |
| %w(count min max).each do |i| | |
| default = defaults[i] | |
| value = eval(i) | |
| value = default if value.length > 5 | |
| value = Integer(value) rescue default | |
| eval "#{i} = #{value}" | |
| end |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using log4net; | |
| using log4net.Config; | |
| using StructureMap; | |
| namespace Common.Infrastructure | |
| { | |
| public static class BootStrapper | |
| { |
This file contains hidden or 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
| //example: | |
| Service<IProxyInterface>.Use(service => service.MyAwesomeMethodCall()); | |
| //code: | |
| public static class Service<T> | |
| { | |
| public static ChannelFactory<T> _channelFactory = new ChannelFactory<T>(""); | |
| public static void Use(Action<T> block) | |
| { |
This file contains hidden or 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 'rubygems' | |
| require 'savon' | |
| require 'grit' | |
| jira_address = "http://host:8080" | |
| jira_username= "user" | |
| jira_password = "password" | |
| repo = Grit::Repo.new(".") | |
| while (input = STDIN.read) != '' |
This file contains hidden or 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
| FIXED thanks to quick look by Derick Bailey @derickbailey. generate_assemblyinfo task needed to be a rake task and not assemblyinfo task. easy fix. | |
| ### versions.yml | |
| files: | |
| - OneAssemblyInfo: 1.0.0 | |
| - TwoAssemblyInfo: 2.0.0 | |
| - ThreeAssemblyInfo: 3.0.0 | |
| - FourAssemblyInfo: 4.0.0 | |
| - FiveAssemblyInfo: 5.0.0 |
This file contains hidden or 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
| # BY HAND | |
| def create_zip(filename, root, excludes=/^$/) | |
| root = root + "/" if root[root.length - 1].chr != "/" | |
| Zip::ZipFile.open(filename, Zip::ZipFile::CREATE) do |zip| | |
| Find.find(root) do |path| | |
| next if path =~ excludes | |
| zip_path = path.gsub(root, '') | |
| zip.add(zip_path, path) | |
| end |
This file contains hidden or 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
| rvm package install readline && rvm package install iconv && rvm package install zlib && rvm package install openssl && rvm install 1.9.2 --with-readline-dir=$rvm_path/usr --with-iconv-dir=$rvm_path/usr --with-zlib-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr |