Skip to content

Instantly share code, notes, and snippets.

@FuruholmAnton
Last active May 28, 2024 10:08
Show Gist options
  • Save FuruholmAnton/be95f93ab4948fb1b95c48455543ff23 to your computer and use it in GitHub Desktop.
Save FuruholmAnton/be95f93ab4948fb1b95c48455543ff23 to your computer and use it in GitHub Desktop.
[Terminal] #shell
PATH="$PATH:~/opt/bin" # appending
PATH="~/opt/bin:$PATH" # prepending
dig -4 TXT +short o-o.myaddr.l.google.com @ns1.google.com
or
curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z<>/ :]//g'
chmod +x [scriptname]
# Add Sublime to the PATH
# to make it open files from the terminal
# Ex. subl ./my_file.txt
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment