Skip to content

Instantly share code, notes, and snippets.

View kcleong's full-sized avatar

Kim Chee Leong kcleong

  • Python United, Turftorr
  • The Netherlands, Groningen
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"version": 6,
"core": {
"buildingDocument": {
"uuid": "765A86F7-FCA1-4AC6-A53D-9AB81A01348C",
"buildings": [
{
"uuid": "776916D5-6399-4660-96BE-4AF43FF18DC9",
"levels": [
{
(zzz__3.8.13) ➜ wageindicator.buildout git:(master) ✗ buildout -vvv
Installing 'mr.developer'.
We have the distribution that satisfies 'mr.developer==2.0.1'.
Version conflict while processing requirement zc.buildout (constrained to zc.buildout==2.13.3)
Getting required 'zc.buildout==2.13.3'
We have the distribution that satisfies 'zc.buildout==2.13.3'.
mr.developer: Queued 'collective.themesitesetup' for checkout.
mr.developer: Queued 'incf.countryutils' for checkout.
mr.developer: Queued 'plonetheme.barceloneta' for checkout.
mr.developer: Queued 'wageindicator.addon' for checkout.
(yyy__2.7.17) ➜ yyy.buildout-5.2 git:(master) ✗ buildout -vvvvv
Installing 'mr.developer'.
We have the distribution that satisfies 'mr.developer==2.0.1'.
Version conflict while processing requirement zc.buildout (constrained to zc.buildout==2.13.4)
Getting required 'zc.buildout==2.13.4'
We have the distribution that satisfies 'zc.buildout==2.13.4'.
mr.developer: Queued 'collective.elasticindex' for checkout.
mr.developer: Queued 'collective.pdfpeek' for checkout.
mr.developer: Queued 'milieudefensie.addon' for checkout.
mr.developer: Queued 'plone.app.content' for checkout.
@kcleong
kcleong / kuma.log
Created August 12, 2022 08:14
uptime kuma error
uptime-kuma | Trace: KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
uptime-kuma | at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:305:26)
uptime-kuma | at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:259:28)
uptime-kuma | at async Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:19)
uptime-kuma | at async RedBeanNode.normalizeRaw (/app/node_modules/redbean-node/dist/redbean-node.js:588:22)
uptime-kuma | at async RedBeanNode.getRow (/app/node_modules/redbean-node/dist/redbean-node.js:574:22)
uptime-kuma | at async Function.calcUptime (/app/server/model/monitor.js:729:22)
uptime-kuma | at async Function.sendUptime (/app/server/model/monitor.js:792:24)
uptime-kuma | at async Function.sendStats (/app/server/model/monitor.js:671:13) {
uptime-kuma | sql: '\n' +
#!/bin/bash
VERSION=3.10.5
curl https://pyenv.run | bash
cat >> ~/.profile << EOF
export PYENV_ROOT="\$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="\$PYENV_ROOT/bin:\$PATH"
eval "\$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
EOF
@kcleong
kcleong / starkvind.log
Created December 16, 2021 07:03
grep -i 0x4D79 home-assistant.log
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0000] Attribute id: 4 value: IKEA of Sweden
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0000] Attribute id: 5 value: STARKVIND Air purifier
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0000] Attribute id: 4 value: IKEA of Sweden
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0000] Attribute id: 5 value: STARKVIND Air purifier
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0202] Attribute id: 1 value: 2
2021-12-14 20:22:22 DEBUG (MainThread) [zigpy.appdb] [0x4d79:1:0x0202] Attribute id: 0 value: 5
2021-12-14 20:22:25 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0x4D79](IKEA of Sweden STARKVIND Air purifier) restored as 'available', last seen: 0:03:27 ago, consider_unavailable_time: 7200 seconds
2021-12-14 20:22:25 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4D79](STARKVIND Air purifier): started initialization
2021-12-14 20:22:25 D
@kcleong
kcleong / ha_starkvind.log
Created December 14, 2021 06:51
grep -i 0x4D79 home-assistant.log
2021-12-13 19:39:50 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.TCDevInd.Callback(SrcNwk=0x4D79, SrcIEEE=b4:e3:f9:ff:fe:2b:07:3f, ParentNwk=0xB357)
2021-12-13 19:39:50 INFO (MainThread) [zigpy_znp.zigbee.application] TC device join: ZDO.TCDevInd.Callback(SrcNwk=0x4D79, SrcIEEE=b4:e3:f9:ff:fe:2b:07:3f, ParentNwk=0xB357)
2021-12-13 19:39:50 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.TCDevInd.Callback(SrcNwk=0x4D79, SrcIEEE=b4:e3:f9:ff:fe:2b:07:3f, ParentNwk=0xB357)
2021-12-13 19:39:50 INFO (MainThread) [zigpy_znp.zigbee.application] TC device join: ZDO.TCDevInd.Callback(SrcNwk=0x4D79, SrcIEEE=b4:e3:f9:ff:fe:2b:07:3f, ParentNwk=0xB357)
2021-12-13 19:39:50 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.EndDeviceAnnceInd.Callback(Src=0x4D79, NWK=0x4D79, IEEE=b4:e3:f9:ff:fe:2b:07:3f, Capabilities=<MACCapabilities.AllocateShortAddrDuringAssocNeeded|RXWhenIdle|MainsPowered|Router: 142>)
2021-12-13 19:39:50 INFO (MainThread) [zigpy_znp.zigbee.application] ZDO device announce: ZDO.E
(NENV) (plone-webpack) ➜ example-plone-5.2.1 make watch
make -j watch_plone watch_theme
bin/instance fg
sleep 10 # wait for Plone
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.CMFUid-3.0.1-py2.7.egg/Products/CMFUid/UniqueIdHandlerTool.py:24: DeprecationWarning: InitializeClass is deprecated. Please import from AccessControl.class_init.
from App.class_init import InitializeClass
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.GenericSetup-2.0.1-py2.7.egg/Products/GenericSetup/registry.py:16: ImportWarning: Not importing directory '/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.GenericSetup-2.0.1-py2.7.egg/Products/GenericSetup/xml': missing __init__.py
from xml.sax import parseString
2020-10-23 14:36:28,661 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerPythonScript.ControllerPythonScript has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
2020-10-23 14:36:28,669 WARNING [Init:89][M
@kcleong
kcleong / make.log
Created October 16, 2020 09:54
Plone webpack make with Plone 5.2.2
(NENV) (plone-webpack) ➜ example.buildout make
rm -f -r \
bin \
develop-eggs \
.installed.cfg \
parts \
resources/.plone \
resources/theme
/Users/leong/Envs/plone-webpack/bin/buildout -N install instance plonesite
Creating directory '/Users/leong/projects/plone-webpack/example.buildout/bin'.
@kcleong
kcleong / zodb_index_fixer.py
Last active June 5, 2020 12:20
Plone ZODB index fixer
# -*- coding: utf-8 -*-
""" Plone ZODB index fixer
Usage
Execute script without committing changes (dry run):
./bin/instance run [path to script]/zodb_index_fixer.py
Execute script and commit changes: