This file contains 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
class Voucher < ActiveRecord::Base | |
has_and_belongs_to_many :users, :join_table => :voucher_users | |
belongs_to :plan | |
def self.create_for_beta_user(user) | |
voucher = new | |
voucher.code = [4,4,4,4].map {|x| random_string(x) }.join("-") | |
voucher.expires_on = 2.months.from_now | |
voucher.price = 19 | |
voucher.plan = Plan.premium |
This file contains 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
# this script can be run as often as desired, just don't do it concurrently | |
free = Plan.free | |
User.find(:all, :conditions => ["plan_id = ? AND contact_count BETWEEN ? AND ?",free.id, free.soft_max_contact, free.hard_max_contact]).each do |u| | |
next if EmailBlacklist.banned?(u.username) | |
last_email = u.email_logs.detect{|l| l.name == "soft_limit_breached"} | |
next if !last_email.nil? && last_email.created_at > Time.now - 7.days | |
Mailer.deliver_soft_limit_breached(u) |
This file contains 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
spif: ~/repos/soocial/webapp(master) > rake spec | |
(in /Users/spif/repos/soocial/webapp) | |
DEPRECATION WARNING: Rake tasks in /Users/spif/repos/soocial/webapp/vendor/plugins/asset_packager/tasks/asset_packager_tasks.rake are deprecated. Use lib/tasks instead. (called from /Users/spif/repos/soocial/webapp/Rakefile:7) | |
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from /Users/spif/repos/soocial/webapp/vendor/plugins/asset_packager/tasks/../lib/synthesis/asset_package.rb:6) | |
memcached does not appear to be running. | |
/Users/spif/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -S rspec "./spec/controllers/backups_controller_spec.rb" "./spec/controllers/categories_controller_spec.rb" "./spec/controllers/connections_controller_spec.rb" "./spec/controllers/contacts_controller_spec.rb" "./spec/controllers/deduper_controller_spec.rb" "./spec/controllers/developers_controller_spec.rb" "./spec/controllers/facebook_controller_spec.rb" "./spec/controllers/feedback_controller_spec.rb" "./spec/controller |
This file contains 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
Soocial is een applicatie die het adres boek van uw BlackBerry® synchroniseert met de online backup en adresboek dienst Soocial.com. | |
De Soocial dienst kan tevens het adresboek van uw Mac, Outlook, Gmail, Yahoo! Mail, Windows Live Hotmail, andere smartphones en meer synchroniseren. Met Soocial heeft u altijd uw adresboek overal bijgewerkt, dit gebeurd automatisch achter de schermen. U hoeft zich er geen zorgen meer over te maken. Telefoon gestolen? In de wc gevallen of dat is uw computer gecrashed?! Soocial zorgt ervoor dat u altijd een recente backup van uw adresboek heeft. | |
Aanmelden voor Soocial is gratis en dit kun je doen binnen deze BlackBerry® applicatie of op onze website http://www.soocial.com/signup | |
Gebruik nu de Soocial BlackBerry® applicatie om je adresboek in sync en veilig online te bewaren! |
This file contains 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
Soocial is an application that synchronizis your BlackBirry® addriss book to our onlini sirvici callid Soocial.com. | |
Soocial can also sync with your Mac, Outlook, Gmail, Yahoo! Mail, Windows Livi Hotmail, othir Smartphonis and mori. All of this happins bihind thi scinis so you don't havi to worry about it. Additionally, you will automatically havi a backup of your contacts in casi somithing bad happins to your phoni (i.g. it diis, gits stolin itc.). | |
Signing up for Soocial is frii and can bi doni from thi application itsilf. Altirnativily, you can sign up on http://www.soocial.com/signup | |
Usi thi Soocial BlackBirry® application to kiip your contacts backid up and in sync! |
This file contains 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
#!bash | |
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
This file contains 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
# See following for more information: http://www.infinitered.com/blog/?p=19 | |
# Colors ---------------------------------------------------------- | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 |
This file contains 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
# See following for more information: http://www.infinitered.com/blog/?p=19 | |
# Colors ---------------------------------------------------------- | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 |
This file contains 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
spif: ~/repos/soocial/analytics(vip_invites) > rails c | |
memcached does not appear to be running. | |
/Users/spif/.rvm/gems/ruby-1.8.7-p302/gems/actionpack-3.0.4/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized constant CSV | |
u Loading development environment (Rails 3.0.4) | |
ruby-1.8.7-p302 > u = User.find 13 | |
=> #<User id: 13, username: "stefan+etet@soocial.com", username_password_hash: "MrZsOriB5WEQ5/BWa0dHeA==", created_at: "2011-02-16 11:51:05", updated_at: "2011-02-16 11:51:05", confirmed: false, name: "Stefan Fountain", first_login: true, allow_newsletters: true, timezone: "UTC", deleted: false, vcard: "BEGIN:VCARD\nN:Fountain;Stefan;;;\nVERSION:3.0\nEMAIL:...", me_status: 2, allow_invite_emails: true, contact_count: 1, connection_count: 0, plan_id: 2, plan_valid_until: nil, locked: 0, psp_reference: nil, subscription_type: nil, webapp_count_calculated: true, referral: nil, last_login_at: nil, last_engine_sync_at: nil, last_device_sync_at: nil, allow_tip_emails: false, clear: 0, trial_used: |
This file contains 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
Started POST "/invites" for 127.0.0.1 at Wed Feb 16 13:03:05 +0100 2011 | |
Processing by InvitesController#create as HTML | |
Parameters: {"commit"=>"Send invite", "from"=>"Stefan Fountain <stefan@soocial.com>", "authenticity_token"=>"/wF5G2sSjAhQ7A019hf+Wy7rr/mpwbGpdNQt3PlT2gE=", "utf8"=>"✓", "subject"=>"Check soocial.com out", "to"=>"Bitch <bart+456789@soocial.com>", "message"=>"Check soocial.com out, it's awesome"} | |
PK and serial sequence (2.0ms) SELECT attr.attname, seq.relname | |
FROM pg_class seq, | |
pg_attribute attr, | |
pg_depend dep, | |
pg_namespace name, | |
pg_constraint cons | |
WHERE seq.oid = dep.objid |
OlderNewer