Skip to content

Instantly share code, notes, and snippets.

@E14
E14 / conversion-status.lua
Created August 27, 2021 10:11
Display OSX disk conversion status
-- Display OSX disk conversion status
function os.capture(cmd, raw)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()
if raw then return s end
s = string.gsub(s, '^%s+', '')
s = string.gsub(s, '%s+$', '')
s = string.gsub(s, '[\n\r]+', ' ')
@E14
E14 / stop-lghub.ps1
Created February 17, 2024 14:48
Fix logitech lghub
# Run as administrator!
Get-Process | Where Name -Like 'lghub_*' | Select Id | Kill -Force