Skip to content

Instantly share code, notes, and snippets.

View phlegx's full-sized avatar
💪
never stop coding

Phlegx Systems phlegx

💪
never stop coding
View GitHub Profile
ps aux | grep openerp
openerp 9558 64.0 0.3 248552 47208 ? Sl 13:04 0:00 python /opt/openerp-server/openerp-server -c /etc/openerp-server.conf
root 9567 0.0 0.0 6160 684 pts/1 S+ 13:04 0:00 grep --color=auto openerp
ls -l /proc/9991/exe
lrwxrwxrwx 1 openerp openerp 0 Jul 31 13:19 /proc/9991/exe -> /home/openerp/virtualenv/erp_6_1_1/bin/python
development:
version: '0.1.1'
## application.rb
APP_CONFIG = YAML.load(ERB.new(File.read("#{Rails.root}/config/config.yml")).result)[Rails.env]
## a view:
<div id="footer"><%= APP_CONFIG['version'] %></div>
# error
Uninitialized constant ActionView::CompiledTemplates::APP_CONFIG
stat /var/log/dummy
File: `/var/log/dummy'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 3550687 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 1002/dummy)
Access: 2012-08-01 18:32:25.842275352 +0200
Modify: 2012-08-01 18:30:28.572368469 +0200
Change: 2012-08-01 18:43:53.643157791 +0200
## initializer file
logfile = File.open(APP_CONFIG['log_path'] + '/phone.log', 'a')
phone_logger = PhoneLogger.new(logfile)
logfile = File.open(APP_CONFIG['log_path'] + '/phone.log', 'a')
phone_logger = PhoneLogger.new(logfile)
no decode delegate for this image format `images/I0K3aIqeVuk_chRYWeHHpSQGeMM/0' @ error/constitute.c/ReadImage/533
agent.page.search("//link[@rel='shortcut icon']")
=> [#<Nokogiri::XML::Element:0x11a8028 name="link" attributes=[#<Nokogiri::XML::Attr:0x11a7f88 name="rel" value="shortcut icon">, #<Nokogiri::XML::Attr:0x11a7f74 name="href" value="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">]>]
/usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem'
from /usr/bin/rails:18