Skip to content

Instantly share code, notes, and snippets.

@marshki
marshki / faux_tree.sh
Last active August 10, 2023 17:08
Partially mimic the `tree` command via Bash in macOS, Synology Disk Station Manager (DSM), et al.
#!/usr/bin/env bash
#
# Faux "tree" function in macOS, Synology Disk Station Manager (DSM), et. al.
# Comparable in output to Steve Baker's "tree" utility:
# http://mama.indstate.edu/users/ice/tree/
#
# Add function to: /Users/foo/.profile, or: .bash_profile,
# then refresh the profile with: source .profile or: source .bash_profile
#
# Inspired by this thread: https://superuser.com/questions/359723/mac-os-x-equivalent-of-the-ubuntu-tree-command
@marshki
marshki / OpenConnect_install.sh
Last active August 9, 2023 14:58
To access NYU's LAN via VPN on Debian, Fedora, or Ubuntu (Gnome), you need one or more packages. This Bash snippet installs them.
#!/usr/bin/env bash
#
# OpenConnect_install
#
# Install pkgs. needed to use OpenConnect (https://www.infradead.org/openconnect/) client in:
# Debian GNU/Linux, Fedora, or Ubuntu (GNOME desktop).
#
# Author: M. Krinitz <mjk235 [at] nyu [dot] edu>
# Date: 2023.09.08
# License: MIT