Skip to content

Instantly share code, notes, and snippets.

View janikvonrotz's full-sized avatar
:octocat:

Janik von Rotz janikvonrotz

:octocat:
View GitHub Profile
@janikvonrotz
janikvonrotz / Assign-TemporaryAdministratorRights.ps1
Last active February 7, 2023 21:31
PowerShell: Assign Temporary Administrator Rights #PowerShell #ActiveDirectory #EmbededPost
<#
$Metadata = @{
Title = "Assign Temporary Administrator Rights"
Filename = "Assign-TemporaryAdministratorRights.ps1"
Description = ""
Tags = "powershell, script, activedirectory, assign, temporary, administrator, rights, computer"
Project = ""
Author = "Janik von Rotz"
AuthorContact = "http://janikvonrotz.ch"
CreateDate = "2013-11-15"
@janikvonrotz
janikvonrotz / MD5 Hash Function.vbs
Created June 10, 2013 14:49
MSAccess: MD5 Hash Function #VisualBasic #MSAccess
Option Explicit
Option Base 0
' A VB6/VBA procedure for the MD5 message-digest algorithm
' as described in RFC 1321 by R. Rivest, April 1992
' First published 16 September 2005.
' Updated 2010-10-20 to fix ">" vs ">=" issue in uwAdd.
' --Thanks to Loek for this.
@janikvonrotz
janikvonrotz / Backup-ActiveDirectory.ps1
Created April 15, 2014 12:48
PowerShell: Backup Active Directory#PowerShell#ActiveDirectory
<#
$Metadata = @{
Title = "Backup ActiveDirecotry"
Filename = "Backup-ActiveDirectory.ps1"
Description = ""
Tags = "backup, active, directory, ntsutil"
Project = ""
Author = "Janik von Rotz"
AuthorContact = "http://janikvonrotz.ch"
CreateDate = "2014-04-15"
@janikvonrotz
janikvonrotz / Configure Lets Encrypt auto renewal for certificates.md
Last active December 6, 2022 21:41
Configure Lets Encrypt auto renewal for certificates #Markdown #OpenSSL

This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/ddce334cd8ab21a40941.

Introduction

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. So far it works well and makes it easy to obtain a free certificate. Now the created certificates will expire withing 90 days. This post will show you how you can auto renew these certificates before they expire.

Requirements

@janikvonrotz
janikvonrotz / Backup-ADGroupPolicies.ps1
Created April 22, 2014 06:51
PowerShell: Backup Active Directory Group Policies#PowerShell#ActiveDirecoty
<#
$Metadata = @{
Title = "Backup Active Directory Group Policies"
Filename = "Backup-ADGroupPolicies.ps1"
Description = ""
Tags = "backup, active, directory, group, object, policy"
Project = ""
Author = "Janik von Rotz"
AuthorContact = "http://janikvonrotz.ch"
CreateDate = "2014-04-22"
@janikvonrotz
janikvonrotz / Install Postfix with mail forwarding.md
Last active November 7, 2022 15:46
Ubuntu: Install Postfix with mail forwarding #Ubuntu #Markdown #Postfix

Introduction

Postfix is a commonly used MTA (Mail Transfer Agent) program that can receive, deliver or route emails. In this guide you'll learn how to forward mails from a certain domain to another e-mail address. It's a recommanded approach if you want to publish a mail contact based on your domain and redirect the received mails to another provider, such as Outlook or Gmail.

Requirements

Installation

@janikvonrotz
janikvonrotz / TypoScript.xml
Created October 5, 2013 11:01
TypoScript Syntax Highlight #Typo3 #NotepadPlusPlus #XML
<NotepadPlus>
<?xml version="1.0" encoding="UTF-8" ?>
<AutoComplete>
<KeyWord name="absRefPrefix" />
<KeyWord name="accessibility" />
<KeyWord name="accessKey" />
<KeyWord name="ACT" />
<KeyWord name="ACTIFSUB" />
<KeyWord name="ACTIFSUBRO" />
<KeyWord name="ACTRO" />
@janikvonrotz
janikvonrotz / Get a free verified SSL certificate from StartSSL.md
Created March 8, 2014 13:44
Get a free verified SSL certificate from StartSSL #Markdown #OpenSSL

SSL certificates aren't cheap. You can create them on your own for private use. However for internet use you have to get a verified certificate.

Luckily there's https://www.startssl.com/

They offer you a class 1 SSL certificate for free. Their site might not look trustworthy, but I'm quite shure they do a great job.

@janikvonrotz
janikvonrotz / Install npm package forever.md
Created March 4, 2014 14:29
Ubuntu: Install npm package forever #Markdown #Node.js

Introduction

A simple CLI tool for ensuring that a given script runs continuously (i.e. forever).

Requirements

  • Ubuntu server
  • Node.js

Installation

@janikvonrotz
janikvonrotz / AdvancedFuntionTemplate.ps1
Created June 10, 2013 15:05
PowerShell: Function Template #PowerShell #CodingStandards
<#
$Metadata = @{
Title = ""
Filename = ""
Description = ""
Tags = ""
Project = ""
Author = "Janik von Rotz"
AuthorContact = "http://janikvonrotz.ch"
CreateDate = "yyyyy-mm-dd hh:mm"