NOTE: this is about tarring up plain LXC (i.e. not LXD) containers without the benefits of btrfs or similar
shut down the respective container, e.g.
lxc-stop mycontainer
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
#!/bin/sh | |
curl -c /tmp/curie.cookies -v -v -v -k -i \ | |
https://wifi.curie.fr/portal_degraded.php | |
curl -c /tmp/curie.cookies -v -v -v -k -i \ | |
-F action=automatic_authenticate -F secure_pwd= -F policy_accept=on \ | |
-F connect= --ignore-content-length -D /dev/stdout \ | |
https://wifi.curie.fr/portal_degraded.php |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
def send_html_mail(subject, body, to_addr, from_addr): | |
"""Send an HTML email using the given subject, body, etc.""" | |
# Create message container - the correct MIME type is multipart/alternative here! | |
message = MIMEMultipart('alternative') | |
message['subject'] = subject |
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.
The face-boxer.py
script is designed to be run from the command-line. It has two required arugments:
# 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 |
XRES=180 | |
YRES=32 | |
convert -size ${XRES}x${YRES} \ | |
-background white \ | |
-fill black \ | |
-pointsize $YRES label:"$(date +%X)" \ | |
-colorspace gray \ | |
-compress none \ | |
-depth 8 PGM:- | |
#!/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" |
#!/bin/bash | |
# | |
LIB="/storage/www/librarian/library" | |
DB="${LIB}/database/library.sq3" | |
TGT="/storage/pdf_export" | |
START_ID="4500" | |
STOP_ID="99999999" |