Skip to content

Instantly share code, notes, and snippets.

@DustinVenegas
DustinVenegas / ScreenCapture.ps1
Created March 3, 2022 07:19
Tweet a Screen Shot with PowerShell Core and Windows 10
#Requires -PSEdition Core
#Requires -Version 7.0
#Requires -Assembly System.Drawing.Common
function Invoke-MainWindowScreenCapture {
<#
.SYNOPSIS
Captures the screen of the main window for a given process on Windows.
.DESCRIPTION
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0",
"parameters": {
"sku": {
"type": "string",
"defaultValue": "B1"
}
},
"variables": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0",
"parameters": {
"authActiveDirectoryClientId": {
"type": "string",
"defaultValue": ""
}
},
"variables": {
@DustinVenegas
DustinVenegas / passable-gpg-pair.md
Last active November 25, 2019 05:32
How to create a passable GPG Keypair

How to Create a Passable GPG Keypair

Overview

Gpg isn't the easiest thing to set up "the right way". I'm not sure this is it. Follow at your own peril, but this is how I did it.

This text is based on (Creating the Perfect GPG Keypair)[https://alexcabal.com/creating-the-perfect-gpg-keypair/] by @acabal. Note my examples use full-form parameters for readability.

Goals

At the end of this seutp we want:

  • A GPG keyset
@DustinVenegas
DustinVenegas / keybase.md
Created August 4, 2016 06:06
keybase.md

Keybase proof

I hereby claim:

  • I am dustinvenegas on github.
  • I am dustinvenegas (https://keybase.io/dustinvenegas) on keybase.
  • I have a public key ASAQzf4w_G6u8HTkXGBwhDfCA8EklpspOl5uIUrijrSwxQo

To claim this, I am signing this object:

@DustinVenegas
DustinVenegas / tmux-cheatsheet.markdown
Created October 4, 2015 07:45 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@DustinVenegas
DustinVenegas /
Last active August 29, 2015 14:21
UnifyobjectcGraphHuristics class for the TRansitive.OLe.LibrarieS
using System.Linq;
#if DEBUG
// Fix spelling for de-bug
using link = System.Linq;
#endif
namespace TRansitive.OLe.Library
{
// Namespace our system
using @using = System;
@DustinVenegas
DustinVenegas / gist:9514081
Created March 12, 2014 19:10
Get-A-Wider-Monitor-Mode
var inputs = loginPageDocument.DocumentNode.SelectSingleNode("//form[@name='someid']").SelectNodes("//input").ToDictionary(node => (node.Attributes["id"] ?? node.Attributes["name"]).Value, node => node.Attributes["value"] != null ? node.Attributes["value"].Value : string.Empty);