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 / 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 / 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 / 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 / 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