Skip to content

Instantly share code, notes, and snippets.

View desertfury's full-sized avatar
🛹

Misha Chichvarin desertfury

🛹
  • Pinely
  • Amsterdam
  • 07:31 (UTC +02:00)
View GitHub Profile
(gdb) thread apply all bt
Thread 19 (Thread 0x7ffa2c7f8700 (LWP 709721)):
#0 futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7ffa3499ec18 <gs+184>) at ../sysdeps/nptl/futex-internal.h:183
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7ffa3499ebc8 <gs+104>, cond=0x7ffa3499ebf0 <gs+144>) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x7ffa3499ebf0 <gs+144>, mutex=0x7ffa3499ebc8 <gs+104>) at pthread_cond_wait.c:647
#3 0x00007ffa34995eff in th_worker (tidptr=<optimized out>) at numexpr/module.cpp:64
#4 0x00007ffa42d19609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5 0x00007ffa42ae4353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
root@cbc676ab561e:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
root@cbc676ab561e:/# which twix-python
/usr/bin/twix-python
root@cbc676ab561e:/# ls -lah /usr/bin/twix-python
lrwxrwxrwx 1 root root 29 Jun 10 18:45 /usr/bin/twix-python -> /etc/alternatives/twix-python
#!/usr/bin/env bash
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <build_dir>"
exit 1
fi
BUILD_DIR="$(readlink -f "$1")"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@desertfury
desertfury / repro.ipynb
Created February 5, 2024 18:40
spyt repro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@desertfury
desertfury / ipynb
Created February 5, 2024 18:39
spyt repro
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "98bed09e-1f75-47e6-a57a-262f71434056",
"metadata": {},
"outputs": [],
"source": [
"import spyt\n",
from scipy import misc
IMAGE = 'Downloads/apple.jpg'
T = [0, 255, 0]
S = [255, 0, 0]
def dist(x, y):
res = 0
coefs = [0.299, 0.587, 0.114]
from scipy import misc
IMAGE = 'plane.jpg'
T = [100, 120, 200]
S = [120, 120, 120]
def dist(x, y):
return sum((x - y) ** 2)
#include <iostream>
#include <vector>
#include <queue>
#include <float.h>
struct Link {
float Cost;
size_t Dst;
};
#include <iostream>
#include <limits>
struct TNode {
TNode* left;
TNode* right;
int key;
int value;
};