This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#list all env enviroment variables | |
get-childitem env: | |
$env:USERPROFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Sync-Folders | |
.DESCRIPTION | |
sync settings folders to onedrive settings folders | |
.EXAMPLE | |
PS C:\> SYNC-Folders.ps1 | |
.INPUTS | |
$source = "sourcefolder" | |
$Destination = "Onedrive-Destination-Folder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Voltcraft-CO-20 | |
# rehau raumluftsensor USB | |
# dmesg: | |
# hid-generic 0003:03EB:2013.0001: hiddev0,hidraw0: USB HID v1.11 Device [AppliedSensor iAQ Stick] on usb-20980000.usb-1.3.7/input0 | |
# source: https://code.google.com/archive/p/usb-sensors-linux/wikis/Install_AirSensor_Linux.wiki | |
sudo apt-get install libusb-dev | |
sudo apt-get install build-essential | |
wget https://raw.githubusercontent.com/jschanz/usb-sensors-linux/master/airsensor/airsensor.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: josef lahmer (https://about.me/josy1024) | |
# source: https://gist.github.com/josy1024/dae6bfe4db7e3a7ac361bd3037efaab0 | |
# helper script for otrs update: http://doc.otrs.com/doc/manual/admin/5.0/en/html/upgrading.html | |
# otrs 6: https://doc.otrs.com/doc/manual/admin/6.0/en/html/updating.html | |
# Backup everything below /opt/otrs/ | |
# tested on centos x64, otrs 4-5 update | |
# copy and paste! | |
# internal puppet hashtag: #otrsupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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"]) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Author: josef lahmer | |
:: http://josy1024.blogspot.co.at/2011/12/robocopy-mirror-script.html | |
mirror.cmd script (runas admin) | |
set log=syncjob_%date:~0,2%.log.log | |
set source=e:\ | |
set target=h:\ | |
set OPTSALL=/MIR /MT /R:2 /W:10 /XF "thumbs.db" /XF "._*" /XF ".DS_Store" /NP /NFL /NDL /XD "system volume information" "$recycle.bin" "recycler" "DfsrPrivate" ".Trashes" ".TemporaryItems" |