Skip to content

Instantly share code, notes, and snippets.

@itskalvik
itskalvik / manifest.json
Last active March 26, 2025 01:12
Super secret file! Don't read it!!
[
{
"identifier": "itskalvik.ros2",
"name": "ROS2",
"website": "https://github.com/itskalvik/blueos-ros2",
"docker": "itskalvik/blueos-ros2",
"description": "Robot Operating System 2 (ROS2) extension for BlueOS",
"extension_logo": "https://raw.githubusercontent.com/bluerobotics/BlueOS-Extensions-Repository/master/repos/itskalvik/ros2/extension_logo.png",
"company_logo": "https://raw.githubusercontent.com/bluerobotics/BlueOS-Extensions-Repository/master/repos/itskalvik/company_logo.png",
"versions": {
@itskalvik
itskalvik / pdfcrop
Last active July 16, 2020 13:05 — forked from jottr/pdfcrop
A better pdfcrop, which preserves links
#!/bin/bash
# from http://tex.stackexchange.com/questions/42236/pdfcrop-generates-larger-file
function usage () {
echo "Usage: `basename $0` [Options] <input.pdf> [<output.pdf>]"
echo
echo " * Removes white margins from each page in the file. (Default operation)"
echo " * Trims page edges by given amounts. (Alternative operation)"
echo
echo "If only <input.pdf> is given, it is overwritten with the cropped output."
@itskalvik
itskalvik / qstat
Last active March 12, 2020 16:34
bash script to run pbs submit scripts without actual resource manager, I use it to automatically allocate available gpus to python scripts
#!/bin/bash
#bash script to get status of jobs using gpus
#set gpu_job_map filename and path
gpu_job_map="$HOME/.config/gpu_pid_map.log"
#get total number of gpus
total_gpus=$(expr $(nvidia-smi -L | wc -l) - 1)
#create an empty array
@itskalvik
itskalvik / gstat.py
Last active December 4, 2019 01:03
Tool to monitor gpu nodes in Torque based clusters
#! /usr/bin/env python2.7
'''
Tool to monitor GPU nodes in Torque based clusters
'''
import sys, getopt, os, re, time
'''
Formats and prints gpu details of a single node