curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.py' > ~/gpslog.py
curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.sh' > ~/gpslog.sh
curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.service' > ~/gpslog.service
sudo cp ~/gpslog.service /etc/systemd/system/gpslog.service
sudo systemctl enable gpslog.service
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
extends TextureRect | |
var shader_material | |
var screen_size | |
func _ready(): | |
screen_size = OS.get_screen_size() | |
shader_material = self.material | |
set_process_input(true) |
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
-- create new images | |
vPlayer1 = of.VideoPlayer() | |
outputFbo = of.Fbo() | |
serverTemp = syphon.Server() | |
serverOutput = syphon.Server() | |
outputWidth = 1280 | |
outputHeight = 720 | |
previewWidth = 400 |
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
package hub | |
import ( | |
"bytes" | |
"log" | |
"net/http" | |
"sync" | |
"time" | |
"github.com/gorilla/websocket" |
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 | |
# append-only kv-store using jq as querying mechanism | |
# author: sloev.github.io | |
# declare kv store as string | |
kv_store="" | |
# append some json to |
when you get stuff like this:
5 UTC [1] LOG: database system is ready to accept connections
db_1 | 2021-11-24 09:58:49.133 UTC [83] ERROR: invalid input value for enum task_status: "ready" at character 339
db_1 | 2021-11-24 09:58:49.133 UTC [83] STATEMENT: BEGIN;
its nice to be able to quickly figure out where the error is in the input sql file.
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 multiprocessing.dummy import Pool | |
import subprocess | |
import tempfile | |
import logging | |
import time | |
import random | |
import os | |
from base64 import urlsafe_b64encode | |
import uuid |
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
import cv2 | |
import csv | |
import numpy as np | |
img = cv2.imread("img.png") | |
data_file = open("data.data", "wb") | |
csv_file = open("data.csv", "w") |
- replace INPUT_RTSP_STREAMLINK and OUTPUT_RTSP_STREAMLINK with rtsp://yadayada
- pip install opencv-python numpy tqdm
- python process_rtsp_to_image.py
- bash publish_image_to_rtsp.sh
It will check if current branch is master, then ask a confirmation, in case of master
branch
- install a recent version of git (https://git-scm.com/download/mac)
eg:
$ brew install git