Skip to content

Instantly share code, notes, and snippets.

View sguter90's full-sized avatar

Christoph Müller sguter90

View GitHub Profile
@sguter90
sguter90 / index.php
Created November 10, 2022 13:20
Grab screenshot from Synology SurveillanceStation camera
<?php
// login: <synologyUrl>/webapi/auth.cgi?api=SYNO.API.Auth&method=login&version=7&account=<user>&passwd=<pass>&session=SurveillanceStation&format=sid
// camera list: <synologyUrl>/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=7&start=0&limit=100&_sid=<sid>
$synologyUrl = 'https://192.168.1.XX:5001';
$user = "<user>";
$pass = "<password>";
$cameraID = 1; // field "ID" from camera list
$cameraStream = 1; // 0 = live stream, 1 = recording stream, 2 = mobile stream
@sguter90
sguter90 / .expose.php
Last active July 8, 2022 02:09
Beyond Code - Expose - systemd & nginx reverse proxy setup
<?php
return [
/*
|--------------------------------------------------------------------------
| Host
|--------------------------------------------------------------------------
|
| The expose server to connect to. By default, expose is using the free
@sguter90
sguter90 / check_disk_inodes.pl
Last active November 7, 2017 07:40
check_disk_inodes
#!/usr/bin/perl
=head1 PLUGIN
check_disk_inodes.pl : check inodes of disks on Unix servers
=head1 ENVIRONNEMENT
Linux
@sguter90
sguter90 / index.html
Created June 2, 2017 14:58
big_image_landing_page
<html>
<head>
<title>Title</title>
<style type="text/css">
html, body {
height: 100%;
}
body {
margin: 0;
}
@sguter90
sguter90 / icingia2_http_service_plugin.inc.php
Last active May 7, 2018 09:02
ISPConfig Icingia2 HTTP Service Plugin
<?php
/**
* ISPConfig Icingia2 HTTP Service Plugin for ISPConfig Version 3.1.2 and above.
*
* This class extends ISPConfig's vhost management with the functionality to manage icingia2 HTTP services.
*
* This Plugin requires Icinga2 (https://www.icinga.com/products/icinga-2/)
* The config files add a variable named "vars.http_vhosts" to an existing icinga2 host.
* With the matching icinga2 service configuration a icinga2 service will be added for each entry contained in "vars.http_vhosts".