Skip to content

Instantly share code, notes, and snippets.

View nefanov's full-sized avatar
🦝
very-very slow to respond...

nefanov

🦝
very-very slow to respond...
View GitHub Profile
@nefanov
nefanov / gcc_gimple_cfg_dot_thin_bb
Last active July 11, 2021 21:22
gcc_gimple_cfg_dot_thin_bb.py
import pydot
import re
import os, sys
import copy
graphs = pydot.graph_from_dot_file('graph.dot')
graph = graphs[0]
graph.write_png('src.png')
nodes = graph.get_node_list()
@nefanov
nefanov / 1.c
Created September 2, 2019 11:44
C_intro_quizz
#include <stdio.h>
#include <stdint.h>
int main(void)
{
uint16_t x = 1; /* 0x0001 */
printf("%s\n", *((uint8_t *) &x) == 0 ? "1" : "0");
return 0;
}
@nefanov
nefanov / xbox_carcontroller.py
Created July 4, 2019 16:00 — forked from energee/xbox_carcontroller.py
User xbox controller to command openpilot
#!/usr/bin/env python
from evdev import InputDevice
from select import select
import time
import numpy as np
import zmq
from cereal import car
import selfdrive.messaging as messaging
@nefanov
nefanov / can_replay.py
Created July 4, 2019 16:00 — forked from energee/can_replay.py
CAN Replay
#!/usr/bin/env python
import sys
import time
import struct
from panda import Panda
DEBUG = False
def main():
logfile = sys.argv[1]
@nefanov
nefanov / dccn
Last active April 15, 2019 14:17
dccn
http://2019.dccn.ru/
parallel queuing of process tree reconstruction.
@nefanov
nefanov / g
Created April 11, 2019 15:34
g
One more External coordinator drawback: no new pgid to group leader!
@nefanov
nefanov / g
Created April 2, 2019 08:26
g
files=../datasets/SLAM_datasets/gopro5/dolauto/undist/images.zip calib=../datasets/SLAM_datasets/gopro5/dolauto/undist/calib.txt preset=0 mode=2
/home/nefanov/vision/LDSO
@nefanov
nefanov / gg
Created March 27, 2019 09:59
gg
http://www.cril.univ-artois.fr/~mephu/fu-mephu_ISI_04.pdf
@nefanov
nefanov / фн
Created March 27, 2019 09:22
фн
принцип фон неймана
любые данные есть код
@nefanov
nefanov / check
Created March 17, 2019 00:12
group-->session
# disclaimer: behaviour as expected! - EPERM if there are pgroup-processes in the old session
import os
import psutil
from time import sleep
root = os.getpid()
sleep(1)
os.setpgid(0,0)
pid = os.fork()