Skip to content

Instantly share code, notes, and snippets.

View jiridanek's full-sized avatar
🍻

Jiri Daněk jiridanek

🍻
View GitHub Profile

Python reading

Problem 1

for i in range(1, 10):
    print(i)
else:
    print("else")

Additional images:

- quay.io/modh/caikit-nlp@sha256:24d74898dc50ebdd3526f6cb8a028a521e79adf5bfe52559afd3734900da975e
- quay.io/modh/caikit-tgis-serving@sha256:2c7eef73708b5d73de33153459ac7238fdcf517cdc3544c775981f5814b4b6ed
- quay.io/modh/codeserver@sha256:38460e3b5536d903add40869714512e2c3a993c3dfe4a8010688e4e3b79bf090
- quay.io/modh/codeserver@sha256:92f2a10dde5c96b29324426b4325401e8f4a0d257e439927172d5fe909289c44
- quay.io/modh/cuda-notebooks@sha256:26bd9460f36016a618f003f99c30209c25dbfa36929f0a7a8b9055557d09a709
- quay.io/modh/cuda-notebooks@sha256:3c7d3cb69cb311925afd67d05e54b0d34a2acd6990ff12a16bb3ee5cb8dbd265
- quay.io/modh/cuda-notebooks@sha256:55598c7de919afc6390cf59595549dc4554102481617ec42beaa3c47ef26d5e4
- quay.io/modh/cuda-notebooks@sha256:99d3fb964e635873214de4676c259a96c2ea25f3f79cc4bead5bc9f39aba34c0
  • quay.io/modh/kserve-agent@sha256:9e4d959ecd76aeeb4c275628b0276c6123967e953e838a2b43bc9c750c6db844
@jiridanek
jiridanek / README.md
Last active March 15, 2024 21:59
Kustomize RStudio Server BuildConfigs

Kustomize

$ oc kustomize --output rstudio-rhoai28.yaml

Review rstudio-rhoai28.yaml and apply it to the cluster

$ oc apply -f rstudio-rhoai28.yaml
import pathlib
import random
stations = [
('Severní pól', -50.5),
('Špicberky', -30.5),
('Novosibirsk', 1.7),
('La Quiaca', 12.8),
('Formosa', 27.6),
('Buenos Aires', 24.9),
2022-03-04 20:55:07.076308 +0000 AGENT (debug) Add entity: LogEntity(enable=trace+, identity=log/DEFAULT, includeSource=True, includeTimestamp=True, module=DEFAULT, name=log/DEFAULT, outputFile=EA1.log, type=org.apache.qpid.dispatch.log) (/home/runner/work/skupper-router/skupper-router/skupper-router/python/qpid_dispatch_internal/management/agent.py:602)
2022-03-04 20:55:07.077408 +0000 AGENT (debug) Add entity: LogEntity(identity=log/POLICY, module=POLICY, name=log/POLICY, type=org.apache.qpid.dispatch.log) (/home/runner/work/skupper-router/skupper-router/skupper-router/python/qpid_dispatch_internal/management/agent.py:602)
2022-03-04 20:55:07.077800 +0000 AGENT (debug) Add entity: LogEntity(identity=log/PROTOCOL, module=PROTOCOL, name=log/PROTOCOL, type=org.apache.qpid.dispatch.log) (/home/runner/work/skupper-router/skupper-router/skupper-router/python/qpid_dispatch_internal/management/agent.py:602)
2022-03-04 20:55:07.078173 +0000 AGENT (debug) Add entity: LogEntity(identity=log/PYTHON, module=PYTHON, name
$ objdump -d -s -j .plt -j .got.plt /lib/aarch64-linux-gnu/libc-2.31.so
/lib/aarch64-linux-gnu/libc-2.31.so: file format elf64-littleaarch64
Contents of section .plt:
23aa0 f07bbfa9 300a00f0 11fe47f9 10e23f91 .{..0.....G...?.
23ab0 20021fd6 1f2003d5 1f2003d5 1f2003d5 .... ... ... ..
23ac0 500a0090 110240f9 10020091 20021fd6 P.....@..... ...
23ad0 500a0090 110640f9 10220091 20021fd6 P.....@..".. ...
23ae0 500a0090 110a40f9 10420091 20021fd6 [email protected].. ...
25 - python-test (Failed)
$ /usr/bin/python3 "/home/ubuntu/repos/qpid-proton-0.31.0/scripts/env.py" "--" "PATH=/home/ubuntu/repos/qpid-proton-0.31.0/clang/c/tools:/home/ubuntu/repos/qpid-proton-0.31.0/clang/c:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" "PYTHONPATH=/home/ubuntu/repos/qpid-proton-0.31.0/python/tests:/home/ubuntu/repos/qpid-proton-0.31.0/python:/home/ubuntu/repos/qpid-proton-0.31.0/clang/python:/home/ubuntu/repos/qpid-proton-0.31.0/clang/python" "SASLPASSWD=CyrusSASL_Saslpasswd_EXECUTABLE-NOTFOUND" "UBSAN_OPTIONS=suppressions=/home/ubuntu/repos/qpid-proton-0.31.0/tests/ubsan.supp" "LSAN_OPTIONS=suppressions=/home/ubuntu/repos/qpid-proton-0.31.0/tests/lsan.supp" "HWASAN_OPTIONS=external_symbolizer_path=/home/ubuntu/llvm/install/bin/llvm-symbolizer" "/home/ubuntu/repos/qpid-proton-0.31.0/tests/preload_asan.sh" "/home/ubuntu/repos/qpid-proton-0.31.0/clang/c/libqpid-proton-core.so.10.9.0" "/usr/bin/python3" "--" "/home/ubuntu/repos/qpid-proton
# pip install --user grpcio --no-binary :all:
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting grpcio
Downloading https://files.pythonhosted.org/packages/cf/7a/9744998129fce7e29c5f2d8b0f545913b7383e65d8366fc0ae98d11936af/grpcio-1.28.1.tar.gz (19.5MB)
|████████████████████████████████| 19.5MB 2.0MB/s
Requirement already satisfied: six>=1.5.2 in /root/.local/lib/python3.7/site-packages (from grpcio) (1.14.0)
Installing collected packages: grpcio
Running setup.py install for grpcio ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-3uijqxhy/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-owux4n6b/install-record.txt --single-version-externally-managed --compile --user --prefix=:
[root@0dfa1da7227a /]# pip install --user zmq --no-binary :all:
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting zmq
Using cached https://files.pythonhosted.org/packages/6e/78/833b2808793c1619835edb1a4e17a023d5d625f4f97ff25ffff986d1f472/zmq-0.0.0.tar.gz
Collecting pyzmq (from zmq)
Using cached https://files.pythonhosted.org/packages/16/4c/762c2c3063c4d45baf4a49acea7a4f561f7b78a45cd04b58d63f4c5f6b8d/pyzmq-19.0.0.tar.gz
Installing collected packages: pyzmq, zmq
Running setup.py install for pyzmq ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-fpbocqvh/pyzmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-g1kr5iho/install-record.txt --single-version-externally-managed --compile --user --pref
@jiridanek
jiridanek / 01.java
Created April 24, 2020 11:35
jdk-tsan
==================
WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread) (pid=29163)
#0 pthread_mutex_unlock <null> (java+0x43c097)
#1 ZIP_Get_From_Cache /home/jdanek/repos/jdk-tsan/src/java.base/share/native/libzip/zip_util.c:822:5 (libzip.so+0x337b)
Location is heap block of size 160 at 0x7b2800005320 allocated by thread T1:
#0 malloc <null> (java+0x42d685)
#1 os::malloc(unsigned long, MemoryType, NativeCallStack const&) /home/jdanek/repos/jdk-tsan/src/hotspot/share/runtime/os.cpp:698:18 (libjvm.so+0xb1f4a1)
Mutex M41 (0x7b2800005328) created at: