Skip to content

Instantly share code, notes, and snippets.

View h3ct0r's full-sized avatar
☢️
Quarantine

Héctor Azpúrua h3ct0r

☢️
Quarantine
View GitHub Profile
@h3ct0r
h3ct0r / .block
Created June 5, 2019 01:12 — forked from mapio/.block
Force-based label placement (d3.v5.js)
license: gpl-3.0
height: 600
@h3ct0r
h3ct0r / COPPELIA_4.1.0_UBUNTU_16.04.md
Created March 22, 2021 19:54
How to Install CoppeliaSim 4.1.0 in Ubuntu 16.04 with ROS Bridge and the Velodyne plugin

How to Install CoppeliaSim 4.1.0 in Ubuntu 16.04 with ROS Bridge and the Velodyne plugin

Install Tutorial Coppeliasim - Espeleo Simulation

@h3ct0r
h3ct0r / query_gpu_usage_ssh.bash
Created July 2, 2021 17:26
Query GPU usage (with nvdia-smi) on a list of servers via SSH. It ask for password for all machines and store it on a variable which is cleared after the script is finished (no password is kept in the bash logs).
read -p "User please: " -s USER && read -p "Password please: " -s PASS && echo -e "\nBeginning SSH query with user: $USER\n" && for host in '150.164.212.21' '150.164.212.23' '150.164.212.24' '150.164.212.25' '150.164.212.26' '150.164.212.27' '150.164.212.28' '150.164.212.33' '150.164.212.36' '150.164.212.37' '150.164.212.40' '150.164.212.42' '150.164.212.43' '150.164.212.45' '150.164.212.71' '150.164.212.72' '150.164.212.73' '150.164.212.75' '150.164.212.76' '150.164.212.80' '150.164.212.81' '150.164.212.117' '150.164.212.141' '150.164.212.148' '150.164.212.164' '150.164.212.171' '150.164.212.204' '150.164.212.226'; do sshpass -p $PASS ssh -oStrictHostKeyChecking=no $USER@$host 'echo "host:$(hostname) GPU usage: $(nvidia-smi --query-gpu=utilization.gpu,memory.free,memory.total --format=csv,noheader)"' 2> /dev/null; done && PASS="" && USER=""
@h3ct0r
h3ct0r / import_and_clone_vms.py
Last active February 10, 2022 16:41
Python script to automatically import an OVA file in VirtualBox and generate several clones
#! /usr/bin/python
# -*- coding: utf-8 -*-
"""Import and generate clone of an OVA file in virtualbox
"""
import re
import sys
import uuid
import random