Skip to content

Instantly share code, notes, and snippets.

View imontesino's full-sized avatar
🪕

Ignacio Montesino Valle imontesino

🪕
  • Madrid, Spain
  • 00:24 (UTC +02:00)
View GitHub Profile
@imontesino
imontesino / zotero_setup.md
Last active February 18, 2024 03:32
Zotero + SyncThing + Zotfile + SciHub setup (Windows and Linux)
@imontesino
imontesino / install_barrier.bash
Created June 22, 2023 08:04
Install Barrier KVM with SSL permission
#!/usr/bin/env bash
sudo apt-get install barrier
BARRIER_SSL_PATH=~/.local/share/barrier/SSL/
mkdir -p "${BARRIER_SSL_PATH}"
openssl req -x509 -nodes -days 365 -subj /CN=Barrier -newkey rsa:4096 -keyout ${BARRIER_SSL_PATH}/Barrier.pem -out ${BARRIER_SSL_PATH}/Barrier.pem
@imontesino
imontesino / add_dot_to_docstring.py
Created June 1, 2023 09:10
Automate adding a dot to the end of one line descriptions in python docstrings.
""" Tool to add missing dot at the en of a docstring. """
import logging
import subprocess
import argparse
# parse arguments
parser = argparse.ArgumentParser(description='Add missing dot at the end of a docstring.')
parser.add_argument('path', type=str,
help='path to the folder containing the files to be checked')
args = parser.parse_args()
@imontesino
imontesino / generate_ur_urdf.py
Created May 28, 2023 15:41
Generate clean URDFs (no xacro) for the Universal Robots models in ur_description
import argparse
import os
import subprocess
from xml.etree import ElementTree
def get_robot_names() -> list:
""" Get the names of the robots in the config folder """
# Check names of folders inside /config