Skip to content

Instantly share code, notes, and snippets.

Manuel Riezebosch riezebosch

Block or report user

Report or block riezebosch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
riezebosch / gist:c7e5969be40ebd2614b1
Last active Oct 20, 2015
VS External Tools ILSpy
View gist:c7e5969be40ebd2614b1
$ilspy = gci -Path "$env:ChocolateyInstall\lib\ILSpy*\tools\ILSpy.exe" | select -ExpandProperty FullName
pushd 'HKCU:\Software\Microsoft\VisualStudio\14.0\External Tools'
$index = [int](gp . -Name ToolNumKeys).ToolNumKeys
sp . -Name ToolNumKeys -Value $($index+1)
sp . -Name ToolTitle$index -Value "ILSpy"
sp . -Name ToolCmd$index -Value $ilspy
sp . -Name ToolArg$index -Value '"$(TargetPath)"'
View time reset
echo date %DATE:~4,10% > %~dp0startup.bat
echo time %TIME% >> %~dp0startup.bat
riezebosch / _install.ps1
Last active Jan 19, 2019
BoxStarter VS2015
View _install.ps1
$myfeed = ""
$wu = Get-Service -Name wuauserv
$wu | Set-Service -StartupType Manual | Stop-Service
choco install DotNet4.5.1 -y
choco install KB2919442 -y
choco install KB2919355 -y
$env:visualStudio:setupFolder = "K:\VS2015"
riezebosch / Install.ps1
Last active May 1, 2017
BoxStarter on Windows Server 2012 R2
View Install.ps1
# Tested on:
$myfeed = ""
$wu = Get-Service -Name wuauserv
$wu | Set-Service -StartupType Manual
$wu | Start-Service
cinst DotNet3.5 -y --version 3.5.20140403
cinst powershell -y
$wu | Stop-Service
View colors.ps1
git config color.status.added "green normal bold"
git config color.status.untracked "red normal bold"
git config color.status.changed "red normal bold"
riezebosch / ForEachComputer.ps1
Last active Oct 22, 2015
Alle cursist computers in cursuslokaal
View ForEachComputer.ps1
function ForEach-Computer([int] $from, [int] $to, [ScriptBlock] $script) {
for ($i=$from; $i -le $to; $i++) {
$computername = "$($env:COMPUTERNAME -replace "DOCENT(?=.)", "CURSIST")$($i.ToString("00"))"
Write-Host $computername
Invoke-Command $script
View octopus.ps1
# Server
$server = "$env:ProgramFiles\Octopus Deploy\Octopus\Octopus.Server.exe"
. $server create-instance --instance "OctopusServer" --config "C:\Octopus\OctopusServer.config"
. $server configure --instance "OctopusServer" --home "C:\Octopus" --storageConnectionString "Data Source=(local)\SQLEXPRESS;Initial Catalog=Octopus;Integrated Security=True" --upgradeCheck "True" --upgradeCheckWithStatistics "True" --webAuthenticationMode "UsernamePassword" --webForceSSL "False" --webListenPrefixes "http://localhost:80/" --commsListenPort "10943" --serverNodeName "VAGRANT-2012-R2"
. $server database --instance "OctopusServer" --create --grant 'NT AUTHORITY\SYSTEM'
. $server service --instance "OctopusServer" --stop
. $server admin --instance "OctopusServer" --username 'administrator' --password 'Pa$$w0rd'
. $server license --instance "OctopusServer" --licenseBase64 "PExpY2Vuc2UgU2lnbmF0dXJlPSJqUXhzbExQelM1TmhmNml4YTZucGlvZ0QyVnNsSEZPeEs4Sk1YTWRMZEtjMnluRFlrQnBmNVl6SEhtNW1MQU9CUnVva0xtV0F3bFVFR281S3l4amw5UT09Ij4NCiAgPE
View Program.cs
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Objects.DataClasses;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Library;
riezebosch /
Last active Apr 5, 2020
Update-AUPackages Report #powershell #chocolatey
riezebosch / rabbitmq.cs
Created Jan 25, 2018
Send drops message if no queue
View rabbitmq.cs
public class RabbitMqSpecificTests : IClassFixture<RabbitMqOptions>
readonly RabbitMqOptions options;
string queue = $"{nameof(RabbitMqSpecificTests)}{nameof(CommandDissapearsIfNoQueue)}";
public RabbitMqSpecificTests(RabbitMqOptions options)
this.options = options;
You can’t perform that action at this time.