Skip to content

Instantly share code, notes, and snippets.

View marc-hanheide's full-sized avatar
💭
coding?

Marc Hanheide marc-hanheide

💭
coding?
View GitHub Profile
@dirk-thomas
dirk-thomas / gist:e29076b8f1eb2bb84c8c
Last active August 29, 2015 14:02
Find released packages / repositories with a specific dependency
from catkin_pkg.package import parse_package_string
import rosdistro
result_repos = {}
result_pkgs = {}
i = rosdistro.get_index(rosdistro.get_index_url())
d = rosdistro.get_cached_distribution(i, 'indigo')
f = d._distribution_file
for name in sorted(f.release_packages.keys()):
@marc-hanheide
marc-hanheide / ros-network.sh
Created January 15, 2015 14:58
ROS network setup depending on route to MASTER
#!bin/bash
# This script configures the ROS environment variables according to the route
# to the ROS_MASTER. ROS_MASTER can either be defined as an evironment variable
# itself or given as first argument to this script. The ROS_IP and ROS_HOSTNAME
# are set according to the IP that is sitting on the route to this master.
# The ROS_MASTER_URI is also set, using port 11311. ROS_MASTER needs to be defined
# as a numeric IP address, not a hostname.
if [ "$1" ]; then
@drblue
drblue / fix_onedrive.sh
Last active April 16, 2024 21:54
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +