function foo()
{
}
вторник, 28 октября 2014 г.
Charlock Holmes issue
After upgrading Ubuntu to 14.04 I have problem with charlock_holmes gem
/opt/extra/apps/project/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': libicuuc.so.48: cannot open shared object file: No such file or directory - /opt/extra/apps/project/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so (LoadError)
Solution: just delete bundled gems from project dir and run bundle.
#rm -rf /opt/extra/apps/project/shared/bundle #bundle
Start service after reboot on Ubuntu
sudo update-rc.d nginx defaults
Details and examples:
http://codedecoder.wordpress.com/2013/03/12/system-startstop-links-for-etcinit-dnginx-already-exist/
Details and examples:
http://codedecoder.wordpress.com/2013/03/12/system-startstop-links-for-etcinit-dnginx-already-exist/
понедельник, 27 октября 2014 г.
Nginx + jenkins config
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Nginx
server {
listen 80;
server_name jenkins.domain.tld;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 8m;
client_body_buffer_size 128k;
}
}
Mailx - send email from Ubuntu terminal
I believe mailx is what you're looking for.
This will also install postfix at a minimum, and will give you a few options to set postfix up. If you have an SMTP server on your LAN, choose 'satellite system', then enter the mail domain name, and lastly the IP address of your SMTP server.
To use:
You can also use a file for the body:
| |||||||||||||||||||||
|
Install imagemagick on Ubuntu 14.04
sudo apt-get install libmagickwand-dev imagemagickhttp://superuser.com/questions/163818/how-to-install-rmagick-on-ubuntu-10-04
понедельник, 1 сентября 2014 г.
Go to sublime 3
- Install sublime 3: http://www.sublimetext.com/3
- Add alias to run from terminal: http://crabonature.pl/posts/20-sublime-text-3-on-os-x-terminal
Show opened file in sidebar:
Maybe this will help, simple plugin:
goto Sublime package folder, make dir "Project Side Bar", in this folder make a file "Project Side Bar.py" put code below:
Save and it's done, rest will be done out of box
goto Sublime package folder, make dir "Project Side Bar", in this folder make a file "Project Side Bar.py" put code below:
- CODE: SELECT ALL
import sublime
import sublime_plugin
class SideBarListener(sublime_plugin.EventListener):
def on_activated(self, view):
view.window().run_command('reveal_in_side_bar')
Save and it's done, rest will be done out of box
Cucumber run
.../Sublime Text 3/Packages/User/RubyTest.sublime-settings
{
"check_for_rvm": true,
"save_on_run": true,
"run_cucumber_command": "bundle exec cucumber -rfeatures {relative_path}",
"run_single_cucumber_command": "bundle exec cucumber -rfeatures {relative_path} -l{line_number}",
"run_rspec_command": "bundle exec rspec {relative_path}",
"run_single_rspec_command": "bundle exec rspec {relative_path}:{line_number}"
}
"check_for_rvm": true,
"save_on_run": true,
"run_cucumber_command": "bundle exec cucumber -rfeatures {relative_path}",
"run_single_cucumber_command": "bundle exec cucumber -rfeatures {relative_path} -l{line_number}",
"run_rspec_command": "bundle exec rspec {relative_path}",
"run_single_rspec_command": "bundle exec rspec {relative_path}:{line_number}"
}
Switch between code and spec
{ "keys": ["super+period"],
"command": "switch_between_code_and_test",
"args": {"split_view": false},
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}
Delete trailing spaces
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" }
Overriding default snippets
http://maximilianhoffmann.com/posts/configuring-sublime-text-3
Overriding default snippets
http://maximilianhoffmann.com/posts/configuring-sublime-text-3
Подписаться на:
Сообщения (Atom)