This file contains 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
# Install prerequisites | |
sudo tee /etc/apt/apt.conf.d/02proxy > /dev/null <<APTPRXY | |
Acquire::http::Proxy { "http://192.168.122.1:3142"; }; | |
Acquire::http::Proxy { deb.nodesource.com DIRECT; }; | |
APTPRXY | |
# -- Get PPAs for Oracle Java 7 and Sublime Text editor -- | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 |
This file contains 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
I use these shell scripts on my server to control Meteor project deployment by means of SSH/RPC calls. |
This file contains 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
#!/bin/bash | |
# | |
rm -fr client/routers/jobs.js | |
rm -fr client/views/jobs/*.html | |
rm -fr client/views/jobs/*.js | |
rm -fr client/views/jobs | |
rm -fr lib/collections/Jobs.js | |
rm -fr lib/controllers/JobsController.js | |
rm -fr server/JobsServer.js |
This file contains 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
[[[[[ ~/projects/velocity-examples/leaderboard-cucumber ]]]]] | |
=> Started proxy. | |
I20150315-07:54:20.369(-4)? [velocity] adding velocity core | |
I20150315-07:54:20.370(-4)? [velocity] Not adding mirror-registrar because NODE_ENV is development and IS_MIRROR is false | |
I20150315-07:54:20.371(-4)? [node-soft-mirror] adding server code | |
I20150315-07:54:20.376(-4)? [velocity] Velocity not started. Queueing func | |
I20150315-07:54:20.665(-4)? [velocity] Server startup | |
I20150315-07:54:20.666(-4)? [velocity] app dir /home/yourself/projects/velocity-examples/leaderboard-cucumber | |
I20150315-07:54:20.667(-4)? [velocity] config = { |
This file contains 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
2014-06-19 09:05:37,844 1082 ERROR site_erp8_db werkzeug: Error on request: | |
Traceback (most recent call last): | |
File "/srv/site_erp8/openerp/server/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi | |
execute(self.server.app) | |
File "/srv/site_erp8/openerp/server/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute | |
application_iter = app(environ, start_response) | |
File "/srv/site_erp8/openerp/server/openerp/service/server.py", line 273, in app | |
return self.app(e, s) | |
File "/srv/site_erp8/openerp/server/openerp/service/wsgi_server.py", line 215, in application | |
return application_unproxied(environ, start_response) |
This file contains 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
#!/bin/bash | |
# | |
# Define the identifiers OpenERP will use to connect to postgres | |
export PSQLUSR="psql_user_z" | |
export PSQLUSR_HOME="/srv/site_z/postgres" | |
export PSQLUSRPWD=" FIXME " # Password !!! FIXME | |
# | |
# Define the identifiers OpenERP will use within the OS | |
export OERPUSR="oerp_user_z" | |
export OERPUSR_HOME="/srv/site_z/openerp" |
This file contains 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
#!/bin/bash | |
# | |
if [ 1 -eq 1 ] | |
then | |
mkdir -p source | |
pushd source | |
if [ -d openobject-server ] | |
then | |
pushd openobject-server | |
echo "Done server." |
This file contains 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
1) Set a proper host name in /etc/hosts, /etc/hostname | |
2) reboot | |
3) cd ./iRedMail-0.8.6 | |
4) edit the file : ./conf/postgresql | set version | export PGSQL_VERSION='9.3' | |
5) Generate the config file as below . . . . . | |
6) chmod ug+x ./iRedMail.sh | |
7) run : ./iRedMail.sh | |
8) run : a2enconf iredadmin | |
9) reboot |
This file contains 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
"!/bin/bash | |
# | |
# List virtual disks | |
ls -l /dev/vd* | |
# |
This file contains 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
sudo apt-get install -y git python-dev python-pip libyaml-dev python-zmq m2crypto | |
sudo pip install pyzmq | |
sudo pip install PyYAML | |
sudo pip install pycrypto | |
sudo pip install msgpack-python | |
sudo pip install jinja2 | |
sudo pip install psutil | |
# | |
cd ~ | |
mkdir -p projects |