Skip to content

Instantly share code, notes, and snippets.

@jerbob92
jerbob92 / drupal-PSA-003-check.sh
Last active December 14, 2021 00:42
Check whether Drupal 7.59 and 8.5.3 are released
#!/bin/sh
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL exists: $url";
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip";
blueprint:
name: ZHA - Ecodim, 4 Channel remote v2
description: Control any light using the Ecodim remote on ZHA
domain: automation
input:
remote:
name: Remote controller
description: Remote to use
selector:
device:
@jerbob92
jerbob92 / main.go
Last active June 28, 2023 19:57
go-pdfium webserver example
package main
import (
"fmt"
"mime/multipart"
"net/http"
"time"
"github.com/klippa-app/go-pdfium"
"github.com/klippa-app/go-pdfium/multi_threaded"