Skip to content

Instantly share code, notes, and snippets.

View shoebsd31's full-sized avatar
:octocat:

shoeb shoebsd31

:octocat:
View GitHub Profile
@shoebsd31
shoebsd31 / flatMap.js
Created December 21, 2017 15:10 — forked from samgiles/flatMap.js
Javascript flatMap implementation
// [B](f: (A) ⇒ [B]): [B] ; Although the types in the arrays aren't strict (:
Array.prototype.flatMap = function(lambda) {
return Array.prototype.concat.apply([], this.map(lambda));
};
@shoebsd31
shoebsd31 / gethelpdesksupportdata.ps1
Created November 12, 2019 15:14
basic powershell to get read user data
<#
.Synopsis
This is a script to gather information for Help Desk support calls
.DESCRIPTION
This is a basic script designed to gather user and computer information for helpdeks support calls.
Information gathered includes:
DNS Name & IP Address
DNS Server
Name of Operating System
@shoebsd31
shoebsd31 / configureCors.cs
Created March 4, 2024 10:24
CORS configuration for C#
builder.Services.AddCors(options =>
{
options.AddPolicy(name: "yourFrontend",
policy =>
{
policy.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials()
.WithOrigins("http://localhost:7072");