Skip to content

Instantly share code, notes, and snippets.

View hiteshjoshi's full-sized avatar
🎯
Focusing

Hitesh Joshi hiteshjoshi

🎯
Focusing
View GitHub Profile
@hiteshjoshi
hiteshjoshi / node.sh
Created January 3, 2014 09:27
rasbian-nodejs
#!/bin/bash
#Make a new dir where you'll put the binary
sudo mkdir /opt/node
#Get it
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4-linux-arm-pi.tar.gz
#unpack
tar xvzf node-v0.10.4-linux-arm-pi.tar.gz
{auth_method, external}.
{extauth_program, "/home/hitesh/ejabberd_auth.php"}.
{host_config, "chat.nodyssey.com", [{auth_method, [external, anonymous]}]}.
{odbc_server, {mysql, "localhost","ejabberd", "root", "root"}}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{max_fsm_queue, 1000}.
{acl, admin, {user, "admin", "chat.nodyssey.com"}}.
{acl, local, {user_regexp, ""}}.
{access, max_user_sessions, [{3, all}]}.