Skip to content

Instantly share code, notes, and snippets.

View slabua's full-sized avatar
🛠️
Tinkering

Salvatore La Bua slabua

🛠️
Tinkering
View GitHub Profile
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> geometric_shapes
Starting >>> moveit_msgs
Starting >>> srdfdom
Starting >>> moveit_common
Starting >>> ros2_control_test_assets
Starting >>> controller_manager_msgs
Starting >>> warehouse_ros
Starting >>> moveit_resources_panda_description
Finished <<< moveit_common [1.55s]
@slabua
slabua / comprehensive_header.py
Created July 4, 2021 07:16 — forked from NicolasBizzozzero/comprehensive_header.py
Python template of a comprehensive header, with shebang, docstring, GPLv3 license and all metadata.
#!/usr/bin/env python
""" Short description of this Python module.
Longer description of this module.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
@slabua
slabua / tmux-cheatsheet.markdown
Created June 19, 2018 15:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@slabua
slabua / hangoutsparser.py
Last active July 31, 2022 06:21
Parse chat messages from Hangouts.json dictionary, filtering by given gaia_id, and output them on stdout in plain text format, one message per line.
from __future__ import print_function
import sys
import json
"""hangoutsparser.py
2018 Salvatore La Bua slabua(at)gmail.com
Parse chat messages from Hangouts.json dictionary,
filtering by given gaia_id, and output them on stdout
in plain text format, one message per line.
@slabua
slabua / subriptext_fixer.sh
Last active April 2, 2018 18:01
Convert SubRip Text (SRT) files where multiple identical timestamps are used to show multiple-lined subtitle at the same time, to the standard SRT format with an unique timestamp for multiple-lined subtitles.
#!/bin/bash
#
# SubRip Text (SRT) Subtitle fixer script.
# 2018 Salvatore La Bua slabua(at)gmail.com
#
# This script converts subtitle files where any multiple-lined subtitle to
# appear on the screen at the same time is represented by the following
# template:
#
# <line number 1>
@slabua
slabua / twrp.sh
Last active April 30, 2020 21:39 — forked from inhies/twrp.sh
#!/bin/bash
#
# Version 1.4
#
# twrp.sh -- a TWRP compatible backup script for your computer
# Brought to you by inhies
#
# This script creates TWRP compatible backups over usb using adb and magikz
# By default it makes a folder in the standard TWRP date--time format (I think)
# To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/