I already configure my domain skyguyver.com with Caddy but I need to review again as I can't remember how I did it.
The Caddyfile was placed in /etc/caddy
skyguyver.com {
tls lynardsalingujay@gmail.com
internal /.git
git https://github.com/skyguyver/caddy.git {
hook /github_hook d937c9d4-7c48-431e-8e60-bf916186f613
}
gzip
redir 301 {
if {scheme} is http
/ https://{host}{uri}
}
}
Monday, April 29, 2019
Wednesday, April 24, 2019
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_attachment.py"
Conclusion:
Was able to fix this problem with a workaround: manually going into the database and removing the entries pointing to the missing files from filestoreDELETE FROM ir_attachment WHERE store_fname LIKE '%<the ending hash>%'
reference:
https://www.odoo.com/es_ES/forum/ayuda-1/question/solved-how-to-recover-deleted-attachment-files-from-filestore-folder-local-share-odoo-filestore-128453
Friday, April 19, 2019
Running Odoo and Postgres in separate container
Odoo:
version: '2'
services:
app:
image: skyguyver/odoo9_latest
container_name: develop
ports:
- "3033:8069"
volumes:
- develop-data:/var/lib/odoo
- ./addons:/mnt/extra-addons
environment:
- PYTHONUNBUFFERED=1
- HOST=172.18.0.1
- PORT=3032
- USER=odoo
- PASSWORD=odoo
#command: openerp-server -d develop -u all
volumes:
develop-data:
Postgres:
version: '2'
services:
db:
image: postgres:9.6
ports:
- "3032:5432"
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- dbdata:/var/lib/postgresql/data/pgdata
volumes:
dbdata:
Tuesday, April 9, 2019
Saturday, April 6, 2019
devco trial
Bubbles.py
from collections import OrderedDict
def nonrepeating(orig):
input = orig.lower()
dict=OrderedDict.fromkeys(input,0)
# traverse
for ch in input:
dict[ch]+=1
# nonrepeat
nonRepeatDict = [key for (key,value) in dict.iteritems() if value==1]
print nonRepeatDict
repeatStr = []
for tx in list(orig):
if tx not in nonRepeatDict:
repeatStr.append(tx)
makeitastring = ''.join(map(str, nonRepeatDict + repeatStr))
print makeitastring
if __name__ == "__main__":
orig = "Bubble"
nonrepeating(orig)
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(N):
# write your code in Python 3.6
ret = '+'
flag = '+'
for i in range(1, N):
if flag == '+':
ret += '-'
flag = '-'
else:
ret += '+'
flag = '+'
return ret
Thursday, April 4, 2019
Installing Jenkins with Docker in new approach
Install Jenkins
- Running Jenkins as a Docker container
- Interacting with the Docker host from Jenkins
$ docker volume create jenkins
To identify docker group id
$ getent group docker
docker:x:998:vagrant
Run the container and to save the jenkins configuration into jenkins volume
$ docker run -v jenkins:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --group-add 998 --name jenkins dockerhp/jenkins
$ docker run -v jenkins:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --group-add 998 -d --name jenkins dockerhp/jenkins
To figure out the ip address of jenkins
$ docker inspect -f '{{.NetworkSettings.Networks.bridge.IPAddress}}' jenkins
172.17.0.2
To view the secret password
$ docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
Install plugin
Git plugin
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
One of the functionality in our system is can able to generate a report using Jasper report. We have a Jasper server setup in another ip ad...
-
https://www.liquidweb.com/kb/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts/