Posted in Linux/Unix/OpenSource, Telephony by: sean
2 Comments
07 Sep
иконописI use Nagios to monitor the health of a few servers, and would like to be paged if something goes wrong. When I set it up a couple of years ago, I used SMS Gateway which was $10 for 100 SMSes. I was able to page with a simple curl command. However I’d get the [...]
Posted in Linux/Unix/OpenSource by: sean
No Comments
04 Mar
ПодаръцивикI was doing some work that involved moving between several directories. Remembering about pushd and popd, I googled around to try and find out how to use them properly. I found this article which was helpful, but what was even better was one of the comments talking about “cd -”. [root@host tmp]# pwd /tmp [root@host [...]
Posted in Linux/Unix/OpenSource by: sean
No Comments
16 Feb
I am doing some work with WordPress, where we have a development server and a production server. The development side is set up as a git repo, and the production side pulls from the dev repo when we want to pull in changes: git pull origin master I move between the two environments using the [...]
Posted in Linux/Unix/OpenSource, Ruby on Rails by: sean
No Comments
16 Jan
I recently changed SmallPayroll to use Beanstalkd instead of delayed_job for background processing. delayed_job is an awesome tool and makes asynchronous processing so simple. However I wanted to have multiple queues so that I could have different workers processing different queues, and have some upcoming needs to process the jobs quicker than the 5 second [...]
Posted in Linux/Unix/OpenSource, Ruby on Rails by: sean
No Comments
09 Dec
I was just fighting with this, and being new to the Rails 3 way of things, the docs didn’t quite make sense. Step 1 – Install the plugin rails plugin install https://github.com/rails/exception_notification.git Step 2 – Edit config/application.rb: module MyApp class Application < Rails::Application # ….. # somewhere in this block put the following: config.middleware.use “::ExceptionNotifier”, [...]
Posted in Linux/Unix/OpenSource by: sean
No Comments
19 Nov
I just upgraded my nginx rpm and my site refused to start. /var/log/nginx/error.log reported the following: 2010/11/19 09:30:08 [emerg] 27885#0: eventfd() failed (38: Function not implemented) 2010/11/19 09:30:08 [alert] 27884#0: worker process 27885 exited with fatal code 2 and can not be respawn It turns out the new nginx rpm was compiled with –with-file-aio which [...]
Posted in Linux/Unix/OpenSource, Ruby on Rails by: sean
No Comments
27 Sep
трапезни масиI’ve started using Git instead of svn. Like many other people, I tried it out to get easier branching, but found it’s just a pleasure to use in general. One great feature is that git can work with an SVN repository. You use git to check out some SVN code into a local git [...]
Posted in Linux/Unix/OpenSource by: sean
2 Comments
07 Apr
I often use the find command as such: grep foo `find . -name \*.php` which looks for foo in all the PHP files. If the list of files gets too long for the shell, then xargs is the better option: find . -name \*.php | xargs grep foo /dev/null This breaks up the command into [...]
Posted in Linux/Unix/OpenSource by: sean
No Comments
15 Nov
I’m noticing that more and more of the items that pop up in my feed reader are of the “Top N” variety. Some are decent, where the author breaks the topic down into subgroups and then shows one or two tools for each purpose. However some of them are just silly, such as the “top [...]
Posted in Linux/Unix/OpenSource, Personal by: sean
No Comments
27 Aug
(this is one of those “so I remember it” posts that might help others) Edit: See below for a more accurate way to merge the trunk back into HEAD I’ve got some code that I’m storing in SVN. In traditional SVN form, I’ve got my repo set up as /trunk /branches So my work is [...]