Skip to content

Instantly share code, notes, and snippets.

Avatar

Nikola Kovachevski kovachwt

View GitHub Profile
@kovachwt
kovachwt / letsencrypt-acme-ps-script.ps1
Last active Mar 22, 2021
Let’s Encrypt for Windows and IIS, using the ACME-PS powershell module
View letsencrypt-acme-ps-script.ps1
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
Remove HTML tags from a Drupal node text dump
View Program.cs
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 Oct 9, 2017
KafanaBot (Telegram bot / .NET Core 1.1)
View KafanBot.csproj
<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 Jan 14, 2016
LUA code for web controlled 3-phase power socket
View gist:93513c7edf7500927bb6
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)