Skip to content

Instantly share code, notes, and snippets.

View ehrenfeu's full-sized avatar

Niko Ehrenfeuchter ehrenfeu

View GitHub Profile
@ehrenfeu
ehrenfeu / README.md
Created January 27, 2022 22:04 — forked from jasco/README.md
ARM64 Raspberry Pi 4 Unifi Controller Setup

Background

The instructions for setting up the Unifi Controller on ARM do not cover ARM64. The documentation states that ARM64 is not supported but hints it can be setup manually. The documentation also states that Java 8 is currently required. The following is therefore clearly in unsupported territory but so far seems to work fine. The internet has numerous references and resources but they weren't all easy to find and the ones I read required some modification for my configuration.

Note for the future: double check versions and source documentation if these instructions are dated. Also these instructions are specifically tailored for Ubuntu. See original references for other platforms.

Last update March 25, 2021

Base configuration

@ehrenfeu
ehrenfeu / face-boxer-usage.md
Created April 25, 2017 12:29 — forked from dannguyen/face-boxer-usage.md
A face-detection script in Python

This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.

Usage

The face-boxer.py script is designed to be run from the command-line. It has two required arugments:

  1. The path to a XML file containing a Haar-cascade of visual features. In this example, it will be the features that make up a face.
  2. The path to an image file that you want to perform face-detection on. You can pass in more than one image file as space-separated arguments.
# Use local scikit-image
import sys
sys.path.insert(0, "/home/dan/University/projects/gsoc_face_detection/scikit-image/")
from skimage.feature import multiblock_local_binary_pattern
from skimage.transform import integral_image
import numpy as np
import skimage.io as io
import xml.etree.ElementTree as ET
@ehrenfeu
ehrenfeu / fix_encoding_437_to_utf8.sh
Created October 17, 2015 23:37 — forked from anonymous/fix_encoding_437_to_utf8.sh
Fix filenames encoded in 437 to UTF-8.
#!/bin/bash
#
test -z "$1" && exit 1
# echo "$1"
FIXED=$(echo "$1" | iconv -f 437 -t utf8)
# echo "$FIXED"
if ! [ "$1" == "$FIXED" ] ; then
mv -v "$1" "$FIXED"
@ehrenfeu
ehrenfeu / he-ipv6.sh
Last active August 29, 2015 14:14 — forked from jbhannah/he-ipv6.sh
#!/bin/sh
# Hurricane Electric IPv6 Tunnel Broker script for Ubuntu
# /etc/network/if-up.d/he-ipv6.sh
# Written by Jesse B. Hannah (http://jbhannah.net) <jesse@jbhannah.net>
# Based on instructions provided by Hurricane Electric (http://tunnelbroker.net)
###
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal