This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 {} + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()): |