Skip to content

Instantly share code, notes, and snippets.

Darren Jeacocke daz

Block or report user

Report or block daz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daz
daz / QuestCast
Created Jul 1, 2019
Cast Oculus Quest to Mac over wifi
View QuestCast
#!/bin/sh
echo
echo "Connect Quest and hit <return> to continue..."
read Z
echo
QUEST_IP=`adb shell ip route | grep 'proto kernel' | awk '{print \$9}'`
adb tcpip 5555
@daz
daz / gist:aa6fcb5b048af885be90a2143f9d7630
Created Jun 2, 2019
Working M600 firmware May 2019
View gist:aa6fcb5b048af885be90a2143f9d7630
Matrice 600 Pro:
Fw DJI M600P - v.1.00.01.67 (2019.02)
Fw DJI LighBridge (Air System) - 1.1.60
Remote Controller:
DJI GO app - 3.1.50
Fw Lightbridge2 - 1.1.60
Remote Controller - 1.2.10
@daz
daz / clean_usb.sh
Created Apr 26, 2019
Clean macOS dotfiles from a USB
View clean_usb.sh
# Remove invisible dotfiles from a directory or USB drive
# Usage:
# cd /Volumes/MY_USB
# clean_usb.sh
dot_clean $(pwd)
rm -rf .fseventsd
rm -rf .TemporaryItems
@daz
daz / liblas.rb
Created Apr 26, 2019
LibLas with LasZip homebrew
View liblas.rb
class Liblas < Formula
desc "C/C++ library for reading and writing the LAS LiDAR format"
homepage "https://liblas.org/"
url "https://download.osgeo.org/liblas/libLAS-1.8.1.tar.bz2"
sha256 "9adb4a98c63b461ed2bc82e214ae522cbd809cff578f28511122efe6c7ea4e76"
revision 1
head "https://github.com/libLAS/libLAS.git"
bottle do
rebuild 1
@daz
daz / google-earth-studio-ffmpeg.sh
Created Jan 23, 2019
Google Earth Studio stitch image sequence with FFmpeg
View google-earth-studio-ffmpeg.sh
ffmpeg -framerate 30 -pattern_type glob -i '*.jpeg' -c:v libx264 -pix_fmt yuv420p output.mp4
View led-breathe.cpp
uint8_t breathBrightness = (exp(sin(millis() / (float)breathRate * PI)) - 0.36787944) * 108.0;
uint8_t brightness = constrain(map(breathBrightness, 0, 250, 80, 255), 0, 255);
leds[0] = CHSV(hue, 255, brightness);
View pipwned.rb
require 'pwned'
PI = '3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111'
for n in 1..40
password = Pwned::Password.new PI[0..(n + 1)]
str = [ n.to_s.rjust(2) ]
str << (password.pwned? ? '😡' : '😃')
str << password.pwned_count.to_s.rjust(4)
str << password.password
@daz
daz / openalpr_camera.py
Created Aug 15, 2018 — forked from jkjung-avt/openalpr_camera.py
Real-time license plate recognition with 'openalpr' using a video file as input
View openalpr_camera.py
# test_camera.py
#
# Open an RTSP stream and feed image frames to 'openalpr'
# for real-time license plate recognition.
import numpy as np
import cv2
from openalpr import Alpr
@daz
daz / ffmpeg-cheatsheet.md
Created Aug 4, 2018 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video
View ffmpeg-cheatsheet.md

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@daz
daz / depth_sensor.ino
Created Jul 27, 2018 — forked from hephaestus9/depth_sensor.ino
Depth Sensor Code - modified j.brian
View depth_sensor.ino
/*
created August 2011
by SMStrauch and with help of robtillaart and ulrichard. Thanks!
Manufacturer: www.intersema.ch
Source: http://www.meas-spec.com/downloads/Using_SPI_Protocol_with_Pressure_Sensor_Modules.pdf
Source: http://forum.arduino.cc/index.php?topic=67188.0
Datasheet: http://media.digikey.com/pdf/Data%20Sheets/Measurement%20Specialties%20PDFs/MS5541-CM.pdf
Modified 2-10-2015 J.Brian
You can’t perform that action at this time.