git checkout your_branch git log –oneline 98eba8e Wrong commitcc860f6 Wrong commit6ebe41c Wrong commitfb16584 Ok commit038bcd1 Ok commit Reset to latest ok commit: git reset –hard fb16584 git push origin your_branch –force
Category: Docs
3D video cu Strava și Relive
Scenariu: Ai făcut un traseu, ai folosit Strava și vrei să faci un clip frumos în care să ai traseul 3D văzut pe hartă + pozele făcute cu telefonul pe traseu. Îți trebuie cont premium la Strava.com. Te autentifici în contul tău Strava. Mă autentific pe PC. Mergi la Dashboard, Activity Feed, My Activities Click…
Download file from server (linux)
Server IP and port: 11.22.33.44:55555Config ssh key (get it with cat ~/.ssh/key.pub) Test ssh connection: ssh root@11.22.33.44 -p 55555 The in your local terminal run this command to download (copy) the file from server: scp -P 55555 root@11.22.33.44:/path/to/file.sql.tar.gz .
Kdenlive crash render Ubuntu
navigate to Settings > Configure Kdenlive > Environment and then uncheck the option “Use multiple threads” (or set 1 instead of 2)
ChatGPT (notes)
I took a course on LinkedIn Learning about ChatGPT used for coding. Here are some notes.
Sentry errors exclude by URL
To see errors for a particular URL you can use: is:unresolved url:https://website.com/my/url But if you want to exclude the errors from this URL, this will do the work: is:unresolved !url:https://website.com/my/url
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)
.layout issue in Plone
Go to blobstorage folder, edit .layout Change: bushy -> zeocache
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:
Plone 6, random debug commands
cat docker-entrypoint.sh cat /etc/passwd ls data/cache id -u plone su – plone stat /app/var…lock sudo rm data/filestorage/Data.fs.lock id -u (mounted type fakeowner data -> permission denied on data) docker context ls (ok: default, wrong: Docker Desktop)