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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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
#! /usr/bin/env node
var DEBUG = false;
if ( process.env.DEBUG ) {
DEBUG = true;
}
#!/bin/bash
#
# Install prerequisites
echo "Did you remember to prefix with sudo?"
read _
# -- 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