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
#!/usr/local/bin/python3 | |
# This script can be used to submit Google Cloud Print jobs from the PDF services menu in macOS | |
# | |
# Prerequisites: | |
# - Python 3.x | |
# - oauth2client installed | |
# | |
# Setup instructions: | |
# 1. Clone this gist into a directory called ".gcp" in your home directory. Assure |
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 | |
if [[ $# != 2 ]]; then | |
echo "Usage:" | |
echo "watchbuild <host> <delay>" | |
exit 1 | |
fi | |
sleep $2 | |
while true; do | |
ping -c 1 $1 &> /dev/null | |
if [[ 0 != $? ]]; 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
#include <ros/ros.h> | |
#include <sensor_msgs/Imu.h> | |
#include <string.h> | |
#include "tinkerforge/ip_connection.h" | |
#include "tinkerforge/brick_imu_v2.h" | |
#define HOST "localhost" |
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 dorowu/ubuntu-desktop-lxde-vnc | |
# install packages | |
RUN apt-get update && apt-get install -q -y \ | |
dirmngr \ | |
gnupg2 \ | |
lsb-release \ | |
&& rm -rf /var/lib/apt/lists/* | |
# setup keys |