Skip to content

Instantly share code, notes, and snippets.

@harleymay
harleymay / bash_strict_mode.md
Created February 2, 2023 17:51 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@harleymay
harleymay / tmux-cheatsheet.markdown
Created September 9, 2022 21:04 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@harleymay
harleymay / lua-module.lua
Created August 21, 2022 15:24
Example Lua module
-- Assign an empty table to the local variable named M (it's standard to name the variable as "M")
local M = {}
-- Define your function & add it the M table
function M.do_something()
-- Your functional logic
end
-- Since the M table is scoped, it has to be returned for usage elsewhere
return M