TODO: Write a project description
TODO: Describe the installation process
#https://github.com/RocketChat/hubot-rocketchat | |
# SYSTEM CONFIGURATION | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
apt-get update | |
apt-get install -y git nodejs npm mongodb-org curl | |
ln -s /usr/bin/nodejs /usr/bin/node |
sudo useradd hubot -m -d "/opt/hubot" -c "hubot user" | |
sudo usermod -a -G hubot hubot | |
cd /opt/hubot | |
sudo npm install -g coffee-script yo generator-hubot | |
BOT_OWNER=manuel.henke | |
BOT_NAME=gerty | |
BOT_DESC=awesome bot | |
BOT_ADAPTER=rocketchat | |
sudo -H -u hubot bash -c 'yo hubot --owner="$BOT_OWNER" --name="$BOT_NAME" --description="$BOT_DESC" --defaults' | |
sudo -H -u hubot bash -c 'npm install hubot-rocketchat' |
(irm https://raw.githubusercontent.com/git-tips/tips/master/tips.json)|sort {random}|select -First 1|% {"$($_.title)`r`n$($_.tip)" } |
DesktopAppConverter.exe -Setup -BaseImage "C:\Users\mhenke\Downloads\BaseImage-14393.wim" | |
DesktopAppConverter.exe -Installer C:\dev\7-Zip.16.0.4\7z1604-x64.msi -PackageName "MyApp" -Publisher "CN=7zip" -Version "16.0.4.0" -MakeAppx -Destination "c:\dev" -verbose | |
& "C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe" -r -h 0 -n "CN=7zip" -eku 1.3.6.1.5.5.7.3.3 -pe -sv myapp.pvk myapp.cer | |
& "C:\Program Files (x86)\Windows Kits\10\bin\x64\pvk2pfx.exe" -pvk .\myapp.pvk -spc .\myapp.cer -pfx .\myapp.pfx | |
& "C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe" sign -f .\myapp.pfx -fd SHA256 -v C:\dev\MyApp\MyApp.appx | |
#Import Cert in Store |
Level | Date and Time | Source | Event ID | Task Category | Message | |
---|---|---|---|---|---|---|
Error | 02.04.2017 22:15:00 | Microsoft-Windows-Hyper-V-VMMS | 1102 | None | VmmsVirtualMachineSnapshot::GetReplicaType: ReadUnsignedInteger failed for snapshot 58BF2CB6-85AC-4952-8786-9CFA9B27B980! HRESULT = 0x80070002 | |
Error | 02.04.2017 22:15:00 | Microsoft-Windows-Hyper-V-VMMS | 1102 | None | VmmsVirtualMachineSnapshot::GetReplicaType: ReadUnsignedInteger failed for snapshot 58BF2CB6-85AC-4952-8786-9CFA9B27B980! HRESULT = 0x80070002 | |
Warning | 02.04.2017 22:15:00 | Microsoft-Windows-Hyper-V-VMMS | 1101 | None | VmmsRealizedVirtualMachine::GetBackupSnapshot: ReadString failed for F47D8618-3DB4-46DE-A1BE-99EB4BA3A6E3! HRESULT = 0x80070002 | |
Warning | 02.04.2017 22:15:00 | Microsoft-Windows-Hyper-V-VMMS | 1101 | None | VmmsRealizedVirtualMachine::GetBackupSnapshot: ReadString failed for F47D8618-3DB4-46DE-A1BE-99EB4BA3A6E3! HRESULT = 0x80070002 | |
Warning | 02.04.2017 22:15:00 | Microsoft-Windows-Hyper-V-VMMS | 1101 | None | VmmsRealizedVirtualMachine::GetBackupSnapshot: ReadString failed for D678395B-A |
<# | |
.NOTES | |
You'll need the excellent C# driver: http://docs.mongodb.org/ecosystem/drivers/csharp/ | |
#> | |
Add-Type -Path "c:\mongodb\bin\MongoDB.Bson.dll" | |
Add-Type -Path "c:\mongodb\bin\MongoDB.Driver.dll" | |
Function Import-CsvToMongo{ | |
param($path, $dbUrl, $collection, $matchCol) #matchCol is used as a lookup to check if entry is to be added or updated |
Function New-WPFMessageBox { | |
# For examples for use, see my blog: | |
# https://smsagent.wordpress.com/2017/08/24/a-customisable-wpf-messagebox-for-powershell/ | |
# Define Parameters | |
[CmdletBinding()] | |
Param | |
( | |
# The popup Content |
############################################## | |
############## Script Info ################### | |
############################################## | |
## Created By : Dan Cook 2017 ######## | |
############################################## | |
<# | |
Version Info : | |
0.1 - 25/05/2017 - Creates a graphvis diagram and accompanying DOT code file | |
for an SCCM application dependency tree, by querying the |
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"newVMName": { | |
"type": "string", | |
"defaultValue": "ConfigMgrTP" | |
}, | |
"labName": { | |
"type": "string", |