Skip to content

Instantly share code, notes, and snippets.

View vector-kerr's full-sized avatar

Daniel vector-kerr

View GitHub Profile
@vector-kerr
vector-kerr / laravel-queue-worker.pm2.yml
Created November 22, 2017 23:01
Laravel Queue Worker PM2 Application Definition
#
# This file provides an application definition that can be used with
# PM2 ("Production Process Manager").
#
# PM2 "allows you to keep applications alive forever, to reload them
# without downtime and to facilitate common system admin tasks."
#
# Use this file by running it with PM2. For example:
# $> pm2 start laravel-queue-worker.pm2.yml
#
@vector-kerr
vector-kerr / ARMV8-PI-OUTPUT.TXT
Last active March 24, 2021 00:44
ASI Capture Problem Demo
pi@raspberrypi:~/development/asi-demo/build $ uname -a
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux
pi@raspberrypi:~/development/asi-demo/build $ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@vector-kerr
vector-kerr / README.md
Last active April 23, 2021 01:05
libASICamera2.so armv8 debugging with Raspberry Pi 4 (64-bit, 8GB RAM) and ZWO ASI294MM-Pro

libASICamera2 Debugging

libASICamera2.so armv8 debugging with Raspberry Pi 4 (64-bit, 8GB RAM) and ZWO ASI294MM-Pro

Files

  • pi-armv7-test_gui2_snap.log
    • Run on the 32-bit version of Raspberry Pi OS (system reports arch=armv7l)
    • Shows system information with uname -a
@vector-kerr
vector-kerr / 1920 x 1080 @ 1x1 16bit 50ms.log
Last active May 20, 2021 22:27
armv8-demo test output
pi@raspberrypi:~/Downloads/armv8-demo $ LD_LIBRARY_PATH=. ./main_SDK2_video
attached cameras:
[LoadSetting]: LoadSetting
constructor called!
the filepath is : /home/pi/.ZWO
the log file path is : /home/pi/.ZWO/asicamerasdk
failed to create directory
the log is : /home/pi/.ZWO/asicamerasdk/asicamerasdk.log
[OpenCamera]: open camera success
[OpenCamera]: ***********USB3.0 Host***********
@vector-kerr
vector-kerr / info.log
Last active May 27, 2021 07:55
2021-05-27 custom libasicamera2.so test for ASI294MM-Pro
pi@raspberrypi:~/Downloads/ASI_linux_mac_SDK_V1.18/demo $ uname -a
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux
pi@raspberrypi:~/Downloads/ASI_linux_mac_SDK_V1.18/demo $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
@vector-kerr
vector-kerr / test-procedure.log
Created May 29, 2021 04:35
2021-05-29 ZWO ASI294MM Pro - Demo Test Procedure Output Log
pi@raspberrypi:~/Downloads/2021-05-29_ASI_demo $ uname -a
Linux raspberrypi 5.10.17-v8+ #1421 SMP PREEMPT Thu May 27 14:01:37 BST 2021 aarch64 GNU/Linux
pi@raspberrypi:~/Downloads/2021-05-29_ASI_demo $ pwd
/home/pi/Downloads/2021-05-29_ASI_demo
pi@raspberrypi:~/Downloads/2021-05-29_ASI_demo $ cat /lib/udev/rules.d/asi.rules
ACTION=="add", ATTR{idVendor}=="03c3", RUN+="/bin/sh -c '/bin/echo 200 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
# All ASI Cameras and filter wheels
SUBSYSTEMS=="usb", ATTR{idVendor}=="03c3", MODE="0666"
#!/usr/bin/env bash
# Batch Convert ARW Files
# Use this script to batch-convert ARW files into (for example) JPEG files for use
# as lower quality thumbnails.
#
# What it does:
#
# 1. Find all ARW files on the local machine
# 2. Pipe into the parallel command (sudo apt-get install -y parallel)