Skip to content

Instantly share code, notes, and snippets.

@micahyoung
micahyoung / azure.sh
Last active June 7, 2019 13:22
Azure cli commands
# List all images
az vm image list --publisher MicrosoftWindowsServer --sku 2019-Datacenter-Core --all
@micahyoung
micahyoung / cf-who-pushed-last.sh
Last active May 2, 2019 17:18
Each app's, each updated event's actor
cf curl /v2/apps | jq -r '.resources[] | [.entity.name,.entity.state,.metadata.guid,.entity.space_url] | @tsv' | while read app_name app_state app_guid space_url; do
space_name=$(cf curl $space_url | jq -r '.entity.name')
echo ": $app_name / $space_name ($app_state)"
cf curl "/v2/events?q=actee:$app_guid&type:audit.app.update" | jq -r '.resources[] | select((.entity.actor_username | length) > 0) | [.entity.actor_username,.metadata.created_at] | @tsv'
echo
done
@micahyoung
micahyoung / README.md
Last active April 29, 2019 17:42
Remote Desktop over Steam Link

Experiment with using Steam Link + high-end ARM Android device for remote desktop

Goals

  • Low latency
  • 4K video

Current status

  • <100ms mouse cursor latency
  • 1080p HEVC video
  • 32GB SDXC HC I card
@micahyoung
micahyoung / ISSUES.md
Created April 4, 2019 02:41
pack issues
[[buildpacks]]
id = "mock.bp.first"
uri = "first"

[[buildpacks]]
id = "mock.bp.first"
uri = "first-latest"
latest = true
@micahyoung
micahyoung / silent-installer-examples.ps1
Created January 31, 2019 22:42
MSI / InstallShield Silent installer examples
# jethro
# docs: http://docs.jethro.io/display/JethroLatest/ODBC+Driver+for+Windows
# download: http://docs.jethro.io/display/JethroLatest/ODBC+Driver+for+Windows
jethroODBC64_3.8.5_20775.exe /s /v"/qn INSTALLDIR=c:\jethro-files"
@micahyoung
micahyoung / tags.sh
Last active May 8, 2019 21:05
curl mcr insider tags
# Catalog
curl -L https://mcr.microsoft.com/v2/_catalog
# Server Core
curl -L https://mcr.microsoft.com/v2/windows/servercore/tags/list
# Server Core (Insider)
curl -L https://mcr.microsoft.com/v2/windows/servercore/insider/tags/list
# Windows
@micahyoung
micahyoung / pull.sh
Created January 4, 2019 17:35
Docker pull windows insider version
docker pull mcr.microsoft.com/nanoserver-insider:10.0.17758.1
@micahyoung
micahyoung / repack-light-vsphere.sh
Last active January 1, 2019 19:29
Repack a light vsphere stemcell for use with bosh-vmrun-cpi
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
input_stemcell=$1
output_stemcell=$2
if [ ! -f $input_stemcell ]; then
echo Input stemcell does not exist $input_stemcell
@micahyoung
micahyoung / up.sh
Last active November 29, 2018 20:04
local director using bosh-vmrun-cpi
bosh -e local update-cloud-config -n \
vmrun-cloud-config.yml \
--vars-env CI \
;
@micahyoung
micahyoung / repack-image.sh
Created October 11, 2018 02:20
Repack windows docker image
#!/bin/bash │··
set -o errexit │··
set -o pipefail │··
set -o nounset