Skip to content

Instantly share code, notes, and snippets.

View kHarshit's full-sized avatar
:octocat:
hi there :)

Harshit Kumar kHarshit

:octocat:
hi there :)
View GitHub Profile
@kHarshit
kHarshit / deeepstream_sink_bin.c
Created February 4, 2021 06:35
deeepstream-app with splitmuxsink
/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
@kHarshit
kHarshit / deepstream_infer_app.log
Created October 14, 2020 04:56
Deepstream-infer-tensor-meta-test app log
This file has been truncated, but you can view the full file.
With tracker
0:00:00.000043612 25799 0x55c0bec94800 INFO   GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.5
0:00:00.000061850 25799 0x55c0bec94800 INFO   GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000069567 25799 0x55c0bec94800 INFO   GST_INIT gst.c:607:init_pre: Linux helix.kss.kritikal.in 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64
0:00:00.000116650 25799 0x55c0bec94800 DEBUG   GST_MEMORY gstallocator.c:593:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.000172261 25799 0x55c0bec94800 DEBUG   GST_MEMORY gstallocator.c:569:gst_allocator_sysmem_init: init allocator 0x55c0bec9d840
0:00:00.000192268 25799 0x55c0bec94800 DEBUG  [0
@kHarshit
kHarshit / gpu_usage.sh
Last active June 4, 2020 07:33
Monitor colab gpu usage
# Step 1: Create a file to monitor gpu usage in a jupyter cell
%%writefile gpu_usage.sh
#! /bin/sh
#comment: run for 10 seconds, change it as per your use
end=$((SECONDS+10))
while [ $SECONDS -lt $end ]; do
nvidia-smi --format=csv --query-gpu=power.draw,utilization.gpu,memory.used,memory.free,fan.speed,temperature.gpu >> gpu.log
#comment: or use below command and comment above using #
@kHarshit
kHarshit / keybase.md
Created February 26, 2018 13:10
Keybase gist

Keybase proof

I hereby claim:

  • I am kharshit on github.
  • I am harshit (https://keybase.io/harshit) on keybase.
  • I have a public key ASDByPSxzANXMIZ7c1ZCs8P9eC994Nk25gyv1X3Q_sXwXQo

To claim this, I am signing this object: