Skip to content

Instantly share code, notes, and snippets.

View Owen-Liuyuxuan's full-sized avatar

Yuxuan Liu Owen-Liuyuxuan

View GitHub Profile
@Owen-Liuyuxuan
Owen-Liuyuxuan / synology.py
Created May 10, 2023 09:05
Synology helper script. Check and Download files from a NAS server.
"""Synology helper script. Check and Download files from a NAS server.
Requires synology-api. Could be Installed with
pip3 install synology-api
Directly run python3 synology.py to check the usage.
"""
from synology_api import filestation
from synology_api.exceptions import FileStationError
import getpass
import warnings
@Owen-Liuyuxuan
Owen-Liuyuxuan / FindContainerwithPID.sh
Created February 15, 2023 02:36
Find container with certain PID.
#!/bin/bash -e
# Prints the name of the container inside which the process with a PID on the host is.
# Usage./FindContainerwithPID <pid>
for container in $(docker ps -q); do
status=`docker top $container | grep $1 | wc -l`
if [ $status == "0" ]; then
echo "NOT"
else
docker ps | grep $container
@Owen-Liuyuxuan
Owen-Liuyuxuan / kitti_pose.md
Created February 6, 2023 07:05
A simple tutorial-like page to produce poses from KITTI raw dataset

A naive approach to prepare poses in KITTI raw for pythonic usage

The KITTI raw contains oxts measurements of the vehicle and can be used as poses for the raw sequence. The raw dev-kit contains a matlab/octave script for transforming oxts measurements to poses. In this script we provide some modification of the code and some scripts that personally get used to make this poses available to python, and it goes with the kitti_visualize repo and other repo we are working with.

The output will be a "pose.mat" under every {seq_dir}/oxts folder. We also provide python APIs to read this matrix.

All we will do here: