This file contains hidden or 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
$global:pw="geheim" | |
# Vor dem Start werden alte, registrierte Events geschlossen | |
Unregister-Event -SourceIdentifier * | |
# Initialisierung der Variablen | |
$global:Folder = "$PSScriptRoot\encoded" | |
$global:FolderOut = "$PSScriptRoot\decoded" |
This file contains hidden or 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
package mmbbs; | |
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken; | |
import org.eclipse.paho.client.mqttv3.MqttCallback; | |
import org.eclipse.paho.client.mqttv3.MqttClient; | |
import org.eclipse.paho.client.mqttv3.MqttException; | |
import org.eclipse.paho.client.mqttv3.MqttMessage; | |
public class MQTT { | |
public static void main(String[] args) { |
This file contains hidden or 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
Add-Type -Path 'C:\Users\jtutt\OneDrive\bin\NuGet\M2Mqtt.4.3.0.0\lib\net45\M2Mqtt.Net.dll' | |
$MqttClient = [uPLibrary.Networking.M2Mqtt.MqttClient]("service.joerg-tuttas.de") | |
# | |
# Verbinden | |
$mqttclient.Connect([guid]::NewGuid()) | |
Register-ObjectEvent -inputObject $MqttClient -EventName MqttMsgPublishReceived -Action {Write-host "Event Found Topic: $($args[1].topic) Message $([System.Text.Encoding]::ASCII.GetString($args[1].Message))"} | |
$mqttClient.Subscribe("esp32/temp",0) | |
$MqttClient.Publish("esp32/temp", [System.Text.Encoding]::UTF8.GetBytes("{temp:17}")) |
This file contains hidden or 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 | |
IP=$(ip addr show enxb827ebdbdca1 | awk '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}') | |
url="https://script.google.com/macros/s/AKfycby4En3zI_no0iIcczt8Je2_JL2b1sQFQExgHKrN-0YKNAxMWxI/exec?name=tuttas&ip=$IP" | |
echo $url | |
curl --request GET --url $url |
This file contains hidden or 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
. $PSScriptRoot/pi.ps1 | |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Content-type", 'application/json') | |
$key = Get-Content $PSScriptRoot/key | |
$headers.Add("X-AIO-Key", $key) | |
$temp = get-Temperature -slave 0 | |
$data = "" | Select-Object -Property "value" | |
$data.value=$temp.value |
This file contains hidden or 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 | |
This cmdlet returns the MD4 hash of the data that is input. | |
WARNING: MD4 is not secure, so it should NEVER be used to | |
protect sensitive data. This cmdlet is for research purposes only! | |
.DESCRIPTION | |
This cmdlet returns the MD4 hash of the data that is input. | |
WARNING: MD4 is not secure, so it should NEVER be used to |
This file contains hidden or 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
Import-Module "C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager" | |
#Get-SCVMMServer -ComputerName 'mmbbs-vmm1' -UserRoleName 'Administrator' | |
$VLAN_ID = Read-Host 'Bitte VLAN ID z.B. 32 eingeben' | |
$SERVICE_Name = Read-Host 'Bitte VM name eingeben (* als Platzhalter)' | |
$vms= Get-SCVirtualMachine | Where-Object {$_.Name -like $SERVICE_Name} | |
$vms | foreach { |
This file contains hidden or 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
Import-Module "C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\bin\psModules\virtualmachinemanager" | |
<# | |
.Synopsis | |
Löscht alle Snapshorts und erstellt einen Snapshot "base" | |
.DESCRIPTION | |
Löscht alle Snapshorts und erstellt einen Snapshot "base" | |
.EXAMPLE | |
Init Block for the named VM | |
init-block -vmname "linux" |
This file contains hidden or 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
set-psreadlineoption -t parameter darkblue | |
set-psreadlineoption -t operator darkblue | |
set-psreadlineoption -t string darkgreen | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1") | |
. $env:github_posh_git\profile.example.ps1 | |
function prompt | |
{ | |
$l=get-location; | |
$f=$l.Path.Substring($l.Path.LastIndexOf("\")) | |
$l.Drive.Name+":\\.."+$f+ "> " |
This file contains hidden or 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
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<title>tets</title> | |
</head> | |
<body> | |
<p><b><u>Aufgabe:</u></b> </p> | |
<p> </p> |