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 / bulma.md
Last active April 24, 2020 17:51
Notes for building features into Sapper

Sapper Bulma Setup

Bulma

yarn add -D bulma sass svelte-preprocess

rollup.config.js

@JaimeStill
JaimeStill / prevent-weekends.cs
Created December 3, 2019 15:03
In C#, project a date in the future and ensure it does not fall on the weekend
using System;
public static class DateExtensions
{
static DateTime PreventWeekend(this DateTime dateTime)
{
switch (dateTime.DayOfWeek)
{
case DayOfWeek.Saturday:
return dateTime.AddDays(2);
@JaimeStill
JaimeStill / 01_Get-DomainController.ps1
Created August 25, 2019 17:10
PowerShell Scripts to Provision Domain Accounts
[CmdletBinding()]
Param(
[Parameter()]
[string]$remoteServer,
[Parameter()]
[PSCredential]$credential
)
Write-Host "Checking Domain Controller Availability... `n" -ForegroundColor DarkGreen
$session = New-PSSession -ComputerName $remoteServer -Credential $credential -Authentication Credssp
Invoke-Command -Session $session -ScriptBlock { Import-Module ActiveDirectory }
@JaimeStill
JaimeStill / package.json
Created August 22, 2019 13:50
Snippets extension layout - multiple language files
"contributes": {
"snippets": [
{
"language": "javascript",
"path": "./snippets/js/objects.json"
},
{
"language": "javascript",
"path": "./snippets/js/arrays.json"
}
@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 / 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" :
[
{