Skip to content

Instantly share code, notes, and snippets.

@tfoote
tfoote / jenkins_ec2_slave.md
Last active May 16, 2020 13:28
Installing jenkins on an EC2 Windows slave
  • Create a Windows instance
  • Use the aws console to get username and password
  • log in via rdp
  • Turn off IE Enhanced security control
  • Open server settings, local server, turn it off
  • install chrome
  • Install java: https://www.java.com/en/download/
  • Create C:\Jenkins
  • go to jenkins instance
  • log in as admin
@tfoote
tfoote / messages.diff
Created March 13, 2020 20:20
Foxy Message API Review Reference Diff (Melodic -> Eloquent)
diff -ub -x '*.idl' -x 'ddx*' /opt/ros/melodic/share/sensor_msgs/msg/BatteryState.msg /opt/ros/eloquent/share/sensor_msgs/msg/BatteryState.msg
--- /opt/ros/melodic/share/sensor_msgs/msg/BatteryState.msg 2018-11-06 23:15:56.000000000 -0800
+++ /opt/ros/eloquent/share/sensor_msgs/msg/BatteryState.msg 2019-10-23 15:06:18.000000000 -0700
@@ -31,8 +31,9 @@
uint8 POWER_SUPPLY_TECHNOLOGY_NICD = 5
uint8 POWER_SUPPLY_TECHNOLOGY_LIMN = 6
-Header header
+std_msgs/Header header
float32 voltage # Voltage in Volts (Mandatory)
@tfoote
tfoote / ros-kinetic-drone-demo.Dockerfile
Created November 5, 2018 18:20
dockerfile from dev_docker
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 June 25, 2018 23:04
Run these commands to switch an EOL image to support apt from the old-releases repository
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 June 22, 2018 00:48
A quick script to check declared licenses recursively
#!/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
#
# 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,
#!/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)
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)
$ 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
@tfoote
tfoote / moinmoin_recaptcha.patch
Last active January 15, 2016 19:23
This is the diff to add recaptcha to moin moin 1.9.7
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())