Skip to content

Instantly share code, notes, and snippets.

View antonversal's full-sized avatar
🎯
Focusing

Anton Versal antonversal

🎯
Focusing
View GitHub Profile
@antonversal
antonversal / deploy.rb
Created December 14, 2010 11:23
Capistrano Recipes whith sphinx
set :stages, %w(staging production beta)
set :default_stage, "staging"
require 'capistrano/ext/multistage'
# Ok, capistrano_recipes totally breaks not only multistage...
# require 'capistrano_recipes'
require 'capistrano_colors'
require 'bundler/capistrano'
require 'thinking_sphinx/deploy/capistrano'
@antonversal
antonversal / cap.log
Created December 14, 2010 11:41
Capistrano log
ant@antu:~/rorprojects/zn_new$ cap deploy
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was before_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code)
triggering start callbacks for `deploy'
* == Currently executing `multistage:ensure'
*** Defaulting to `staging'
* == Currently executing `staging'
Identity added: /home/ant/.ssh/id_rsa (/home/ant/.ssh/id_rsa)
* == Currently executing `deploy'
* == Currently executing `deploy:update'
class Account < ActiveRecord::Base
has_may :piece_of_works
# some code
end
class Customer < Account
has_many :projects
end
When /^I set the Rule slider to 30$/ do
select "30", from: "Weighting"
end
When /^I select "(.*?)" from the the Rule (\d+) Metric drop\-down$/ do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end
When /^I select "(.*?)" from the the Rule (\d+) Timeframe drop\-down$/ do |arg1, arg2|
@antonversal
antonversal / chef_solo_bootstrap.sh
Created December 1, 2012 10:58
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get remove ruby rubygems ruby1.9 rubygems1.9 ruby1.8 rubygems1.8 ruby1.9.2 rubygems1.9.2
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev autoconf
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar -xvzf ruby-1.9.3-p327.tar.gz
cd ruby-1.9.3-p327/
./configure --prefix=/usr/local
make
@antonversal
antonversal / chef_solo_bootstrap.sh
Last active December 20, 2015 02:59
Chef bootstrap
#!/usr/bin/env bash
apt-get remove ruby rubygems ruby1.9 rubygems1.9 ruby1.8 rubygems1.8 ruby1.9.2 rubygems1.9.2
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6 libreadline6-dev libyaml-dev autoconf
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
tar -xvzf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448/
./configure --prefix=/usr/local
make
@antonversal
antonversal / ds.json
Created July 12, 2021 14:54
VS Code React Personal Snippets
{
"Default storybook story": {
"scope": "typescript,typescriptreact",
"prefix": "ds",
"body": [
"import React from \"react\";",
"import { Story } from \"@storybook/react/types-6-0\";",
"import { Props, $1 as Component } from \"./$1\";",
"",
"const storyToExport = {",