Skip to content

Instantly share code, notes, and snippets.

Tully Foote tfoote

Block or report user

Report or block tfoote

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ros-kinetic-drone-demo.Dockerfile
FROM devbase-xenial
RUN sudo /bin/sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' \
&& sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 \
&& sudo /bin/sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list \
&& wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add -' \
&& sudo apt-get update \
&& sudo apt-get install -y \
ros-kinetic-desktop-full \
gazebo7 \
@tfoote
tfoote / Activate Ubuntu Old Releases
Created Jun 25, 2018
Run these commands to switch an EOL image to support apt from the old-releases repository
View Activate Ubuntu Old Releases
sed -i 's/archive/old-releases/' /etc/apt/sources.list
sed -i 's/security/old-releases/' /etc/apt/sources.list
@tfoote
tfoote / license_check.py
Last active Jun 22, 2018
A quick script to check declared licenses recursively
View license_check.py
#!/usr/bin/env python3
# Copyright (c) 2018 Open Source Robotics Foundation
#
# Apache License
# Version 2.0, January 2004
# http://www.apache.org/licenses/
#
# TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
#
View TempfileManager
# Copyright 2017 Open Source Robotics Foundation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
View realtime_factor.py
#!/usr/bin/env python
# A simple script to print the realtime factor under simulated time.
import time
import rospy
from rosgraph_msgs.msg import Clock
last_wall_time = time.time()
last_clock_time = rospy.Time(0)
View recursive depends of depth_image_proc
$ apt-rdepends ros-kinetic-depth-image-proc
Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-kinetic-depth-image-proc
Depends: libboost-all-dev
Depends: libboost-date-time1.55.0
Depends: libboost-filesystem1.55.0
Depends: libboost-regex1.55.0
Depends: libboost-signals1.55.0
View libqt4-dev recursive rdepends
libqt4-dev
Reverse Depends: automoc (1.0~version-0.9.88-5)
Reverse Depends: kdelibs5-dev (>= 4:4.14.2-5)
Reverse Depends: libace-qtreactor-dev (6.2.8+dfsg-1)
Reverse Depends: libakonadi-dev (>= 1.13.0-2+deb8u1)
Reverse Depends: libappstreamqt-dev (0.7.3-1)
Reverse Depends: libattica-dev (0.4.2-1)
Reverse Depends: libavahi-qt4-dev (0.6.31-5)
Reverse Depends: libavogadro-dev (>= 1.0.3-10.1+b2)
Reverse Depends: libbluedevil-dev (2.0~rc1-6-g7bb223c-2)
@tfoote
tfoote / moinmoin_recaptcha.patch
Last active Jan 15, 2016
This is the diff to add recaptcha to moin moin 1.9.7
View moinmoin_recaptcha.patch
diff --git a/PageEditor.py b/PageEditor.py
index 83a6505..a6dab02 100755
--- a/PageEditor.py
+++ b/PageEditor.py
@@ -420,6 +420,9 @@ If you don't want that, hit '''%(cancel_button_text)s''' to cancel your changes.
from MoinMoin.security.textcha import TextCha
request.write(TextCha(request).render())
+ from MoinMoin.security.sec_recaptcha import ReCaptcha
+ request.write(ReCaptcha(request).render())
@tfoote
tfoote / detect_os.py
Created Nov 13, 2015
A simple script to run to validate rospkg's os detection
View detect_os.py
#!/usr/bin/env python
from rospkg.os_detect import OsDetect, OsNotDetected
try:
d = OsDetect()
n, v, c = d.detect_os()
print('Detected name: "%s", version: "%s", codename: "%s"' % (n, v, c))
except OsNotDetected as ex:
print(str(ex))
@tfoote
tfoote / ca-certificates diff
Created Nov 6, 2015
ca-certificates rdepends
View ca-certificates diff
$ diff -u /tmp/*.rdepends
--- /tmp/trusty.rdepends 2015-11-06 10:37:52.103677788 -0800
+++ /tmp/vivid.rdepends 2015-11-06 10:37:51.623680899 -0800
@@ -3,7 +3,9 @@
ubuntu-desktop
ssh-import-id
software-properties-common
+ rubygems-integration
python3-urllib3
+ python3-tornado
You can’t perform that action at this time.