Skip to content

Instantly share code, notes, and snippets.

View TomasTomecek's full-sized avatar

Tomas Tomecek TomasTomecek

View GitHub Profile
2024-01-24T15:38:25.0354050Z 2024-01-24T15:38:25.033Z waku:error:connection-manager Error dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L - The dial request has no valid addresses
2024-01-24T15:38:25.0355562Z 2024-01-24T15:38:25.033Z waku:info:connection-manager Dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L on attempt 3
2024-01-24T15:38:25.0357120Z 2024-01-24T15:38:25.033Z waku:error:connection-manager Error dialing peer 16Uiu2HAmGHZf972j41BJTNF7hkbG5LPfraiXXaX1JYdeB2GASK4P - The dial request has no valid addresses
2024-01-24T15:38:25.0358654Z 2024-01-24T15:38:25.033Z waku:info:connection-manager Dialing peer 16Uiu2HAmGHZf972j41BJTNF7hkbG5LPfraiXXaX1JYdeB2GASK4P on attempt 3
2024-01-24T15:38:25.0360238Z 2024-01-24T15:38:25.034Z waku:error:connection-manager Error dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L - The dial request has no valid addresses
2024-01-24T15:38:25.0362094Z 2024-01-24T15:38:25.034Z waku:info:connection-manager Deleting undialabl
@TomasTomecek
TomasTomecek / gist:aaaf91e0480b8d3825fa1f374de4aeca
Created April 10, 2024 14:43
GCC 14, F40, CUDA compilation errors
-- /usr/bin/g++ /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c452fdba083f6ec01a/torch/abi-check.cpp -o /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c13:57:07 [233/1713]
uild/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Could not find ccache. Consider installing ccache to speed up compilation.
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Current compiler supports avx512f extension. Will build fbgemm.
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:780 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c114' (ED25519) to the list of known hosts.
You can reproduce this build on your computer by running:
sudo dnf install copr-rpmbuild
/usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/6168772-centos-stream-9-x86_64 --chroot centos-stream-9-x86_64
Version: 0.68
PID: 5189
@TomasTomecek
TomasTomecek / gist:2abcdb8b33eb96d31cdc58eb138dc344
Created July 13, 2023 09:49
Find the error in the rpmbuild output
```
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/b852/_pkg_.a -trimpath "$WORK/b852=>" -p github.com/containers/podman/v4/pkg/specgen/generate/kube -lang=go1.18 -complete -installsuffix shared -buildid AXJTWutV-zkO52RMAmWr/AXJTWutV-zkO52RMAmWr -goversion go1.20.5 -shared -c=2 -nolocalimports -importcfg $WORK/b852/importcfg -pack ./pkg/specgen/generate/kube/kube.go ./pkg/specgen/generate/kube/seccomp.go ./pkg/specgen/generate/kube/volume.go
# github.com/containers/podman/v4/pkg/specgen/generate/kube
pkg/specgen/generate/kube/kube.go:617:3: undefined: portNum
pkg/specgen/generate/kube/kube.go:619:3: undefined: portNum
pkg/specgen/generate/kube/kube.go:621:9: undefined: portNum
github.com/containers/podman/v4/pkg/systemd/generate
mkdir -p $WORK/b853/
cat >/tmp/go-build1875107258/b853/importcfg << 'EOF' # internal
# import config
@TomasTomecek
TomasTomecek / table.md
Created October 11, 2022 10:42
Packit release suffix matrix
bump_version release_suffix expected_path_name updated_spec_file
False None csdiff-2.7.0.20220930.132946.g3ab6fbf-2.fc36.src.rpm False
False '' csdiff-2.7.0.20220930.132946.g3ab6fbf-2.fc36.src.rpm False
False 3 csdiff-2.7.0.20220930.132946.g3ab6fbf-2.3.fc36.src.rpm True
True None csdiff-2.7.0.20220930.132946.g3ab6fbf-3.fc36.src.rpm True
True '' csdiff-2.7.0.20220930.132946.g3ab6fbf-3.fc36.src.rpm True
True 3 I would say an error or csdiff-2.7.0.20220930.132946.g3ab6fbf-3.3.fc36.src.rpm True
@TomasTomecek
TomasTomecek / pod.yml
Last active January 23, 2017 10:00
Minimal OpenShift pod
apiVersion: v1
kind: Pod
metadata:
name: "caching-dns-server" # pod name, your reference from command line
namespace: "myproject" # default namespace in `oc cluster up`
spec:
containers:
- command:
- "bash"
image: "caching-dns-bind" # use your image!
@TomasTomecek
TomasTomecek / get_digest.py
Last active October 6, 2015 08:23
Generate digest of a manifest
#!/usr/bin/python
"""
This script takes at least one argument: path to a file with manifest.
It then computes and prints digest of the manifest(s).
The main reason this is not done properly, by decoding json, removing `signatures` and
encoding again, is that docker messes up encoding of strings and makes it impossible
to do right. For more info see:
@TomasTomecek
TomasTomecek / admin.py
Last active March 12, 2021 21:04
Automatically add all fields to django admin with links between models
# -*- coding: utf-8 -*-
"""
admin.py
Auto-register admin classes with fields and links to linked model classes
based on http://djangosnippets.org/snippets/997/
"""
# -*- coding: utf-8 -*-
from django.http import HttpResponseRedirect
from django.conf import settings
from re import compile
from django.core.urlresolvers import reverse
def get_login_url():