Ca să o am la îndemână:
Tag: docs
ChatGPT (notes)
I took a course on LinkedIn Learning about ChatGPT used for coding. Here are some notes.
Git commit to new branch
$ git checkout -b new_branch $ git status $ git add . $ git commit -m “Message” $ git push –set-upstream origin new_branch (or $ git push and copy paste the suggestion)
Restore deleted images Plone 6
Having a ABCPlone6Website.blabla with ABCPlone6Staging.blabla, let’s say you delete some images and you want to restore them from staging website. My method was to: The script:
UID to object in Plone
(Pdb) from plone.app.uuid.utils import uuidToObject(Pdb) uuidToObject(’40asdasde33′)<Product at /Plone/en/blabla/something>
Local test empty plone backend
Just some notes:
Plone 6, Volto: find items containing a block
In my case I searched for items that contains any kind of “form” block: Register a view (MyView): configure.zcml admin.py Then go to localhost:8080/Plone/my-view
rsync rancher config
Go to rancher stack Add service eeacms/rsync (same settings as for other projects) Volumes – use the volume listed in storages: my_website_data:/data then $ ssh root@vv.vvv.vv.vv -p 22222 yes $ cd /data/
Disable LDAP (Plone 6)
Site Setup -> Management Interface (ZMI) -> acl_users -> pasldap -> Activate -> uncheck all -> Update
pdb – kill the current process
ctrl+\ kills the current process