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 / Enable-PowerShellISEWindowsServer.ps1
Last active August 29, 2015 14:22
Enable PowerShell ISE for Windows Server #PowerShell #WindowsServer
Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE
@janikvonrotz
janikvonrotz / map.geojson
Last active January 4, 2018 10:10
Places I've been to #JanikVonrotz
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janikvonrotz
janikvonrotz / Add-RemoteDesktopUser.ps1
Created June 1, 2015 08:44
Add Remote Desktop User #PowerShell #Windows
$computername = "hostname"
Invoke-Command -ComputerName $computername -ScriptBlock {
$computer = $env:COMPUTERNAME
$domain = "domain"
$user = "username"
$group = [ADSI]"WinNT://$computer/Remote Desktop Users,group"
$group.psbase.Invoke("add",([ADSI]"WinNT://$domain/$user").Path)
}
@janikvonrotz
janikvonrotz / Enable Piwik for LimeSurvey.md
Created April 9, 2015 09:29
Ubuntu: Enable Piwik for LimeSurvey #LimeSurvey
@janikvonrotz
janikvonrotz / Install LimeSurvey webapp.md
Last active November 13, 2015 12:51
Ubuntu: Install LimeSurvey webapp #LimeSurvey
@janikvonrotz
janikvonrotz / Add-WPAdminUser.sql
Created March 23, 2015 08:20
Wordpress add administrator user with sql only #WordPress #MySQL
USE <database>;
SET @username = '<username>';
SET @password = MD5('<password>');
SET @fullname = '<Firstname Lastname>';
SET @email = '<login@example.com>';
SET @url = '<http://example.com/>';
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname);
@janikvonrotz
janikvonrotz / footer.blade.php
Last active July 4, 2017 06:13
Laravel default templates #Laravel
@janikvonrotz
janikvonrotz / Useful command aliases.md
Last active September 11, 2021 11:33
Ubuntu: Useful command aliases #Ubuntu #Markdown

Introduction

This is a list of useful commandline aliases for your Ubuntu installation.

Requirements

  • Ubuntu server
  • Supported installations (see below)

Instructions

@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 / Dismount-Drives.ps1
Last active August 29, 2015 14:07
PowerShell: Sync and mount HSLU ILIAS drives#PowerShell
.\HSLUDriveConfig.ps1
$Mounts | ForEach{
Write-Host "Dismount WebDav folder for: $($_.Name) on: $($_.DriveLetter)"
net use $($_.DriveLetter + ":") /Delete
}