Skip to content

Instantly share code, notes, and snippets.

@Trung-DV
Trung-DV / init.lua
Created March 30, 2024 05:37
Hammerspoon script to change Microphone from AirPods to MacBook Microphone
local MICROPHONE_DEVICE_NAME = "MacBook Pro Microphone"
function detectAirPods(event)
if event ~= "dOut" and event ~= "dIn " then
return
end
local device_name = hs.audiodevice.current().name
if device_name:find("AirPods") == nil then
return
@Trung-DV
Trung-DV / Dockerfile
Last active August 1, 2023 15:06
Push empty commit to a PR
FROM alpine
LABEL authors="Trung-DV"
WORKDIR /pr
RUN apk add --no-cache git github-cli
COPY ./entrypoint.sh entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]