Skip to content

Instantly share code, notes, and snippets.

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 Oct 12, 2022
RTSP Port Forwarding
View README.md

之前在这里研究过的用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 / dashboard.json
Created Aug 13, 2020
GPU-Nodes-Metrics-Nvidia
View dashboard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
@corenel
corenel / README.md
Last active Dec 19, 2022
Install NVDEC and NVENC as GStreamer plugins
View README.md

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 / log_status.sh
Created Aug 5, 2019
Logging system status
View log_status.sh
#!/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 Jun 6, 2019
Aliases for robots
View config
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 Apr 19, 2019
Install Torch7 on Ubuntu 16.04
View README.md

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
View cloudSettings
{"lastUpload":"2019-04-13T11:49:50.646Z","extensionVersion":"v3.2.8"}
@corenel
corenel / README.md
Created Jan 29, 2019
Solutions for troubles in Hackintosh
View README.md

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 Jan 3, 2019
Build TensorFlow 1.12 on an Atom board w/o AVX support
View INSTALL.md
  • 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 Jan 11, 2018
Install PyTorch 0.4.0 on macOS High Sierra 10.13.2 with GTX1080Ti, CUDA 9.1 and cuDNN 7
View README.md
  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.