Skip to content

Instantly share code, notes, and snippets.

View gruselhaus's full-sized avatar
🎯
Focusing

Nico Finkernagel gruselhaus

🎯
Focusing
View GitHub Profile
@gruselhaus
gruselhaus / exo.ps1
Created April 22, 2024 09:40
Remove existing Exchange Online Mailbox and enable Remote Mailbox Provisioning
Set-User "IDENTITY@int.pegasus.de" -PermanentlyClearPreviousMailboxInfo
Enable-RemoteMailbox -Identity "IDENTITY@int.pegasus.de" -RemoteRoutingAddress "vorname.nachnahme@pegasusde.mail.onmicrosoft.com"
@gruselhaus
gruselhaus / bootable-win-on-mac.md
Created March 16, 2024 18:03 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@gruselhaus
gruselhaus / MatrixKlasse.ipynb
Created January 13, 2022 12:12
Documents/07-BDS-04_PY/assignments/Assignment 09/MatrixKlasse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gruselhaus
gruselhaus / VektorKlasse.ipynb
Created January 13, 2022 12:12
Documents/07-BDS-04_PY/assignments/Assignment 09/VektorKlasse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gruselhaus
gruselhaus / update-repos.sh
Last active January 1, 2023 07:03
Shell script to automatically update repositories
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find -L . -name ".git" | cut -c 3-); do
@gruselhaus
gruselhaus / cert
Created June 28, 2019 21:09
create ssl certificate
sudo certbot -d DOMAIN_NAME --manual --preferred-challenges dns certonly