ffplay -f video4linux2 -framerate 60 -video_size 1920x1080 -input_format mjpeg /dev/video2
You can try other video number (video3, video4)
Create:
/etc/udev/rules.d/91-hdmi-to-usb-ms2109.rules
With:
// ==UserScript== | |
// @name Prevent link mangling on Google | |
// @namespace LordBusiness.LMG | |
// @match https://www.google.com/search | |
// @grant none | |
// @version 1.1 | |
// @author radiantly | |
// @description Prevent google from mangling the link when copying or clicking the link on Firefox | |
// ==/UserScript== |
Information for device Controller (VID=0x045E PID=0x028E): | |
Connection Information: | |
------------------------------ | |
Device current bus speed: FullSpeed | |
Device supports USB 1.1 specification | |
Device supports USB 2.0 specification | |
Device address: 0x000F | |
Current configuration value: 0x01 | |
Number of open pipes: 7 |
#include "sdlx11.hpp" | |
#include <X11/Xlib.h> | |
#include <X11/Xatom.h> | |
#include <X11/extensions/Xrender.h> | |
#include <GL/glx.h> | |
#include <SDL2/SDL.h> | |
SDL_Window* | |
SDLx11::SDL_CreateWindowEx(const char *title, int x, int y, int w, int h, bool fullscreen, double frame_alpha) | |
{ |
//-------------------------------------------------------------------------------- | |
// Report descriptor data in hex (length 262 bytes) | |
//-------------------------------------------------------------------------------- | |
// 05010905 A101A100 09300931 150027FF FF000095 02751081 02C0A100 09330934 | |
// 150027FF FF000095 02751081 02C00501 09321500 26FF0395 01750A81 02150025 | |
// 00750695 01810305 01093515 0026FF03 9501750A 81021500 25007506 95018103 | |
// 05091901 290A950A 75018102 15002500 75069501 81030501 09391501 25083500 |
#!/bin/bash | |
###AUTHOR### | |
#Harry Dove-Robinson 5/8/2017 | |
#[email protected] | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###USAGE### | |
#This is a script used to configure u-blox GPS/GNSS modules from a text file generated by u-center. |
Before you start, make sure ip
command is available on your system. In modern Linux distributions, ip
replaces older ifconfig
command. If net-tools
package (that includes ifconfig
) is not installed and you prefer using it, you can install it via sudo apt-get install net-tools
.
Use touch /home/pi/wifi-reconnect.sh
to create a shell script file,
with the following content:
#!/bin/bash
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
Most of the instructions from this section originate from this aricle. Feel free to follow along with this gist or use the article.
Let's start by making sure our machine is up to date.
sudo apt-get update
sudo apt-get upgrade
""" | |
This script provides coordinate transformations from Geodetic -> ECEF, ECEF -> ENU | |
and Geodetic -> ENU (the composition of the two previous functions). Running the script | |
by itself runs tests. | |
based on https://gist.github.com/govert/1b373696c9a27ff4c72a. | |
""" | |
import math | |
a = 6378137 | |
b = 6356752.3142 |