Skip to content

Instantly share code, notes, and snippets.

@asears
asears / ChromeExtensions.md
Created October 8, 2020 10:56
Chrome Extension Installs for a new PC
@asears
asears / Get-Issues.ps1
Created October 5, 2020 10:23
Get Github issues to markdown using hub
# Given a list of Github issues in a text file
# generate markdown details in a consolidated file
# generate markdown details in a file per issue
# generate an issue summary file
hub issue -s all --include-pulls -f "%I%n" | Out-File -FilePath issuelist.csv
ForEach ($issue in (Get-Content -Path issuelist.csv))
{
Write-Output $issue
@asears
asears / chocolatey-pester.log
Created August 13, 2020 09:47
Pester local nuget Install Log
2020-08-13 04:55:22,234 14596 [DEBUG] - XmlConfiguration is now operational
2020-08-13 04:55:22,264 14596 [INFO ] - ============================================================
2020-08-13 04:55:22,598 14596 [INFO ] - Chocolatey v0.10.15
2020-08-13 04:55:22,605 14596 [DEBUG] - Chocolatey is running on Windows v 10.0.18363.0
2020-08-13 04:55:22,607 14596 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2020-08-13 04:55:22,609 14596 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2020-08-13 04:55:22,617 14596 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install pester -dv -s .
2020-08-13 04:55:22,618 14596 [DEBUG] - Received arguments: install pester -dv -s .
2020-08-13 04:55:22,651 14596 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2020-08-13 04:55:22,659 14596 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
@asears
asears / mystars.md
Last active July 20, 2020 08:00
My Starred Repos

My Starred Repos

Github Stars Languages

A repo can include many languages. Gather a list of my starred repos, find the most commonly starred underlying languages.

Requires some changes to command line to pull > 100 projects. I have more than 7 starred Go repos!

hub api "/users/asears/starred?page=1&per_page=100"  --flat
@asears
asears / readme_summary.adoc
Created April 26, 2020 23:20
Linux Kernel Cheat Readme Summarized with Bert Extractive Summarizer

Linux Kernel Module Cheat

Getting started

Each child section describes a possible different setup for this repo. │(gdb) c [ 1.619187] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 │Continuing. …​.

@asears
asears / getoffers.sh
Created April 26, 2020 11:15
Get list of offers using Azure Cli / API
cat pubs.txt | tr -d '\r' | while read line; do az vm image list-offers --location eastus2 --publisher ${line} --query '[].id' --output table; done > offers.txt
@asears
asears / gist:fdf2c417a1b8efe0fa96489a6484efbf
Created April 26, 2020 10:31
Azure MS Publishers listed in az vm image list-publishers --location eastus2 just MS as of April 26, 2020
Name
microsoft-ads
microsoft-aks
microsoft-avere
microsoft-azure-batch
microsoft-azure-compute
microsoft-crypto
microsoft-dsvm
microsoft-hyperv
Microsoft.AKS
@asears
asears / azurepubs.txt
Created April 26, 2020 10:30
Azure Publishers listed in az vm image list-publishers --location eastus2 ex MS as of April 26, 2020
Name
128technology
1e
2021ai
3cx-pbx
4psa
5nine-software-inc
7isolutions
a10networks
abiquo
@asears
asears / Trog-Dor.ps1
Created April 21, 2020 10:31
ASCII Art Prompt in Powershell
function Burninate-Peasants
{
$trogdor = @"
and the trogdor comes in the NIIGGHHHTTTTT!!!!!!!!
:::
:: :::.
\/, .:::::
\), \`-._ :::888
/\ \ `-. ::88888
@asears
asears / superblock.schematic
Created April 19, 2020 12:24
Minecraft Control Block
summon falling_block ~ ~1 ~ {Time:1,Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~-1 ~-1 ~ ~300 ~-6 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~-1 ~-7 ~ ~-1 ~-390 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-7 ~ ~ ~-8 minecraft:snow",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-9 ~ ~ ~-26 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-27 ~ ~ ~-28 minecraft:snow",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-29 ~ ~ ~-46 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-47 ~ ~ ~-48 minecraft:snow",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-49 ~ ~ ~-66 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-67 ~ ~ ~-68 minecraft:snow",Passengers:[{id:"commandblock_minecart",Command:"fill ~ ~ ~-69 ~ ~ ~-86 minecraft:stained_glass",Passengers:[{id:"commandblock_minecart",Command:"f