Skip to content

Instantly share code, notes, and snippets.

@SlightlyLoony
SlightlyLoony / port.c
Last active July 27, 2022 06:01
Raspbian program to set U-Blox GPS to stationary mode, and save configuration
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
/*
Simple program that sets stationary mode in U-Blox GPS connected to serial 0 on a Raspberry Pi 3 running Jessie. This
was not tested on any other system. This program assumes the GPS is using its default 9600 baud, 8 data bits, 1 stop bit,
and no parity. I'm using the expansion board from Uputronics.
This program worked for me when I set up my Pi as a stratum 1 NTP server per the directions on this
@Jiab77
Jiab77 / ffmpeg.md
Last active August 9, 2022 21:40
Compilation FFMpeg / NVENC + QSV + VAAPI + VDPAU + OpenCL

Compilation FFMpeg / NVENC + NVRESIZE + QSV + VAAPI + VDPAU + OpenCL

nVidia nvresize patch is outdated and not more compatible to the latest version of FFmpeg, so it's not included in this documentation.

(even if I've passed a lot of time at trying to make it compile... without any success)

Please don't rely on this page: https://developer.nvidia.com/ffmpeg, the implementation is a hack and was never been added to the main FFmpeg tree.

See: