This file contains hidden or 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
~% brew missing | |
~% brew doctor | |
We couldn't detect any version of Xcode. | |
If you downloaded Xcode 4.1 from the App Store, you may need to run the installer. | |
Some "config" scripts were found in your path, but not in system or Homebrew folders. | |
`./configure` scripts often look for *-config scripts to determine if software packages | |
are installed, and what additional flags to use when compiling and linking. |
This file contains hidden or 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
~% brew install node | |
Warning: Xcode is not installed! Builds may fail! | |
==> Downloading http://nodejs.org/dist/node-v0.4.10.tar.gz | |
File already downloaded in /Users/resure/Library/Caches/Homebrew | |
==> ./configure --prefix=/usr/local/Cellar/node/0.4.10 | |
==> make install | |
Waf: Entering directory `/private/tmp/homebrew-node-0.4.10-tM7d/node-v0.4.10/build' | |
[ 1/75] cc: deps/libeio/eio.c -> build/default/deps/libeio/eio_1.o | |
[ 2/75] cc: deps/libev/ev.c -> build/default/deps/libev/ev_1.o | |
[ 3/75] cc: deps/c-ares/ares_strcasecmp.c -> build/default/deps/c-ares/ares_strcasecmp_1.o |
This file contains hidden or 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
# encoding: utf-8 | |
require 'spec_helper' | |
describe User do | |
before(:each) do | |
@attr = { :login => 'Foobar', | |
:email => '[email protected]', | |
:first_name => 'Foo', | |
:last_name => 'Bar', |
This file contains hidden or 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 KeyGenerator | |
@queue = :keys_queue | |
def self.perform(key_id, key_password) | |
key = Key.find(key_id) | |
tmpfile = Rails.root + 'tmp/' + SecureRandom.urlsafe_base64 | |
require "pty" | |
require "expect" |
This file contains hidden or 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 Key < ActiveRecord::Base | |
has_secure_password | |
belongs_to :user | |
attr_accessible :title, :password, :password_confirmation, :old_password | |
before_validation :strip_values #, :set_password | |
validates :title, :length => { :within => 3..254 } | |
validates :user_id, :presence => true |
This file contains hidden or 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
-----BEGIN CERTIFICATE----- | |
MIIGNDCCBBygAwIBAgIBGDANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEW | |
MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg | |
Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh | |
dGlvbiBBdXRob3JpdHkwHhcNMDcxMDI0MjA1NDE3WhcNMTcxMDI0MjA1NDE3WjCB | |
jDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsT | |
IlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0 | |
YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgU2VydmVyIENBMIIB | |
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtonGrO8JUngHrJJj0PREGBiE | |
gFYfka7hh/oyULTTRwbw5gdfcA4Q9x3AzhA2NIVaD5Ksg8asWFI/ujjo/OenJOJA |
This file contains hidden or 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
-----BEGIN CERTIFICATE----- | |
MIIGNDCCBBygAwIBAgIBGDANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEW | |
MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg | |
Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh | |
dGlvbiBBdXRob3JpdHkwHhcNMDcxMDI0MjA1NDE3WhcNMTcxMDI0MjA1NDE3WjCB | |
jDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsT | |
IlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0 | |
YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgU2VydmVyIENBMIIB | |
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtonGrO8JUngHrJJj0PREGBiE | |
gFYfka7hh/oyULTTRwbw5gdfcA4Q9x3AzhA2NIVaD5Ksg8asWFI/ujjo/OenJOJA |
This file contains hidden or 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
[1m[36m (0.4ms)[0m [1mALTER TABLE "certificates" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "keys" DISABLE TRIGGER ALL[0m | |
[1m[35m (0.1ms)[0m select current_database() | |
[1m[36m (1.3ms)[0m [1mselect table_name from information_schema.views where table_schema = 'securesignapp_test'[0m | |
[1m[35m (3.8ms)[0m TRUNCATE TABLE "certificates" RESTART IDENTITY CASCADE; | |
[1m[36m (3.8ms)[0m [1mTRUNCATE TABLE "users" RESTART IDENTITY CASCADE;[0m | |
[1m[35m (3.0ms)[0m TRUNCATE TABLE "keys" RESTART IDENTITY CASCADE; | |
[1m[36m (0.3ms)[0m [1mALTER TABLE "certificates" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "keys" ENABLE TRIGGER ALL[0m | |
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" | |
[1m[36mKey Load (0.4ms)[0m [1mSELECT "keys".* FROM "keys" [0m |
This file contains hidden or 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
[1m[36m (14.2ms)[0m [1mALTER TABLE "certificates" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "keys" DISABLE TRIGGER ALL[0m | |
[1m[35m (0.2ms)[0m select current_database() | |
[1m[36m (1.5ms)[0m [1mselect table_name from information_schema.views where table_schema = 'securesignapp_test'[0m | |
[1m[35m (3.8ms)[0m TRUNCATE TABLE "certificates" RESTART IDENTITY CASCADE; | |
[1m[36m (6.6ms)[0m [1mTRUNCATE TABLE "users" RESTART IDENTITY CASCADE;[0m | |
[1m[35m (2.4ms)[0m TRUNCATE TABLE "keys" RESTART IDENTITY CASCADE; | |
[1m[36m (0.3ms)[0m [1mALTER TABLE "certificates" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "keys" ENABLE TRIGGER ALL[0m | |
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" | |
[1m[36mKey Load (0.3ms)[0m [1mSELECT "keys".* FROM "keys" [0m |
This file contains hidden or 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
#!/usr/bin/ruby | |
# encoding: utf-8 | |
PNAME = 'Саркис' | |
r = '=================================' | |
r += '=================================' | |
if name == "John" | |