sudo apt install openjdk-8-jdk-headless
# | |
# Installing dependencies (Tested on Ubuntu 22.04 LTS) | |
# | |
# Monado | |
sudo apt install cmake ninja-build | |
sudo apt install build-essential git wget unzip cmake ninja-build libeigen3-dev curl patch python3 pkg-config libx11-dev libx11-xcb-dev libxxf86vm-dev libxrandr-dev libxcb-randr0-dev libvulkan-dev glslang-tools libglvnd-dev libgl1-mesa-dev ca-certificates libusb-1.0-0-dev libudev-dev libhidapi-dev libwayland-dev libuvc-dev libavcodec-dev libopencv-dev libv4l-dev libcjson-dev libsdl2-dev libegl1-mesa-dev libbsd-dev | |
# XRSP (Quest Link USB) | |
sudo apt install capnproto libcapnp-dev libx264-dev nlohmann-json3-dev |
import scala.annotation.tailrec | |
class Graph[A](m: Map[A, Set[A]]): | |
type Vertex = A | |
type GraphMap = Map[Vertex, Set[Vertex]] | |
private def neighbors(v: Vertex): List[Vertex] = | |
m.get(v).map(_.toList).getOrElse(List.empty[Vertex]) | |
def search(start: Vertex, end: Vertex): Boolean = | |
@tailrec | |
def bfs(toVisit: List[Vertex], visited: List[Vertex]): Boolean = |
The big reason to do this is that LLDB has no ability to "follow-fork-mode child", in other words, a multi-process target that doesn't have a single-process mode (or, a bug that only manifests when in multi-process mode) is going to be difficult or impossible to debug, especially if you have to run the target over and over in order to make the bug manifest. If you have a repeatable bug, no big deal, break on the fork
from the parent process and attach to the child in a second lldb instance. Otherwise, read on.
Don't make the mistake of thinking you can just brew install gdb
. Currently this is version 10.2 and it's mostly broken, with at least two annoying bugs as of April 29th 2021, but the big one is https://sourceware.org/bugzilla/show_bug.cgi?id=24069
$ xcode-select install # install the XCode command-line tools
A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!
This guide was tested on:
- macOS Catalina 10.15.4
- docker desktop 2.2.0.5 (43884) - stable release
- XQuartz 2.7.11 (xorg-server 1.18.4)
- Macbook Pro (Intel)
Based on this article
ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does
This script can be copy paste to ssh as is. No hands installation. :-)
yum install zsh -y
# The original version is here: https://gist.github.com/ximeg/587011a65d05f067a29ce9c22894d1d2 | |
# I made several modifications | |
# Line 14, change to range(lag, len(y)) | |
# Add "addof = 1" for np.std | |
# For avgFilter and stdFilter, change "filteredY[(i-lag):i]" to "filteredY[(i+1-lag):(i+1)]" | |
import numpy as np | |
import pylab |
from numba.decorators import jit | |
import numpy as np | |
#The original version is here: https://gist.github.com/ximeg/587011a65d05f067a29ce9c22894d1d2 | |
#I made small changes and used numba to do it faster. | |
@jit | |
def thresholding_algo2(y, lag, threshold, influence): | |
signals = np.zeros(len(y)) | |
filteredY = np.array(y) |
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem |