Skip to content

Instantly share code, notes, and snippets.

View alecnmk's full-sized avatar

Alexander Naumenko alecnmk

View GitHub Profile
@alecnmk
alecnmk / solution
Created July 28, 2011 10:25
teamcity 6.5.2 + cucumber 1.0.2 fails when stats printed
So you'll want to patch teamcity plugin to work properly with new cucumber gem.
1. Go to the teamcity directory and start editing <teamcity>/buildAgent/plugins/rake-runner/lib/rb/patch/bdd/teamcity/cucumber/common.rb:465
2. you'll see "print_stats(features)" at that line, just add second param with options like this: "print_stats(features, @options)"
That's all
@alecnmk
alecnmk / test_api.rake
Created February 2, 2012 21:09
Koala and FbGraph return different results for same API Call
namespace :test_api do
task :test_koala => :environment do
user = User.first
graph = Koala::Facebook::API.new user.facebook_access_token
puts "starting fetching user's home with Koala v1.2.1"
feed = graph.get_connections("me", "home")
puts "Initial feed size: #{feed.size}"
@alecnmk
alecnmk / main.yml
Created February 16, 2016 08:41
ansible conditionals example
---
- name: put simple template file
template: src=test_template.txt.j2 dest=/tmp/test.txt
vars:
text: "{{test_text}}"
- name: read variable for consequent conditional execution
shell: cat /tmp/test.txt
register: existing_text

Keybase proof

I hereby claim:

  • I am alecnmk on github.
  • I am alecnmk (https://keybase.io/alecnmk) on keybase.
  • I have a public key ASALIjKlKXrLiO-6_puWto7aQnY5EgG37Z_XsZmMwuTJywo

To claim this, I am signing this object: