Skip to content

Instantly share code, notes, and snippets.

View meee1's full-sized avatar

Michael Oborne meee1

View GitHub Profile
@meee1
meee1 / gist:c0771b84046f6248bbf0b9a9fbf241df
Last active February 14, 2023 23:59
kernel spi trace
echo 1 > /sys/kernel/debug/tracing/events/spi/enable
echo 1 > /sys/kernel/debug/tracing/events/gpio/enable
echo "spi:*" > /sys/kernel/debug/tracing/set_event
echo "gpio:*" >> /sys/kernel/debug/tracing/set_event
echo "irq:irq_handler_entry" >> /sys/kernel/debug/tracing/set_event
@meee1
meee1 / gstreamer pipeline
Created January 10, 2023 07:39 — forked from anselmobattisti/gstreamer pipeline
Grab video from webcam and stream it using udpsink via x264
Pipeline to send video (simulating SRC) get the data from video0
gst-launch-1.0 v4l2src device=/dev/video0 \
! decodebin \
! x264enc \
! rtph264pay \
! udpsink host=localhost port=5000
// if you are running it inside a docker container be aware of the host ip in udpsink
gst-launch-1.0 v4l2src device=/dev/video0 \
! decodebin \
@meee1
meee1 / gist:4bcdaf9b869ab7a1f63074cceba6fa36
Created October 24, 2022 00:02
scroll on wsl nano/vin/gnu
printf "\e[?1007h"
add to .bashrc
@meee1
meee1 / gist:fb6a8a0fd5640bbd3eed90ad697d3893
Last active December 3, 2025 05:20
start android app from adb phone/dialer
adb shell am start -n com.android.dialer/.DialtactsActivity
*#*#64663#*#*
adb shell pm list packages
dumpsys package | grep Cit
adb shell am start -n com.miui.cit/.CitLauncherActivity
adb shell pm clear com.android.settings
cat /etc/udev/rules.d/50-ttyusb.rules
SUBSYSTEM=="tty",MODE="0666",GROUP="dialout"
@meee1
meee1 / runme.bat
Last active March 3, 2022 00:13
xilinx vivado compile fpga pluto sdr windows
rem run under Vivado 2021.2 Tcl Shell
rem or https://wiki.analog.com/resources/fpga/docs/build
rem "ghdl\projects\scripts\adi_project_xilinx.tcl" for version no
rem and "ghdl\library\scripts\adi_ip_xilinx.tcl"
rem cd c:/github/hdl/projects/pluto
rem source ../scripts/adi_make.tcl
@meee1
meee1 / ofdm.grc
Created November 18, 2021 02:02
ofdm.grc - via tuntap qpsk
options:
parameters:
author: ''
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
@meee1
meee1 / gist:036d67165287157e7358d39f2fcfafc7
Created September 21, 2021 07:27
install app in iphone simulator
open -a simulator
xcrun simctl list
# get the guid thats booted
xcrun simctl install GUID ~/Downloads/ios/MissionPlanner.IOS.app
@meee1
meee1 / gist:f3fea978a0b9cd5ff954982f9b2cf05f
Created September 10, 2021 09:55
github artifact api get latest build
fetch("https://api.github.com/repos/ArduPilot/MissionPlanner/actions/artifacts")
.then(response => response.json())
.then(data => data.artifacts.sort((a,b) => Date.parse(b.created_at) - Date.parse(a.created_at)))
.then(data => data.filter(a=>a.name.includes(".apk")))
.then(data => setTimeout(function ()
{
window.location = data[0].archive_download_url;
}, 5000));
@meee1
meee1 / gist:1700014c8fe3276aed63700f21b89139
Created August 22, 2021 07:25
ffmpeg bad dts timestamp
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i index-v1-a1.m3u8 -map 0:0 -vcodec copy my_movie.h264 -map 0:1 -acodec copy my_movie.aac
ffmpeg -i my_movie.h264 -i my_movie.aac -r 60 -c:v copy -c:a copy muxed.mp4
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i index-v1-a1.m3u8 -c copy my_movie.ts
ffmpeg -i my_movie.ts -map 0:0 -vcodec copy my_movie.h264 -map 0:1 -acodec copy my_movie.aac