The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).
The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.
Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se
from pymavlink import mavutil | |
# python /usr/local/bin/mavproxy.py --mav=/dev/tty.usbserial-DN01WM7R --baudrate 57600 --out udp:127.0.0.1:14540 --out udp:127.0.0.1:14550 | |
connection_string = '127.0.0.1:14540' | |
mav = mavutil.mavlink_connection('udp:'+connection_string) | |
mav.wait_heartbeat() | |
print("HEARTBEAT OK\n") | |
print(mav.recv_match(type='SYS_STATUS', blocking=True)) |
import os | |
import piexif | |
from fractions import Fraction | |
def to_deg(value, loc): | |
"""convert decimal coordinates into degrees, munutes and seconds tuple | |
Keyword arguments: value is float gps-value, loc is direction list ["S", "N"] or ["W", "E"] | |
return: tuple like (25, 13, 48.343 ,'N') | |
""" |
If you want to use travis_retry
from within your own shell script files then you first have to make the travis_retry
shell function available by sourcing the travis_retry.sh
file, otherwise you just get a "command not found" error. See example.sh
for a full example.
Note that the original function as found in the travis-ci/travis-build repository was slightly modified to allow it to be used in a shell context where set -e
is enabled.
For reference, a tweet by Travis CI saying that you should copy the travis_retry
code as I've done here:
https://twitter.com/plexus/status/499194992632811520
#for not running docker, use save: | |
docker save <dockernameortag> | gzip > mycontainer.tgz | |
#for running or paused docker, use export: | |
docker export <dockernameortag> | gzip > mycontainer.tgz | |
#load | |
gunzip -c mycontainer.tgz | docker load |
########################### | |
# bcm2835_unicam drivers # | |
########################### | |
# DESCRIPTION: Install bcm2835_unicam/tc358743 drivers from 6by9 Linux fork | |
# This should also work for adv7282m ov5647 (https://github.com/6by9/linux/commit/28ac7b3a2651d4b35204938e6c9ec2e4ba54c34e) | |
# | |
# CAUTION | |
# * Do not start this script! Copy/Paste each command. | |
# * Compilation will take over 1h30. | |
# * Any errors can potentially break the entire system |
For excessively paranoid client authentication.
Original: https://gist.github.com/mtigas/952344
openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
#!/bin/sh | |
# | |
# Inspired by https://github.com/kumina/shutdown-kvm-guests/blob/master/shutdown-kvm-guests.sh | |
# | |
# Configure timeout (in seconds). | |
TIMEOUT=300 | |
VIRSH=/usr/bin/virsh | |
# List running domains. | |
list_domains_by_state() { |