Skip to content

Instantly share code, notes, and snippets.

View FaserF's full-sized avatar
:octocat:

Fabian Seitz FaserF

:octocat:
View GitHub Profile
@FaserF
FaserF / autounattend.xml
Last active February 25, 2025 15:30
Silent Windows 11 Pro installation
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
</component>
</settings>
@FaserF
FaserF / graph_api_worker.js
Last active February 21, 2025 19:02
Cloudflare Worker to send Mail from contact form via Microsoft Graph Exchange Online, Update SharePoint Lists and add Outlook Contacts
// IMPORTANT!!! CHANGE THE FOLLOWING VARIABLES BEFORE USING:
// mainDomain, clientId, clientSecret, tenantId, siteId, listId, cloudflare_TurnstileTSecret, companyName, allowedDomains
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
})
async function validateTurnstileToken(tokenCf, ip, cloudflare_TurnstileTSecret) {
const formDataT = new FormData();
formDataT.append("secret", cloudflare_TurnstileTSecret);
formDataT.append("response", tokenCf);