Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👾

Jaime Still JaimeStill

👾
View GitHub Profile
@JaimeStill
JaimeStill / Get-ComputerInfo.ps1
Last active July 21, 2024 12:45
PowerShell script for getting WMI info from a computer
[CmdletBinding()]
Param(
[Parameter()]
[string]$path = ".\computer-info.txt"
)
$bios = Get-CimInstance Win32_BIOS | Select-Object -Property Manufacturer,Name,SerialNumber,Version
$os = Get-CimInstance Win32_OperatingSystem | Select-Object -Property Version,BuildNumber,RegisteredUser,SerialNumber
$qfe = Get-CimInstance Win32_QuickFixEngineering | Select-Object -Property Description,HotFixID,InstalledOn
$products = Get-CimInstance Win32_Product | Select-Object -Property Name,Vendor,Version,Caption | Format-List
@JaimeStill
JaimeStill / settings.md
Last active July 16, 2019 16:22
Vibrant Office Theme

Vibrant Office Theme

Variants

Fonts

Name: Franklin Gothic
Heading Font: Franklin Gothic Demi
Body Font: Franklin Gothic Book

@JaimeStill
JaimeStill / profiles.json
Last active July 15, 2019 18:00
Windows Terminal Settings
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@JaimeStill
JaimeStill / powershell-6.ps
Created July 10, 2019 04:47
Install PowerShell 6 via PowerShell
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
@JaimeStill
JaimeStill / readme.md
Created June 28, 2019 15:05
Integrate FontAwesome with Angular
yarn add -D @fortawesome/fontawesome-free

angular.json

{
  "projects": {
    "web-app": {
 "architect": {
@JaimeStill
JaimeStill / colors.md
Last active May 14, 2019 01:22
Some of my favorite hex colors

Kick Ass Colors

Greens

  • #00ff88
  • #0d9038
  • #00c853

Blues

  • #0090ff
@JaimeStill
JaimeStill / readme.md
Last active August 23, 2024 16:07
FormData Uploads in ASP.NET Core and Angular

Walkthrough Uploading FormData with Angular

For an example application that integrates this process, see my FullstackOverview repo on GitHub. The code in this example is taken directly from this app.

upload-demo

File Upload Component

This component allows you have a custom styled file upload element.

@JaimeStill
JaimeStill / README.md
Last active December 12, 2021 10:42
Active Directory Authorization Workflow
@JaimeStill
JaimeStill / README.md
Last active October 21, 2025 11:59
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@JaimeStill
JaimeStill / core.service.ts
Created February 21, 2019 13:43
Generate input observable
// A core service function
generateInputObservable = (input: ElementRef): Observable<string> =>
fromEvent(input.nativeElement, 'keyup')
.pipe(
debounceTime(300),
map((event: any) => event.target.value),
distinctUntilChanged()
);
// An API service