Skip to content

Instantly share code, notes, and snippets.

@nathanchan631
nathanchan631 / open_terminal.ahk
Created October 13, 2020 06:20
Open Terminal with AutoHotKey
openWT(asAdmin:=false) {
; If Terminal is Already Open
if WinExist("ahk_exe WindowsTerminal.exe") {
WinActivate
Return
}
; If File Explorer is Active (Source: https://www.winhelponline.com/blog/open-command-prompt-current-folder-keyboard-shortcut)
if WinActive("ahk_class CabinetWClass") || WinActive("ahk_class ExploreWClass") {
WinHWND := WinActive()
@nathanchan631
nathanchan631 / Dockerfile
Created October 3, 2023 22:37
Dockerfile for Ardupilot SITL
ARG BASE_IMAGE="ubuntu"
ARG TAG="22.04"
FROM ${BASE_IMAGE}:${TAG}
WORKDIR /ardupilot
ARG DEBIAN_FRONTEND=noninteractive
ARG USER_NAME=ardupilot
ARG USER_UID=1000
ARG USER_GID=1000
RUN groupadd ${USER_NAME} --gid ${USER_GID}\