Skip to content

Instantly share code, notes, and snippets.

@Trung-DV
Trung-DV / orb.compose.yml
Last active June 2, 2025 05:12
Traefik with proxy's rules in a single docker compose file
name: traefik
services:
httpbin-subpath:
depends_on:
- httpbin-subdomain
image: busybox
command: ping -i 1 localhost
labels:
- traefik.http.routers.httpbin-subpath.rule=Host(`traefik.local`) && PathPrefix(`/httpbin`)
- traefik.http.routers.httpbin-subpath.service=httpbin-subpath-service
@Trung-DV
Trung-DV / github-multi-account-ssh-keys.md
Created February 20, 2025 04:35
Use multiple ssh keys for multiple GitHub accounts
@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"]