Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👽

Jaime Still JaimeStill

👽
  • Arma Global / General Dynamics
  • Fayetteville, NC
View GitHub Profile
@JaimeStill
JaimeStill / AppServiceRegistrant.cs
Last active March 16, 2023 19:11
Service Registration via Reflection in .NET
using Microsoft.Extensions.DependencyInjection;
namespace App.Services;
public class AppServiceRegistrant : ServiceRegistrant
{
public AppServiceRegistrant(IServiceCollection services)
: base(services) { }
public override void Register()
{
@JaimeStill
JaimeStill / Get-ComputerInfo.ps1
Last active February 22, 2023 00:49
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 / screencasts.md
Created February 15, 2023 03:03
Edit Screencasts with FFMPEG

Edit Screencasts in Ubuntu with FFMPEG

# optional: install ffmpeg
sudo apt install ffmpeg

# from input at start through time, copy video and audio to output
ffmpeg -i {input} -ss {hh:mm:ss} -t {hh:mm:ss} -c:v copy -c:a copy {output}

# example
@JaimeStill
JaimeStill / readme.md
Last active November 11, 2022 14:21
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 / recover-deleted-branch.sh
Created September 25, 2022 15:08 — forked from umayr/recover-deleted-branch.sh
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@JaimeStill
JaimeStill / research.md
Last active September 17, 2022 16:05
Keep R&D efforts organized and focused.

Research and Development

  • e2e-disposable-data
    • Establish a seeding strategy that allows graphs of data to be fed through the Rig API to prevent cirumvention of app API data restrictions.
    • Build out a vanilla TypeScript RigService class that provides an interface into the Rig API and automates database initialization + process start.
    • Integrate Cypress testing strategy (initially established in this gist into the RigService.
    • Establish lifecycle patterns that support multiple e2e tests in one RigService lifetime:
      • RigService:
        • Initialize Database
  • Start Process
@JaimeStill
JaimeStill / abstract.md
Last active April 15, 2022 15:39
Research for geojson based mapping database / visualization engine