Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
ARGS=(
-D MBIM_DEVICE_PATH='"/dev/wwan0mbim0"'
-D MBIM2SAR_SO_PATH='"/mnt/usr/lib/mbim2sar.so"'
)
gcc "${ARGS[@]}" -o fcc-unlock fcc-unlock.c
@doak
doak / x-cwd-exec.sh
Last active November 25, 2019 17:26 — forked from viking/i3-shell.sh
Bash script for i3 to run a terminal in the same working directory as the current focused application
#!/usr/bin/env bash
# Based on 'i3' thread [1] and Github Gist [2]:
# [1] https://faq.i3wm.org/question/150/how-to-launch-a-terminal-from-here/?answer=152#post-id-152
# [2] https://gist.github.com/viking/5851049
find_cwd_of_forground_process() {
local pid="$1"