Skip to content

Instantly share code, notes, and snippets.

#<SocialSearch::Entity:0x9b98c4c @url="http://pinterest.com/pin/173459023121632056/", @title="Private Swim-Out SuitesБ─іthe ultimate Honeymooners dream come true #Secrets Maroma Beach secretsresorts.com/ [Partnered]", @body=nil, @thumbnail_url="http://media-cache-ec0.pinimg.com/236x/c9/f4/cd/c9f4cdb7de7364df66ff8255e60d3c94.jpg", @thumbnail_width="236", @thumbnail_height="163", @username="Pinned onto", @user_url="http://pinterest.com/intimatewedding/weddings-misc/", @userpic_url="http://media-cache-ak0.pinimg.com/upload/173459091836895864_board_thumbnail_2013-07-30-13-40-44_13296_60.jpg", @timestamp=nil, @english=true, @source="pinterest">
# NOTE: capistrano's 'current' dir can not exist when running script first time,
# so need to place this script to diff place, for ex, /home/ubuntu/texenergo
# 1. make sure that ruby + capistrano are installed on server
# 2. run "capify ." which will create:
# ./Capfile
# and
# ./config/deploy.rb
# replace the deploy file with this script
# 3. for local deploy current user must have ability to ssh to same host:
# 3.1. add data from ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys
{:albums=>
{
"518869932"=> {
:collection_name=>"LIVING THINGS",
:artwork_url100=>"http://a2.mzstatic.com/us/r1000/075/Features/v4/69/e7/9e/69e79e20-f5f0-1e30-ad17-89d5a4b668c3/V4HttpAssetRepositoryClient-ticket.pffdbqey.jpg-4453129576510097264.100x100-75.jpg",
:track_count=>12,
:copyright=>"2012 Warner Bros. Records Inc.",
:release_date=>"2012-06-20T07:00:00Z",
:collection_explicitness=>"notExplicit",
# file https://dl.dropbox.com/u/6082558/1.xls
Spreadsheet.open('1.xls')
ArgumentError: comparison of Fixnum with nil failed
from /home/olkeene/.rvm/gems/ruby-1.9.3-p0@cvchk/gems/spreadsheet-0.7.5/lib/spreadsheet/excel/worksheet.rb:89:in `each'
from /home/olkeene/.rvm/gems/ruby-1.9.3-p0@cvchk/gems/spreadsheet-0.7.5/lib/spreadsheet/excel/worksheet.rb:89:in `min'
["COTTON SPONGES", "XRAY POSITIONING DEVICES", "PROS", "XRAY SOL", "PREVENTIVE", "LAB", "IMP MAT", "BONDING AGENT", "COMPOSITES", "TEMP C&B", "RESTOR", "ASEPSIS", "MANDRELS", "ENDO", "AMALGAM PELLETS,POWDERS,ACCESSORIES", "SURGICAL", "ANESTHETIC TOPICALS", "BASE,LINER", "XRAY", "DISPOSABLE", "FINISHING", "CARBIDES", "ANESTHETIC", "DIAGNOSTIC", "PROPHY", "MATRICES,RETAINERS", "AMALGAM CAPSULES", "BASE,LINER,DESENSITIZER", "SPECIALIST", "EVACUATION", "INSTRUMENTS", "MEDICAMENTS", "DISPENSERS,ORGANIZERS FOR DISPOSABLES", "TRIMMING STONES,WHEELS", "PERIO", "TUBS & TRAYS", "COTTON ROLLS,DRIANGLES", "COTTON APPLICATORS", "LABORATORY PRODUCTS", "BURS", "XRAY TIMERS,TAPES,MISC", "PARTS", "GLASS IONOMER", "WEDGES", "MISC", "MEDS", "CLOTHING", "DIAMONDS", "CARPULE/SYRINGE/COMPULE WARMER", "COTTON PELLETS", "ORTHO", "PINS,DRILLS,ACCESSORIES", "CORE BUILD", "TEETH", "GOLD STOCK", "GOLD NON", "HIGH SPEED HANDPIECES", "COUPLERS/SWIVELS", "HIGH SPEED FIBEROPTIC HANDPIECES", "LOW SPEED HANDPIECES", "HANDPIECE LAB&DORIOT BELT
# ["U_AgentID", "U_HiddenOrgID", "U_DateAssignedToOrg", "U_LoginName", "U_SecurityLevel", "U_HiddenUsCID", "U_AgentTypeChangeDate",
# "U_FreeFormDesig", "U_UserSalutation", "U_UserFirstName", "U_UserLastName", "U_UserMI", "U_AddressNumber", "U_AddressSearchNumber",
# "U_AddressDirection", "U_AddressStreet", "U_Address2", "U_City", "U_State", "U_Zip", "U_Zip6", "U_MailAddressNumber", "U_MailAddressDirection",
# "U_MailAddressStreet", "U_MailAddress2", "U_MailCity", "U_MailState", "U_MailZip", "U_MailZip6", "U_PhoneNumber1Desc", "U_PhoneNumber1Area",
# "U_PhoneNumber1", "U_PhoneNumber1Ext", "U_PhoneNumber2Desc", "U_PhoneNumber2Area", "U_PhoneNumber2", "U_PhoneNumber2Ext", "U_PhoneNumber3Desc",
# "U_PhoneNumber3Area", "U_PhoneNumber3", "U_PhoneNumber3Ext", "U_PhoneNumber4Desc", "U_PhoneNumber4Area", "U_PhoneNumber4", "U_PhoneNumber4Ext",
# "U_PhoneNumber5Desc", "U_PhoneNumber5Area", "U_PhoneNumber5", "U_PhoneNumber5Ext", "U_Email", "U_WebPage", "U_StateAgentIsMemb
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'capybara/rails'
require 'capybara/rspec'
# ES specs
require 'chewy/rspec'
@olkeene
olkeene / mem.txt
Last active October 14, 2015 12:46
vatbox's objects/mem stats
TOP: 89.4761 MiB
savon: 24.3428 MiB (Also required by: savon/soap_fault, savon/http_error)
savon/client: 24.3271 MiB
savon/operation: 24.0537 MiB
savon/builder: 23.1489 MiB
savon/header: 23.1411 MiB
akami: 23.1294 MiB
akami/wsse: 23.1177 MiB
akami/wsse/verify_signature: 16.0396 MiB
nokogiri: 15.563 MiB (Also required by: savon/builder, savon/log_message, and 2 others)
+ 20 C - Greeks put on sweaters
+ 15 C - Hawaiians include heating (bonfires)
+ 10 C - Americans shaking. Russian cucumbers planted in gardens.
+ 5 C - you can see your breath. Italian cars do not start. Russian drive with lowered windows.
0 C - In America, the water freezes. In Russia, the water thickens.
-5 C - French cars do not start.
-10 ° C - Cat insists to sleep in your bed. Norwegians put on sweaters.
-17.9 C - New York homeowners include heating. Russian last season go for a picnic.
- 20 C - American cars do not start.
-25 - German cars do not start. Hawaiians extinct.
@olkeene
olkeene / remove-branch.sh
Created October 2, 2012 00:15
Remove branches already merged to current branch from local and remote repository
#!/bin/bash
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "master" ]; then
echo "WARNING: You are on branch $current_branch, NOT master."
fi
echo "Fetching merged branches..."