Skip to content

Instantly share code, notes, and snippets.

View kovachwt's full-sized avatar

Nikola Kovachevski kovachwt

  • Webthink
  • Skopje, Macedonia
View GitHub Profile
@kovachwt
kovachwt / letsencrypt-acme-ps-script.ps1
Last active June 6, 2023 09:15
Let’s Encrypt for Windows and IIS, using the ACME-PS powershell module
import-module 'ACME-PS'
# This is an updated Let's Encrypt script using the ACME-PS module https://github.com/PKISharp/ACME-PS
# The original script (using ACMESharp) is by Marc Durdin https://marc.durdin.net/2017/02/lets-encrypt-on-windows-redux/
# This directory is used to store your account key and service directory urls as well as orders and related data
$acmeStateDir = "C:\Certs\AcmeState";
#
@kovachwt
kovachwt / Program.cs
Created May 2, 2020 08:24
Remove HTML tags from a Drupal node text dump
using System;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace txtsredvach
{
class Program
{
static string outputFile;
@kovachwt
kovachwt / KafanBot.csproj
Last active October 9, 2017 13:04
KafanaBot (Telegram bot / .NET Core 1.1)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="Telegram.Bot" Version="13.0.0-beta-02" />
@kovachwt
kovachwt / gist:93513c7edf7500927bb6
Created January 14, 2016 16:14
LUA code for web controlled 3-phase power socket
pin=2
ssid="yourSSID"
password="yourPass"
serverip = "192.168.1.2"
serverurl = "/termopechka.aspx"
-- set safe low signal
gpio.mode(pin, gpio.OUTPUT)
gpio.write(pin, gpio.LOW)