Skip to content

Instantly share code, notes, and snippets.

View jiridanek's full-sized avatar
🍻

Jiri Daněk jiridanek

🍻
View GitHub Profile
@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:
@jiridanek
jiridanek / fragment_main.xml
Created June 26, 2014 21:47
My own layout for UI Element Quiz
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity$PlaceholderFragment">
Cordova (cca):
// global variables
var data = null;
var port = 4242;
undefined
data = null;
chrome.socket.create('udp', function(s) {
port = port + 1;
console.log("s.socketId: " + s.socketId);
// listen