Skip to content

Instantly share code, notes, and snippets.

View ravijo's full-sized avatar
🎯
Focusing

Ravi Joshi ravijo

🎯
Focusing
View GitHub Profile
@ravijo
ravijo / ROS-docker.txt
Created November 13, 2022 13:24
ROS in Docker
Source: https://tuw-cpsg.github.io/tutorials/docker-ros/
$ docker pull ros:melodic
$ docker run -it --name melodic ros:melodic
$ docker exec -it melodic bash
$ docker start melodic
$ docker start melodic
@ravijo
ravijo / pdf2jpg_recursive.sh
Last active March 29, 2024 14:32
This shell script converts all PDF files to JPG files
#!/bin/bash
# author: ravi joshi
# date: 19 mar 2020
# this shell script converts all PDF files to JPG files
# it walks recursively inside the given directory
# requirement: it uses ImageMagick command line tool for PDF to JPG convertion.
# check here (https://github.com/ravijo/image-video-editing#install-imagemagick-on-ubuntu-1404)
# for more information
if [ $# -eq 0 ]; then
@ravijo
ravijo / tf2_ros_example.py
Created December 6, 2018 13:01
An example showing how to use tf2_ros API
#!/usr/bin/python
# -*- coding: utf-8 -*-
# tf2_ros_example.py: example showing how to use tf2_ros API
# Author: Ravi Joshi
# Date: 2018/12/6
# import modules
import rospy
import tf2_ros
@ravijo
ravijo / gpu_stat.sh
Created September 29, 2018 02:57
This shell script prints all the information of processes using GPU
#!/bin/bash
# author: ravi joshi
# date: 29 sep 2018
# this shell script prints all the information of processes using GPU
# grab all the processes shown by nvidia-smi
pids=$(nvidia-smi | awk '$4=="G" || $4=="C" {print $3}')
# print information of each proces
ps -fp $pids