Skip to content

Instantly share code, notes, and snippets.

daz /
Created Mar 12, 2021
Hikvision ANPR ISAPI list with curl
curl --digest -u username:password \
-d '<AfterTime><picTime>2020-03-07T21:00:00Z</picTime></AfterTime>'
daz / airdata-flights.js
Created Oct 23, 2020
Download all Airdata flights
View airdata-flights.js
// Get a list of all Airdata flight download URLs in KML, GPX, CSV, original format.
// Go to and paste this into the console
let urlList = $("#item_list_dt")
.context[0] => {
return a._aData.h;
.slice(1, -1)
daz / RightClick.applescript
Created Aug 23, 2020 — forked from vitorgalvao/RightClick.applescript
Make right-clicking on OSX accessible via a keyboard shortcut.
View RightClick.applescript
Even though a [native solution][1] exists, it still suffers from a big flaw: it right-clicks the place you cursor is, not what you’re selecting. This addresses that limitation.
You can install this as a [Finder Service, and later asign it a keyboard shortcut][2].
daz / gulpfile.js
Last active Nov 23, 2019
Gulpfile to minify single HTML, CSS, JS file, make it a C++ string, and inject it into a C++ file. Handy for Arduino/ESP projects
View gulpfile.js
const gulp = require("gulp");
const gutil = require("gulp-util");
const inject = require("gulp-inject");
const htmlMin = require("gulp-htmlmin");
const cssMinifyOptions = true;
const jsMinifyOptions = {
mangle: {
toplevel: true
daz /
Created Oct 31, 2019 — forked from tylerlindell/
script for reducing faces programmatically with Meshlab's api
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)
daz / QuestCast
Created Jul 1, 2019
Cast Oculus Quest to Mac over wifi
View QuestCast
echo "Connect Quest and hit <return> to continue..."
read Z
QUEST_IP=`adb shell ip route | grep 'proto kernel' | awk '{print \$9}'`
adb tcpip 5555
daz / gist:aa6fcb5b048af885be90a2143f9d7630
Created Jun 2, 2019
Working M600 firmware May 2019
View gist:aa6fcb5b048af885be90a2143f9d7630
Matrice 600 Pro:
Fw DJI M600P - v. (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 /
Created Apr 26, 2019
Clean macOS dotfiles from a USB
# Remove invisible dotfiles from a directory or USB drive
# Usage:
# cd /Volumes/MY_USB
dot_clean $(pwd)
rm -rf .fseventsd
rm -rf .TemporaryItems
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 ""
url ""
sha256 "9adb4a98c63b461ed2bc82e214ae522cbd809cff578f28511122efe6c7ea4e76"
revision 1
head ""
bottle do
rebuild 1
daz /
Created Jan 23, 2019
Google Earth Studio stitch image sequence with FFmpeg
ffmpeg -framerate 30 -pattern_type glob -i '*.jpeg' -c:v libx264 -pix_fmt yuv420p output.mp4