Skip to content

Instantly share code, notes, and snippets.

View IskanderHaziev's full-sized avatar

Iskander Haziev IskanderHaziev

View GitHub Profile
1)
Scenario Outline: Crawler slave monitoring
Given a crawler master request for a crawler slave's status
When the crawler slave returns the <slave status>
Then the crawler master should <action>
2)
Scenario Outline: Crawler slave monitoring
Given the crawler slave has status <slave status>
When a crawler master request for a crawler slave's status
Then the crawler master should <action>
Feature: Facebook authorization
In order to moodrate my favourite artists
As a user
I want to run Moodfish application on facebook page
Scenario: Application is running on a facebook
Given I am authorized facebook user
And I don't have moodfish application on my page
When I go to page apps.facebook.com/Moodfish
And I click "Allow"
# ------------------- script
#!/bin/sh
key=$(git config ssh.key)
if [ -z "$key" ]; then
git_opts=""
else
git_opts="-i ${key}"
fi
require 'hoptoad_notifier/capistrano'
require 'capistrano/ext/multistage'
set :stages, %w(testing staging production)
set :default_stage, 'staging'
set :use_sudo, false
default_run_options[:pty] = true
set :scm, :git
set :repository, "git@github.com:Turn2Live/turn2live.git"
Post.fetch # fetch post from remote resources and save to the Post
Post::Tumblr.fetch # fetch post from Tumblr and save to the Post
Post.fetch # fetch post from remote resources and save to the Post
Post::Tumblr.fetch # fetch post from Tumblr and save to the Post
def force_flush_cache
CacheTumblrPost.update_cached_posts(true)
end
def runner_check_cache(force = false)
cronlog_timestamp('start rebuild caches')
CacheTumblrPost.update_cached_posts(force)
cronlog_timestamp('finish rebuild caches')
end
@IskanderHaziev
IskanderHaziev / report
Created March 17, 2011 13:56
scrum report
вчера
* Change the zip uploader
** https://www.pivotaltracker.com/story/show/11969213
** EST: 2p
* Add “Save as Default” button in each section of parameters - finish
** https://www.pivotaltracker.com/story/show/11969297
** EST: 2p
# изменения
gc "my commit"
git fetch origin
git rebase origin/development
gp origin development
#flash_container
- flash.each do |name, msg|
- if msg.class == String
= content_tag :div, :id => "flash_#{name}" do
%span.message= msg
%span.dismiss{:onclick => "hideFlash();"}= link_to "Dismiss [x]", "#"