Skip to content

Instantly share code, notes, and snippets.

View klucsik's full-sized avatar

Pal K. Klucsik klucsik

  • Dynatrace
  • Vienna, Austria
View GitHub Profile
@klucsik
klucsik / ConfigureRemotingForAnsibleWS22.ps1
Last active March 30, 2023 07:46
A quick and dirty fix for a problem
#Requires -Version 3.0
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
#
# This script checks the current WinRM (PS Remoting) configuration and makes
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
# IMPORTANT: This script uses self-signed certificates and authentication mechanisms
@klucsik
klucsik / gist:da530b259c3476f6f1b3bd5e1f71a632
Created July 30, 2020 18:05
Greenhouse project gscript code
var SS = SpreadsheetApp.openById('yourspreadsheetidhere');
var str = "";
function doPost(e) {
var maintenacesheet = SS.getSheetByName('maintenance');
var now = Utilities.formatDate(new Date(), "GMT+1", "yyyy-MM-dd' 'HH:mm");
var nowTimeStamp = Math.floor((new Date()/1000)).toString();
maintenacesheet.getRange('B1').setValue(now);
var parsedData;
var result = {};
@klucsik
klucsik / esp32-image-to-flask.ino
Created January 2, 2020 22:53
esp32-cam image to flask with http-client, the simplest way
/*********
ESPCAM image to flask with http-client library
based on:
Rui Santos
Complete project details at https://RandomNerdTutorials.com/esp32-cam-take-photo-save-microsd-card
IMPORTANT!!!
- Select Board "AI Thinker ESP32-CAM"
- GPIO 0 must be connected to GND to upload a sketch