This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change the port if you’re not using 22 (you probably shouldn’t) and change the remote.address. | |
ssh -L5984:127.0.0.1:5984 -p 22 -i ~/.ssh/id_rsa [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb | |
#svn checkout http://svn.apache.org/repos/asf/couchdb/branches/0.10.x | |
cd couchdb | |
sudo ./bootstrap | |
./configure | |
make && sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start couchdb as a daemon | |
sudo /usr/local/etc/init.d/couchdb start | |
# or start couchdb in shell | |
sudo -u couchdb couchdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://wiki.apache.org/couchdb/Setting_up_an_Admin_account | |
#On Ubuntu you should find local.ini located here: | |
/usr/local/etc/couchdb/local.ini | |
#Make sure ownership is changed to couchdb: | |
sudo chown couchdb:couchdb /usr/local/etc/couchdb/local.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Find which version of Erlang you want: http://erlang.org/download.html | |
sudo apt-get build-dep erlang | |
sudo apt-get install java-gcj-compat java-gcj-compat-dev | |
wget http://erlang.org/download/otp_src_R13A.tar.gz | |
tar zxvf otp_src_R13A.tar.gz | |
cd otp_src_R13A | |
./configure | |
make && sudo make install | |
erl | |
#Eshell V5.6.5 (abort with ^G) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#‘Twere installing Astrotrain, needed to update do_msql gem but receiving this error: | |
#Error installing do_mysql | |
#it needs some configuration option: | |
sudo gem install do_mysql --version='0.9.11' -- --with-mysql-config=/usr/local/mysql/bin/mysql_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: &global_settings | |
database: textual_development | |
host: 127.0.0.1 | |
port: 27017 | |
test: | |
database: textual_test | |
<<: *global_settings | |
production: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note that *.coffee must be added to nodemon-ignore file | |
(coffee --compile --watch .&); nodemon app.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var guid = function(){ | |
return 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function(c) { | |
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
return v.toString(16); | |
}).toUpperCase(); | |
}; | |
console.log(guid()); |
OlderNewer