View azureadenv.pl
#!/usr/bin/perl | |
# | |
# place in /opt/otrs/bin/cgi-bin/azureadenv.pl | |
# call https://otrs.example.com/otrs/azureadenv.pl | |
# tested in #otrs6 #centos7 | |
# reference: https://gist.github.com/josy1024/84853e1a72f5631f697ee324b93264fe | |
### | |
### printenv -- demo CGI program which just prints its environment | |
### |
View AzureADAuth.pm
# -- | |
# Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ | |
# -- | |
# This software comes with ABSOLUTELY NO WARRANTY. For details, see | |
# the enclosed file COPYING for license information (GPL). If you | |
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt. | |
# -- | |
# $Self->{'AuthModule'} = 'Kernel::System::Auth::AzureADAuth'; | |
# SOURCE: copy from HTTPBasicAuth.pm from OTRS6 | |
# Place FILE IN: /opt/otrs/Kernel/System/Auth |
View envvars.ps1
#list all env enviroment variables | |
get-childitem env: | |
$env:USERPROFILE |
View SYNC-Folders.ps1
<# | |
.SYNOPSIS | |
Sync-Folders | |
.DESCRIPTION | |
sync settings folders to onedrive settings folders | |
.EXAMPLE | |
PS C:\> SYNC-Folders.ps1 | |
.INPUTS | |
$source = "sourcefolder" | |
$Destination = "Onedrive-Destination-Folder" |
View rdcmanprofilepasswd.ps1
# author: josef lahmer | |
# thanks to https://smsagent.blog/2017/01/26/decrypting-remote-desktop-connection-manager-passwords-with-powershell/ | |
# Path to RDCMan.exe | |
$RDCMan = "C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe" | |
# Path to RDG file | |
# $RDGFile = "$env:USERPROFILE\Documents\RDPConnections.rdg" | |
$RDGFile = "$env:LOCALAPPDATA\Microsoft\Remote Desktop Connection Manager\RDCMan.settings" |
View deployinator.ps1
# inspired deployinator for powershell | |
# http://blog.johngoulah.com/tag/deployinator/ | |
# author: josy1024@gmail.com | |
Function Get-Code ([String]$REPODIR, [String]$REPO) | |
{ | |
# controller deployinator | |
$host.ui.RawUI.WindowTitle = "git $REPO" | |
Write-Host git pull -ForegroundColor green |
View cli_setup_spfx_dev.cmd
:: https://docs.microsoft.com/de-de/sharepoint/dev/spfx/set-up-your-development-environment | |
:: https://docs.microsoft.com/de-de/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part | |
:: requirements: chocolatey installed (windows) | |
:: SETUP ENVIRONMENT (ADMIN) #spfx | |
choco install nodejs-lts --version 8.11.4 | |
refreshenv |
View redirect.aspx
<%@ Page Language="C#" %> | |
<script runat="server"> | |
protected override void OnLoad(EventArgs e) | |
{ | |
Response.Redirect("/pathnew/otherurl.aspx"); | |
//maybe useful as default.aspx for folder redirections | |
// variant and redirect with "q" parameter | |
// Response.Redirect("/pathnew/otherurl.aspx?q=" + Server.HtmlEncode(Request.QueryString["q"]) ); | |
} |
View shell.startup.quicklinks.cmd
:: start->run | |
shell:startup | |
shell:common startup | |
:: "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" | |
:: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" |
NewerOlder