Skip to content

Instantly share code, notes, and snippets.

@Trung-DV
Trung-DV / ...
Created April 19, 2026 02:58
JetBrains IDEs config
<component name="github-copilot">
<option name="inlayTextColor" value="#28f0a0" />
</component>
<component name="UISettings">
<option name="compactTreeIndents" value="true" />
<option name="DISABLE_MNEMONICS" value="false" />
<option name="MAX_LOOKUP_LIST_HEIGHT" value="18" />
<option name="MAX_LOOKUP_WIDTH2" value="1177" />
<option name="NAVIGATION_BAR_LOCATION" value="TOP" />
@Trung-DV
Trung-DV / orb.compose.yml
Last active July 10, 2025 16:07
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
Last active February 14, 2026 04:52
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"]