Skip to content

Instantly share code, notes, and snippets.

View jsqwang's full-sized avatar

Doji Media Pte Ltd jsqwang

View GitHub Profile
-setup always a test database and test anything there first
-dont install or uninstall modules in live databases without test them in a test database first
-dont do anything you dont know in live databases
-be carefull about send mails via message board or use the send a message button, because they could go directly to your customers if they are following you. it is a feature of odoo CRM.
-dont confirm/validate a invoice if you dont have sure the customer will ask for change something or you will need to cancel it to change again. keep them in draft state.
#!/bin/sh
# virtualmin-install.sh
# Copyright 2005-2013 Virtualmin, Inc.
# Simple script to grab the virtualmin-release and virtualmin-base packages.
# The packages do most of the hard work, so this script can be small-ish and
# lazy-ish.
# WARNING: Anything not listed in the currently supported systems list is not
# going to work, despite the fact that you might see code that detects your
# OS and acts on it. If it isn't in the list, the code is not complete and
@jsqwang
jsqwang / swap.sh
Last active August 29, 2015 14:23
#If you want to learn how to create the file faster, remove the file and follow along below:
sudo rm /swapfile
#The Faster Way
#The quicker way of getting the same file is by using the fallocate program. This command creates a file of a preallocated size #instantly, without actually having to write dummy contents.
#We can create a 4 Gigabyte file by typing:
#!/bin/bash
################################################################################
# Script for Installation: ODOO Saas4/Trunk server on Ubuntu 14.04 LTS
# Author: André Schenkels, ICTSTUDIO 2014
#-------------------------------------------------------------------------------
#
# This script will install ODOO Server on
# clean Ubuntu 14.04 Server
#-------------------------------------------------------------------------------
# USAGE: