Skip to content

Instantly share code, notes, and snippets.

View lukespragg's full-sized avatar

Luke Spragg lukespragg

View GitHub Profile
@ngpestelos
ngpestelos / remove-docker-containers.md
Last active August 20, 2024 19:34
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@IlyaFinkelshteyn
IlyaFinkelshteyn / StartBuildPassEnvVar.ps1
Created October 4, 2016 17:34
Start appveyor build with API and pass value for Environment Variable
Param([string]$myVar )
$token = '<API_Token>'
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$body = @{
@MarkTiedemann
MarkTiedemann / download-latest-release.ps1
Last active January 5, 2025 10:28
Download latest GitHub release via Powershell
# Download latest dotnet/codeformatter release from github
$repo = "dotnet/codeformatter"
$file = "CodeFormatter.zip"
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
@vadimstasiev
vadimstasiev / archlinux-steamlink_install.sh
Last active August 14, 2024 20:13 — forked from PlatinumMaster/archlinux-steamlink_install.sh
Arch Linux chroot installation on the Steam Link.