Skip to content

Instantly share code, notes, and snippets.

View aalear's full-sized avatar

Adam Lear aalear

View GitHub Profile
@aalear
aalear / random-game.ps1
Last active December 29, 2021 07:20
Fetches a random PC game for me to play from my nightmare of a Trello board where I track all the games I own
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
$trelloKey = ""
$trelloToken = ""
$cards = @{}
function Get-Random-Card($listId) {
if($cards[$listId].Length -eq 0) {
$cards[$listId] = Invoke-WebRequest -Uri "https://api.trello.com/1/lists/$listId/cards/open?key=$trelloKey&token=$trelloToken" | ConvertFrom-Json
@aalear
aalear / keybase.md
Last active February 1, 2017 19:50

Keybase proof

I hereby claim:

  • I am aalear on github.
  • I am aalear (https://keybase.io/aalear) on keybase.
  • I have a public key whose fingerprint is 6C6E 78C9 9731 2D81 0A3C 7B18 39F8 E1FD 34E3 3736

To claim this, I am signing this object: