Skip to content

Instantly share code, notes, and snippets.

View boz's full-sized avatar

Adam Bozanich boz

View GitHub Profile
#!/usr/bin/env bash
status_count(){
jq -r ".cluster.inventory.$1 | length"
}
status_cpu() {
jq -r ".cluster.inventory.$1 | .[]? | .cpu.units.val" | awk '{x+=$1} END { print x/1000 }'
}

Keybase proof

I hereby claim:

  • I am boz on github.
  • I am abozanich (https://keybase.io/abozanich) on keybase.
  • I have a public key ASAJiWehRGST3og1U8-11N67SjBk0ODIaSiY9gEiQZHxzgo

To claim this, I am signing this object:

@boz
boz / linux-sgx-driver-dkms.patch
Created January 25, 2018 04:21
linux-sgx-driver-dkms: Fix for Linux >= 4.14
diff --git a/PKGBUILD b/PKGBUILD
index 2475da3..388c9fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkg=linux-sgx-driver
pkgname=$pkg-dkms-git
-pkgver=1.9.r2.gcd51638
+pkgver=1.9_rhel7.4.r11.gb1c4b78

Keybase proof

I hereby claim:

  • I am boz on github.
  • I am abozanich (https://keybase.io/abozanich) on keybase.
  • I have a public key whose fingerprint is 3110 1CA6 C5FC 45F6 0DC4 A0CC FA05 8B98 D981 7906

To claim this, I am signing this object:

namespace :db do
Rake::Task["db:abort_if_pending_migrations"].clear
task :abort_if_pending_migrations => "roomer:shared:abort_if_pending_migrations"
Rake::Task["db:migrate"].clear
task :migrate => "roomer:migrate"
Rake::Task["db:schema:load"].clear
task "schema:load" => ["roomer:shared:abort_if_pending_migrations", "roomer:shared:schema:load"]
end