Skip to content

Instantly share code, notes, and snippets.

View michaeltlombardi's full-sized avatar

Mikey Lombardi (He/Him) michaeltlombardi

View GitHub Profile
@padajo
padajo / service-checklist.md
Last active April 25, 2023 13:34 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

An update by Paul Johnston (paul@roundaboutlabs.com), for a Serverless Architecture scenario. This assumes something akin to AWS Lambda + API Gateway + DynamoDB (c. 2016) Function as a Service (FaaS) solution as the basis for deployment rather than a cloud-based virtual server approach which the original paper was based upon. The FaaS solution implies each function is separately scalable and the database is inherently partitioned (assuming designed/built well).

If you agree/disagree, please fork and share with me on twitter @pauldjohnston.

@Jaykul
Jaykul / ConEmu.xml
Last active June 23, 2023 20:11
Blog: ConEmu Install
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2016-09-13 00:43:10" build="160904">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@Jaykul
Jaykul / Blog: Installing Docker.md
Last active March 7, 2024 09:56
Docker in PowerShell on Windows 10

Using Docker on Windows 10 (Updated at the end of 2019)

Since I wrote this originally, Docker on Windows has become a first-class supported tool, with a Windows Installer and well-documented installation processes from docker and from Microsoft.

Today, I actually install docker using boxstarter scripts where I can Enable-WindowsOptionalFeature -Online -FeatureName containers -All and then choco upgrade -y docker-desktop as well as installing tooling for VS Code code --install-extension "ms-azuretools.vscode-docker".

I've left the rest of these notes here as a historical record, more than anything else. You should not expect the script below to work, but you certainly don

@Jaykul
Jaykul / Get-MsdnKeys.ps1
Last active August 3, 2022 20:28
PowerShell + Selenium Demo: Getting Started, and reusing cookies with Invoke-Request
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code
#requires -Version 5.0
param(
# Your Live ID for MSDN login
[Parameter(Mandatory)]
[PSCredential]
[System.Management.Automation.CredentialAttribute()]
$Credential,
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file)
function Get-WeatherEmoji
{
[CmdletBinding()]
param
(
[string[]]$Condition,
[Boolean]$DayTime
)
@gerane
gerane / platyps.md
Last active July 8, 2016 18:36
Getting Started with PlatyPS

Getting started with PlatyPS

  • Start by importing most recent version of module
  • I try to fill in as much information as possible in my parameter attributes before creating my innitial markdown. Having all of these filled out helps when using PlatyPS in place of comment based help. PlatyPS still has a few issues with some attributes when using Update-MarkdownHelp try to fill in all attribute like the following.
    • [SupportsWildcards()]
    • [PSDefaultValue(Help='whatever the default value is')]
    • [OutputType([if there is an outputtype])]
    • [CmdletBinding()]
    • [Alias()]
    • DefaultParameterSetName=""
  • SupportsShouldProcess

Getting Started

  • Get the Plaster Module from Plaster Github
  • Get the latest version of the VS Code Powershell Extension.
  • Create a zip file of the contents of the NewModuleTemplate folder in the Examples.
  • Set the TemplatePath variable in the ps1 file below to the path of the zip.
  • Set a Destination directory in the ps1 below.
  • Either place the code below in the Microsoft.VSCode_profile.ps1 profile or highlight and hit f8 to temporarily load it for testing.
  • Start the Command Palette by pressing f1 or ctrl+shift+P
  • type 'addi' and hit enter (Short for Show additional commands for powershell modules)
  • Enter the information prompted.
@ataylor32
ataylor32 / beep_mario_victory_theme.ps1
Created July 24, 2014 05:02
Beep: Mario Victory Theme
[Console]::Beep(130, 100)
[Console]::Beep(262, 100)
[Console]::Beep(330, 100)
[Console]::Beep(392, 100)
[Console]::Beep(523, 100)
[Console]::Beep(660, 100)
[Console]::Beep(784, 300)
[Console]::Beep(660, 300)
[Console]::Beep(146, 100)
[Console]::Beep(262, 100)
@jrotello
jrotello / gist:8873462
Last active March 23, 2022 14:18
Powershell helper to ease Elasticsearch interaction without curl
function Invoke-Elasticsearch {
[CmdletBinding()]
Param(
[Uri]$Uri,
[Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get',
$Body = $null,
[PSCredential]$Credential
)
$headers = @{}