Skip to content

Instantly share code, notes, and snippets.

@promotion
promotion / OpenALPR.md
Created January 31, 2023 16:55 — forked from braitsch/OpenALPR.md
OpenALPR for Ubuntu 18.04

OpenALPR for Ubuntu 18.04

This is a slightly modified update to Daniel Kornev's excellent post which goes into more detail about why building from source is necessary on 18.04. His post was missing a few dependencies that I didn't have installed namely cmake, opencv and pkg-config. The following steps should get you a working build of openalpr on a fresh install of Ubuntu 18.04.


If you're not working with a fresh install, this might be a good time to clean and update your system before proceeding. (Optional)
$ sudo apt update #fetch list of available updates
$ sudo apt upgrade #install updates – does not remove packages
@promotion
promotion / delete-flamingo-data.php
Created March 8, 2022 21:49 — forked from damiencarbery/delete-flamingo-data.php
Delete Contact Form 7 Flamingo submissions - Easily delete a large number of Flamingo (Contact Form 7) messages. https://www.damiencarbery.com/2020/03/delete-contact-form-7-flamingo-submissions/
<?php $time_start = microtime(true); ?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Delete Flamingo messages and contacts</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>Delete Flamingo messages and contacts</h1>
@promotion
promotion / Resize virtual machine partition.md
Created December 4, 2020 19:21 — forked from HugoPoi/Resize virtual machine partition.md
How to resize virtual machine partition after extend the disk

Resize a VM system disk

Introduction

  • You have a VM with small disk
  • You have GPT partition table
  • You NOT USE LVM (you should)
  • You need to extend a partition on the main drive
  • You use Debian 8.x aka Jessie

Extend the disk

@promotion
promotion / shared_folder_centos_virtualbox.txt
Created October 12, 2017 17:53 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot
@promotion
promotion / gist:3cae0555b70917b8754c
Created January 1, 2016 00:25 — forked from owindsor/gist:21b289d480d931d457c3
SilverStripe Varnish Cookie handling
# Remove all cookies that do not match the following rules
if (
# Any HTTP POST request
!(req.request == "POST") &&
# Admin URLs
!(req.url ~ "^/admin|Security/") &&
# Allow /dev/build and /dev/tasks URLs