Skip to content

Instantly share code, notes, and snippets.

View martinhbramwell's full-sized avatar
🏠
Creating a serverless, offline-first, single page progressive web app with VueJS

Martin H. Bramwell martinhbramwell

🏠
Creating a serverless, offline-first, single page progressive web app with VueJS
View GitHub Profile
@martinhbramwell
martinhbramwell / pkgtstvid_prep.sh
Last active August 29, 2015 14:25
Meteor Package Test Video Script
# 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
@martinhbramwell
martinhbramwell / 0000_Meteoris server side deployment scripts
Last active August 29, 2015 14:19
Meteoris server-side deployment scripts
I use these shell scripts on my server to control Meteor project deployment by means of SSH/RPC calls.
@martinhbramwell
martinhbramwell / clean.sh
Last active August 29, 2015 14:19
meteoris custom config
#!/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
@martinhbramwell
martinhbramwell / issue_37
Created March 15, 2015 12:47
Log result for Velocity-Cucumber
[[[[[ ~/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 = {
@martinhbramwell
martinhbramwell / traceback.txt
Created June 19, 2014 09:25
QWebException: foreach enumerator 'languages' is not defined while rendering template 'website.layout'
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)
@martinhbramwell
martinhbramwell / 0_InstallPortableOpenERP.sh
Last active August 29, 2015 14:00
Steps to prep for portable Oerp
#!/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"
@martinhbramwell
martinhbramwell / bzr_update.sh
Created May 2, 2014 23:31
Refreshing OpenERP installation from Launchpad
#!/bin/bash
#
if [ 1 -eq 1 ]
then
mkdir -p source
pushd source
if [ -d openobject-server ]
then
pushd openobject-server
echo "Done server."
@martinhbramwell
martinhbramwell / iRedSteps.txt
Last active August 29, 2015 14:00
Last Steps for Installing iRedMail
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
@martinhbramwell
martinhbramwell / MoveOpenErpDB.sh
Created April 5, 2014 10:51
Prepare a fresh filesystem and move OpenERP to it.
"!/bin/bash
#
# List virtual disks
ls -l /dev/vd*
#
@martinhbramwell
martinhbramwell / installSaltMinion.sh
Last active January 1, 2016 22:59
Manual installation of a salt-minion
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