Last active
May 28, 2024 10:08
-
-
Save FuruholmAnton/be95f93ab4948fb1b95c48455543ff23 to your computer and use it in GitHub Desktop.
[Terminal] #shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH="$PATH:~/opt/bin" # appending | |
PATH="~/opt/bin:$PATH" # prepending |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x [scriptname] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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