Very high level notes on using nginx as reverse proxy Content for /etc/nginx/sites-enabled/example.com location /.well-known part is for certbot which uses this for verification. Create link to enable site Reload nginx
Author: admin
SharePoint Online – Enable Custom Script
PowerShell Per Site Collection using pnp-powershell
How to open a MS Teams chat via a link
Single user <a href=”https://teams.microsoft.com/l/chat/0/0?users=user@domain.tld”>Chat with User</a> Multitple users <a href=”https://teams.microsoft.com/l/chat/0/0?users=userA@domain.tld,userB@domain.tld”>Chat with Group</a> With Topic and Message <a href=”https://teams.microsoft.com/l/chat/0/0?users=userA@domain.tld,userB@domain.tld&topicName=This is the topic&message=This is the message”>Order more</a>
Change Primary Administrator of SharePoint Online Site using PnP PowerShell
Changing the Primary Administrator First connect to SharePoint Online admin center $connection = Connect-PnPOnline -Url https://YourTenant-admin.sharepoint.com -Credentials (Get-Credential) -ReturnConnection Then get the Site $site = Get-PnPTenantSite -Url https://YourTenant.sharepoint.com/sites/SiteAlias -Connection $connection Then update the Owner (same as Primary Administrator) using the new Primary Administrators Email/UserPrincipalName. $site.Owner = “user@domain.com” $site.Update() $site.Context.ExecuteQuery() Verifying the Primary Administrator Connect to […]
Enable Num-Lock on Boot for Windows 10
I’d love for an easier way to do this, but I haven’t yet located one. Search for regedit in the Start Menu. Right click it and run it as Administrator Navigate to HKEY_USERS.DEFAULTControl PanelKeyboard Double-click InitialKeyboardIndikators and change the value to 2147483650 Restart If you know of an easier way, please let me know, thanks 🙂
Creating a List Item via the SharePoint REST API results in Error (500) Internal Server Error
The below is done in PowerShell, but I imagine other languages supports the same features as well. When utilizing the SharePoint REST API to create a new List Item which contains characters such as æ, ø, or å you might get a response of Error (500) Internal Server Error. The reponse might also include the […]
Avoid URL updates when clicking a telephone (tel) link
UPDATE: Since writing the below, I have found that some browser (InTune on Android for example) still updates the address. So I’m still looking for a solution to this. Some mobile browsers either open up a new blank page, or updates the address bar URL when a telephone link is clicked. This can be avoided […]
Saving time and bandwidth by reviewing/refactoring old code
Prelude I build multiple minor web apps at work. They might be forms for data collection, or registries with basic CRUD (Create, Read, Update, Delete) capabilities. These are written in HTML/JS/CSS and hosted on SharePoint – utilizing the SharePoint REST API to handle storage and permissions. When data is stored in a SharePoint list, I […]
Add routing to an Angular CLI project
After creating the project with Angular CLI, complete the following steps to add routing to the project. Ensure that index.html contains <base href=”/”> in the <head> section Navigate to the projects root folder in a terminal Generate a module for routing by running ng generate module app-routing Replace the content of the file app-routing/app-routing.module.ts with […]
Docker-Compose up – The system cannot find the file specified
If you get the following error when trying to run docker-compose up, then you probably have not started the docker service. Do that and try again.