Skip to content

Instantly share code, notes, and snippets.

View kanakdeep's full-sized avatar
🏠
Working from home

Kay Dee kanakdeep

🏠
Working from home
View GitHub Profile
# PostgreSQL. Versions 7.4 and 8.x are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
$ git pull
M .gitignore
M .rvmrc
U Gemfile
M Gemfile.lock
A app/controllers/adm/backers_controller.rb
D app/models/backer_total.rb
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
# Database administrative login by UNIX sockets
local all postgres ident
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
@kanakdeep
kanakdeep / deploy
Created August 2, 2012 23:44
removed unsupported gems at bottom
23:42:02 [www] Installing dalli (2.1.0)
23:42:04 [www] Installing database_cleaner (0.8.0)
23:42:05 [www] Installing debugger-ruby_core_source (1.1.3)
23:42:08 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
23:42:08 [www]
23:42:08 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
23:42:08 [www] checking for vm_core.h... no
23:42:08 [www] checking for vm_core.h... no
23:42:08 [www] Makefile creation failed
23:42:08 [www] **************************************************************************
@kanakdeep
kanakdeep / gemfile
Created August 2, 2012 23:22
unsupported gems at bottom
source 'http://rubygems.org'
source 'http://gems.github.com'
gem 'rails', '3.2.6'
gem 'rake', '0.9.2.2'
# Database [Putting pg to the end because of a weird bug with Lion, pg and openssl]
gem 'pg'
gem 'foreigner'
gem 'activerecord-postgresql-adapter'
@kanakdeep
kanakdeep / bootini
Created August 2, 2012 04:42
how to remove the dual boot and other OS
;
;Warning: Boot.ini is used on Windows XP and earlier operating systems.
;Warning: Use BCDEDIT.exe to modify Windows Vista boot options.
;
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT /USEPMTIMER
@kanakdeep
kanakdeep / gemfile
Created July 26, 2012 14:24
error while deploying gemfile
23:02:57 [www] Installing json_pure (1.7.3)
23:02:57 [www] Installing launchy (2.1.0)
23:02:57 [www] Installing ruby_core_source (0.1.5)
23:03:11 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
23:03:11 [www]
23:03:11 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
23:03:11 [www] checking for vm_core.h... no
23:03:11 [www] checking for vm_core.h... no
23:03:11 [www] *** extconf.rb failed ***
23:03:11 [www] Could not create Makefile due to some reason, probably lack of
@kanakdeep
kanakdeep / gemfile
Created July 26, 2012 13:26
missing dependency... changed dotcloud.yml
13:21:26 [www] Installing json_pure (1.7.3)
13:21:27 [www] Installing launchy (2.1.0)
13:21:27 [www] Installing ruby_core_source (0.1.5)
13:22:03 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
13:22:03 [www]
13:22:03 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
13:22:03 [www] checking for vm_core.h... no
13:22:03 [www] checking for vm_core.h... no
13:22:03 [www] *** extconf.rb failed ***
13:22:03 [www] Could not create Makefile due to some reason, probably lack of
@kanakdeep
kanakdeep / dotcloud
Created July 25, 2012 23:55
yaml and push
ganesh@shreeganesh /cygdrive/f/projects/local
$ dotcloud push catarse
# upload /cygdrive/f/projects/local ssh://dotcloud@uploader.dotcloud.com:443/catarse
# git
Warning: Permanently added '[uploader.dotcloud.com]:443,[184.73.62.194]:443' (RSA) to the list of known hosts.
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 296 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://dotcloud@uploader.dotcloud.com:443/catarse
@kanakdeep
kanakdeep / gem-install
Created July 25, 2012 15:56
missing gem binaries
15:52:25 [www] Installing json_pure (1.7.3)
15:52:25 [www] Installing launchy (2.1.0)
15:52:25 [www] Installing ruby_core_source (0.1.5)
15:52:38 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
15:52:38 [www]
15:52:38 [www] /usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
15:52:38 [www] checking for vm_core.h... no
15:52:38 [www] checking for vm_core.h... no
15:52:38 [www] *** extconf.rb failed ***
15:52:38 [www] Could not create Makefile due to some reason, probably lack of