Welcome to Level09 Studios
  • simplify
Blog
  • open the file /etc/supervisord.conf vi /etc/supervisord.conf Insert the following code: [program:node program] command = /usr/local/bin/node my_server.js user = nodejs directory = /path/to/node/dir/  

  • if you run into a problem with django when using the syncdb command on Mac OSX, here is how to fix it: in your terminal, edit your .bash_profile, add the following lines:

  • Generate key on local machine First off, start by generating a ssh key on your local machine (if you dont already have one) ssh-keygen -t rsa Ensure that the remote server has a .ssh directory Make sure the server your connecting to has a .ssh directory in your home directory. If it doesn’t exist you [...]

  • Open git configuration file (normally located inside the .git directory, named confg) and add the following lines : [color] ui = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = green bold [color "status"] added [...]

  • Here is a snippet for .gitignore to use with Drupal websites: sites/default/settings.php sites/default/files/imagecache .* !.htaccess !.gitignore This is useful in case you want to upload your data on every push. in some cases you might not want to have your files tracked, then you can use the following .gitignore file instead

  • Here is a little snippet to run nodejs server as a service description "Start Node.js server" start on runlevel [2345] stop on runlevel [06] respawn respawn limit 10 5 exec /usr/local/bin/node /path/to/node.js