Skip to content

Instantly share code, notes, and snippets.

View W360S's full-sized avatar

World 360° Services W360S

View GitHub Profile
@W360S
W360S / Install-Magento.md
Last active August 21, 2016 01:08 — forked from rafaelstz/Install-Magento-1.md
Install Magento 1.9.2.4 (With Sample Data)
@W360S
W360S / Install & Start Docker
Created August 21, 2016 01:10
Install & Start Docker
Install
There are two ways to install Docker Engine. You can install using the yum package manager. Or you can use curl with the get.docker.com site. This second method runs an installation script which also installs via the yum package manager.
Install with yum
Log into your machine as a user with sudo or root privileges.
Make sure your existing yum packages are up-to-date.
$ sudo yum update
Add the yum repo.
$ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
@W360S
W360S / Chown File Permission
Created August 22, 2016 07:59
Chown File Permission
chmod Wordpress
find . -type d -exec chmod 755 '{}' \;
find . -type f -exec chmod 644 '{}' \;
@W360S
W360S / find command
Created February 13, 2017 08:53
find / -xdev 2>/dev/null -name "website_templates.xml"
find / -xdev 2>/dev/null -name "website_templates.xml"
cd /usr/local/src/
curl https://curl.haxx.se/download/curl-7.51.0.tar.gz | tar xvz
# wget http://www.openssl.org/source/openssl-1.0.2.tar.gz
# tar -xzvf openssl-1.0.2k.tar.gz
cd curl-7.51.0
./configure --with-openssl=/usr/local/src/openssl-1.0.2 && make && make install
curl -V
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 677, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call
@W360S
W360S / fixd odoo invalid database name
Created September 26, 2017 13:48
fixd odoo invalid database name
cd path/to/odoo
sed -i 's/matches="[^"]*"//g' addons/web/static/src/xml/base.xml
@W360S
W360S / W360S Core Fixed
Created December 27, 2017 09:48
W360S Core Fixed
IMPORTANT:
-----------------------------------------------------------------------------------------
Please be sure to read the Important Update Notes before you update:
http://theme-fusion.com/avada-doc/install-update/important-update-information/
We are always proactive in preventing security issues, however nobody can assume they will never come up.
This is why we highly recommend to stay up to date with each new theme version and plugins.
-----------------------------------------------------------------------------------------
Version 5.4 - December 19th, 2017
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},sl
@W360S
W360S / keyconcept theme error
Created April 30, 2018 17:37
keyconcept theme error raise IOError('File not found: %s' % basename) OSError: File not found: platform_theme/views/theme_source.xml
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value