Skip to content

Instantly share code, notes, and snippets.

View corenel's full-sized avatar
💭
I may be slow to respond.

Yusu Pan corenel

💭
I may be slow to respond.
View GitHub Profile
@corenel
corenel / README.md
Last active February 29, 2024 21:33
RTSP Port Forwarding

之前在这里研究过的用iptables配置跨网段的端口转发

Assume we have the following network environments:

  • Device:
    • eth0 (192.168.6.59): for external access
    • enx000ec6a490c5 (192.168.1.2): for ip camera
  • IP Camera:192.168.1.10
  • PC:192.168.6.2
@corenel
corenel / README.md
Last active November 2, 2023 10:02
Install NVDEC and NVENC as GStreamer plugins

Install NVDEC and NVENC as GStreamer plugins

Environment

  • Ubuntu 18.04
  • NVIDIA driver 460.32.03
  • NVIDIA Video Codec SDK 11.0.10
  • GStreamer 1.14.5

Steps

@corenel
corenel / dashboard.json
Created August 13, 2020 12:55
GPU-Nodes-Metrics-Nvidia
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
@corenel
corenel / log_status.sh
Created August 5, 2019 13:24
Logging system status
#!/usr/bin/env bash
log_path=${HOME}/status_history.log
title="date,cpu_temp(celsius),cpu_load_1min(%),cpu_load_5min(%),cpu_load_15min(%),mem_free(MB),mem_total(MB)"
if [[ ! -f "${log_path}" ]]; then
echo -e ${title} > ${log_path}
echo -e ${title}
fi
@corenel
corenel / config
Created June 6, 2019 13:03
Aliases for robots
Host bot1-eth
HostName 10.0.0.211
Port 22
User ubuntu
Host bot2-eth
HostName 10.0.0.212
Port 22
User ubuntu
@corenel
corenel / README.md
Created April 19, 2019 13:40
Install Torch7 on Ubuntu 16.04

See this tutorial first.

During the installation, two other problems encountered:

Missing libreadline.so.7

luajit: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
@corenel
corenel / cloudSettings
Last active April 13, 2019 11:49
VSCode
{"lastUpload":"2019-04-13T11:49:50.646Z","extensionVersion":"v3.2.8"}
@corenel
corenel / README.md
Created January 29, 2019 07:11
Solutions for troubles in Hackintosh

Stuck at IOConsoleUsers: gIOScreenLockState 3 after updating 2019-001 of macOS 10.13.6

  1. Enable -disablegfxfirmware flag temporarily in Clover Opinions
  2. Reboot into system and reinstall Nvidia Web Driver
  3. Reboot and everything works
@corenel
corenel / INSTALL.md
Created January 3, 2019 02:37
Build TensorFlow 1.12 on an Atom board w/o AVX support
  • build command:
bazel build \
  --config=opt //tensorflow/tools/pip_package:build_pip_package \
  --incompatible_remove_native_http_archive=false \
  --incompatible_package_name_is_a_function=false \
  --local_resources 4096,4.0,4.0 \
  --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
  --define=grpc_no_ares=true
@corenel
corenel / README.md
Created January 11, 2018 02:59
Install PyTorch 0.4.0 on macOS High Sierra 10.13.2 with GTX1080Ti, CUDA 9.1 and cuDNN 7
  1. Since CUDA 9.1 doesn't support LLVM 9.0.0, you need to install Command Line Tool 8.3.2 and switch:
$ sudo xcode-select --switch /Library/Developer/CommandLineTools/
$ clang --version
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  1. CTL 8.3.2 is supposed for macOS Sierra 10.12, so you also need to create a symbol link for SDK.