Skip to content

Instantly share code, notes, and snippets.

View Buanderie's full-sized avatar

Buanderie Buanderie

View GitHub Profile
@Buanderie
Buanderie / CMakeLists.txt
Created October 28, 2022 15:16 — forked from bkietz/CMakeLists.txt
backward trace from all threads
# https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required(VERSION 3.18)
project(backward_trace_all_threads)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(Threads)
enable_testing()
add_executable(main main.cc)
target_link_libraries(main Threads::Threads dw)
@Buanderie
Buanderie / Makefile
Created April 27, 2021 21:22 — forked from 38/Makefile
A Minimal LLVM JIT example for LLVM-5
jit-toy: jit-toy.cpp
clang++ -g -o $@ $^ $(shell /usr/lib/llvm-5.0/bin/llvm-config --cxxflags --ldflags --system-libs --libs core)
@Buanderie
Buanderie / graph_search.cpp
Created April 14, 2021 15:04 — forked from douglas-vaz/graph_search.cpp
Breadth First Search and Depth First Search in C++
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
class Node{
@Buanderie
Buanderie / linux_fusion360.md
Created February 9, 2021 10:18 — forked from probonopd/linux_fusion360.md
Autodesk Fusion 360 on Linux

Autodesk Fusion 360 on Linux

In the Web Browser

Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.

https://myhub.autodesk360.com

On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.

@Buanderie
Buanderie / wifi_inject.c
Created June 5, 2020 08:16 — forked from adammw/wifi_inject.c
WiFi raw packet injection
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/nl80211.h>
#include <linux/genetlink.h>
@Buanderie
Buanderie / libcorrect.py
Created January 9, 2020 13:35 — forked from brian-armstrong/libcorrect.py
libcorrect in python
import ctypes
# find the library. for osx this is .dylib, for linux .so, for windows .dll
# path should be an absolute path to where the library was compiled and installed
libcorrect = ctypes.CDLL('/usr/local/lib/libcorrect.dylib')
# tell ctypes about the functions in our library
create = libcorrect.correct_convolutional_create
create.argtypes = [ctypes.c_size_t, ctypes.c_size_t, ctypes.c_void_p]
create.restype = ctypes.c_void_p
@Buanderie
Buanderie / workstealingstack.h
Created September 18, 2018 13:32 — forked from jcdickinson/workstealingstack.h
C++ Lock-Free Work Stealing Stack
#pragma once
#include <atomic>
// A lock-free stack.
// Push = single producer
// Pop = single consumer (same thread as push)
// Steal = multiple consumer
// All methods, including Push, may fail. Re-issue the request
// if that occurs (spinwait).
@Buanderie
Buanderie / rl-tutorial-3.ipynb
Created February 21, 2018 16:39 — forked from awjuliani/rl-tutorial-3.ipynb
Reinforcement Learning Tutorial in Tensorflow: Model-based RL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Buanderie
Buanderie / bibtex.png
Created January 28, 2018 08:22 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@Buanderie
Buanderie / DBSCAN.hpp
Created May 4, 2016 07:35 — forked from ialhashim/DBSCAN.hpp
Portable Clustering Algorithms in C++ (DBSCAN) and (Mean-Shift) and (k-medoids)
#pragma once
// Code adapted from https://github.com/propanoid/DBSCAN
#include <vector>
#include <algorithm>
#include <omp.h>
// Any basic vector/matrix library should also work
#include <Eigen/Core>