Skip to content

Instantly share code, notes, and snippets.

@nicolov
nicolov / launch_file.launch
Last active December 17, 2015 03:49
Convert SFly UAV datasets to a ROS bag
<!--
Some packages do not handle compressed images correctly. We use the image_transport
package to republished the JPEGs stored in the bags as Image messages. This is an
example launch file that does just that.
-->
<launch>
<node name="bag_play" pkg="rosbag" type="play"
args="--clock /home/ubuntu/hoveringDown.bag">
</node>
@nicolov
nicolov / settings.py
Last active October 14, 2015 02:05
Domain sharding on Django for media files
# put storage.py in one off your apps or create a new one
DEFAULT_FILE_STORAGE = 'yourapp.storage.DomainShardingStorage'
# for easy_thumbnails
THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE
SHARDED_MEDIA_DOMAINS_NUMBER = 2
SHARDED_MEDIA_URL_TEMPLATE = '/media/' if DEBUG else 'http://s{0}.afancycdn.com/media/'