Skip to content

Instantly share code, notes, and snippets.

View merentitis's full-sized avatar

Konstantinos Merentitis merentitis

View GitHub Profile
@merentitis
merentitis / webcam-widget.js
Created October 26, 2024 21:53 — forked from andreasRedeker/webcam-widget.js
An iPhone widget, that shows you a live webcam image from foto-webcam.eu on your homescreen
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: camera-retro;
// Script by Andreas Redeker <[email protected]>
let param = args.widgetParameter
let url
if (param != null && param.length > 0) {
url = param
@merentitis
merentitis / DeployOverVPN.ps1
Last active July 20, 2023 13:26
Group Policy Software Deployment for VPN clients
#Remote Software Deployment script via GPO for VPN users
#This scripts checks if VPN is UP or if user is connected to internal network by pinging an internal host.
#Then, it checks if the Application file exists and runs the installation.
#It also sends a slack notification and creates a custom event "12345" for logging purposes
#version 1.1
#Konstantinos Merentitis 20.07.2023
#Scheduled Task example using "Rustdesk" software:
#GPO - Create Following Group Policy and apply to computers:
#a)
@merentitis
merentitis / dnsbl.sh
Last active January 28, 2020 08:59 — forked from agarzon/dnsbl.sh
DNS Black List - Linux shell script (improved from: http://www.daemonforums.org/showthread.php?t=302)
##!/bin/sh
#!/bin/bash
# Check if an IP address is listed on one of the following blacklists
# The format is chosen to make it easy to add or delete
# The shell will strip multiple whitespace
#Modified to check for a specific host, may be used as a cron job:
ipaddress="some.ipaddress.to.check"
mailuser="[email protected]"