Skip to content

Instantly share code, notes, and snippets.

View W360S's full-sized avatar

World 360° Services W360S

View GitHub Profile
@W360S
W360S / Kubernetes Course from a DevOps guru (Kubernetes + Docker)
Created January 2, 2019 09:08
Torrent Kubernetes Course from a DevOps guru (Kubernetes + Docker)
magnet:?xt=urn:btih:3b347890c97c44698628a631e4be714648c086e9&dn=%5BUdemyCourseDownloader%5D%20Kubernetes%20Course%20from%20a%20DevOps%20guru%20(Kubernetes%20+%20Docker)&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.vanitycore.co%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.com%3A2710%2Fannounce&tr=udp%3A%2F%2Ftracker.pirateparty.gr%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.uw0.xyz%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.si%3A1337%2Fannounce
@W360S
W360S / Install Postgres and first login DB
Created March 13, 2018 06:25
Install Postgres and first login DB
Setting a password for the postgres user
On Linux systems, there is no default password set.
To set the default password:
Run the psql command from the postgres user account:
sudo -u postgres psql postgres
Set the password:
@W360S
W360S / recompile-nginx-on-CentOS-to-support-HTTP-2
Created February 13, 2017 17:34
recompile-nginx-on-CentOS-to-support-HTTP-2
# recompile-nginx-on-CentOS-to-support-HTTP-2
In CentOS command line, or an SSH terminal and enter the following command (note the uppercase letter V):
nginx -V
nginx version: nginx/1.10.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-ht
2020-08-01 03:39:08.392825 I | etcdserver: published {Name:etcd-saas2 ClientURLs:[https://34.87.180.195:2379 https://34.87.180.195:4001]} to cluster a381956fb2a3b72
2020-08-01 03:39:08.392908 I | embed: ready to serve client requests
2020-08-01 03:39:08.394672 I | embed: serving client requests on [::]:2379
2020-08-01 03:39:08.402986 I | embed: rejected connection from "34.87.180.195:39460" (error "tls: failed to verify client's certificate: x509: certificate signed by unknown authority (possibly because of \"crypto/rsa: verification error\" while trying to verify candidate authority certificate \"kube-ca\")", ServerName "")
2020-08-01 03:39:13.412569 I | embed: rejected connection from "34.87.180.195:39464" (error "tls: failed to verify client's certificate: x509: certificate signed by unknown authority (possibly because of \"crypto/rsa: verification error\" while trying to verify candidate authority certificate \"kube-ca\")", ServerName "")
2020-08-01 03:39:18.427591 I | embed: rejected connection from "34.
@W360S
W360S / too many certificates already issued
Created November 5, 2019 04:49
too many certificates already issued for: sistematice.online: see https://letsencrypt.org/docs/rate-limits/" "key"="newssl/odoo-tls-1123163323"
I1105 01:52:33.726555 1 controller.go:135] cert-manager/controller/ingress-shim "level"=0 "msg"="finished processing work item" "key"="odoo-https/ingress-odoo-https"
I1105 01:52:44.820858 1 controller.go:129] cert-manager/controller/orders "level"=0 "msg"="syncing item" "key"="odoo-https/odoo-tls-264023537"
I1105 01:52:44.821312 1 sync.go:97] cert-manager/controller/orders "level"=0 "msg"="creating Order with ACME server as one does not currently exist" "resource_kind"="Order" "resource_name"="odoo-tls-264023537" "resource_namespace"="odoo-https"
I1105 01:52:44.821509 1 sync.go:384] cert-manager/controller/orders "level"=0 "msg"="order URL not set, submitting Order to ACME server" "resource_kind"="Order" "resource_name"="odoo-tls-264023537" "resource_namespace"="odoo-https"
I1105 01:52:44.821571 1 sync.go:390] cert-manager/controller/orders "level"=0 "msg"="build set of domains for Order" "resource_kind"="Order" "resource_name"="odoo-tls-264023537" "resource_namespace"="odoo-
@W360S
W360S / kubectl apply -f cert-manager.yaml error
Created September 24, 2019 02:24
> kubectl apply -f cert-manager.yaml error
> kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.10.0/cert-manager.yaml
customresourcedefinition.apiextensions.k8s.io/certificaterequests.certmanager.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/certificates.certmanager.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/challenges.certmanager.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/clusterissuers.certmanager.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/issuers.certmanager.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/orders.certmanager.k8s.io configured
namespace/cert-manager unchanged
serviceaccount/cert-manager-cainjector unchanged
serviceaccount/cert-manager unchanged
@W360S
W360S / Issues
Created June 4, 2019 13:06
Issues
Traceback (most recent call last):
File "/home/odoo/odoo12/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_website_layout_104
File "<template>", line 2, in body_call_content_103
File "/home/odoo/odoo12/odoo/fields.py", line 984, in __get__
self.determine_value(record)
File "/home/odoo/odoo12/odoo/fields.py", line 1085, in determine_value
record._prefetch_field(self)
@W360S
W360S / Malware Attach Via WPML module
Created April 9, 2019 10:59
Malware Attach Via WPML module
This file has been truncated, but you can view the full file.
-- MySQL dump 10.16 Distrib 10.1.38-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: daukhibi_database
-- ------------------------------------------------------
-- Server version 10.1.38-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
it is not that simple, Odoo code still depends on the old unmaintained python-pypdf
However, there is an easy workaround : create a fake python-pdf package and install python-pyPdf from Pipy (Python repository). All of this will be done as root :
install equivs to create fake packages and python-pipto install package from Python repository
run equivs-control python-pypdf, this will create and populate the file python-pypdf
edit the file like below (dot and space under "Description" are mandatory) :
Section: python
Package: python-pypdf
Version: 1.13
@W360S
W360S / Mobilkul logs error
Created October 19, 2018 08:09
Mobilkul logs error
2018-10-19 08:07:53,368 4200 ERROR sasamviet.com werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 250, in app
return self.app(e, s)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)