Skip to content

Instantly share code, notes, and snippets.

@inspiretk
inspiretk / cloudSettings
Last active Apr 7, 2021
visual studio code settings
View cloudSettings
{"lastUpload":"2021-04-07T09:24:44.648Z","extensionVersion":"v3.4.3"}
View Setup Docker on Windows 7 with Folder Binding to Container
Youtube video here of the below instructions: https://youtu.be/WmN2Yc-75lE
############# START of File #############
# Docker setup for Windows 7 64 bit. Need Docker Toolbox because Docker Windows uses Hyper V, and windows 7 dont have it.
# Docker Toolbox will install VirtualBox and you'll run docker containers inside your VirtualBox.
# You can bind your local machine Windows 7 folder to link it to your container inside your VirtualBox machine.
# Your windows 7 machine needs to be 64 bit, with virtualization. Full instructions here: https://docs.docker.com/toolbox/toolbox_install_windows/
### Instructions ###
# 1. Install Docker Toolbox > Search for docker toolbox download and download it
# OR Download latest .exe file using this link https://github.com/docker/toolbox/releases
View Wordpress server setup Ubuntu 18.04 Nginx
install PHPMyAdmin on Nginx Ubuntu 18.04
https://youtu.be/pGc8DbJVupE How to Install Nginx, PHP, MySQL (LEMP) on Ubuntu 18.04
sudo apt update && sudo apt install nginx -y
sudo service nginx status
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx HTTP'
sudo ufw enable
sudo ufw status
check ngix is working, go load your website up, has default ngix page
sudo apt update && sudo apt install mysql-server -y
View odoo 12 Tips Tricks
### Create a new Building Block in website
https://www.odoo.yenthevg.com/creating-using-building-blocks-odoo/
https://github.com/Yenthe666/Odoo_Samples/tree/11.0/website_snippet_demo
###
View A1 odoo 11 Ubuntu 18.04 Server Setup and odoo 11 Install and Setup
Follow scripts to install odoo 11 on Ubuntu 18.04
Nginx setup for redirect
SSL setup with Lets Encrypt
@inspiretk
inspiretk / Script SSL 4 of 4
Last active Oct 19, 2019
WORKING VPS Install Odoo Multi Domain Non WWW SSL Security
View Script SSL 4 of 4
#!/bin/bash
# This script is to install lets encrypt SSL to your domain
# nano letsencryptssl.sh
# Copy everything in this script and paste it in, save file and exit
# chmod +x letsencryptssl.sh
# ./letsencryptssl.sh
# (when script is running, press enter to continue, put your important email for ssl renewal notices, 2 for redirect to non www)
DOMAIN1=thuani.com
ODOOCFOLDER=/etc
View Install odoo 12 community edition VPS ubuntu 18.04 a1 didn't work
sudo apt update && sudo apt upgrade -y
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less -y
wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt install ./wkhtmltox_0.12.1.3-1~bionic_amd64.deb -y
# source go to https://github.com/Yenthe666/InstallScript
sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
nano odoo_install.sh
# Line OE_USER="odoo" is your odoo folder name leave as it is
# Line OE_SUPERADMIN="admin" is the master password for this Odoo installation (admin). Change admin to your new strong password
View setupodoo Install odoo 12 on new VPS Ubuntu 18.04
#!/bin/sh
# nano setupodoo.sh
# > copy the setupodoo script in details and save it as setupodoo
# chmod +x setupodoo.sh
# ./setupodoo.sh
# STEP 1
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install python3-pip
# INSTALL DEPENDENCIES USING PIP3
View Odoo Auto Backup to Mega
https://github.com/Yenthe666/auto_backup
backup to server first
sudo pip3 install pysftp
# this is no good, it needs List_db to be True, but it's disabled for security purpose. Need another method.
https://github.com/meganz/MEGAcmd/blob/master/contrib/docs/BACKUPS.md
push local backup to mega cloud
https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md
View odoo create new module
#https://www.odoo.com/documentation/11.0/howtos/backend.html
#odoo-bin scaffold <module name> <where to put it> eg odoo-bin scaffold openacademy addons
#python odoo-bin scaffold tool addons #{in cmd, put new tool folder in folder addons}
# ./odoo-bin scaffold module_name /odoo/odoo-server/addons/
#./odoo-bin scaffold <module_name> <destination path where you want to create>
python odoo-bin scaffold tool addons
https://hub.packtpub.com/building-your-first-odoo-application/
_name value is what will be used as an identifier for other odoo modules.