Skip to content

Instantly share code, notes, and snippets.

@jtviegas
Last active November 27, 2019 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtviegas/5da996f74d2db3d3b44e44a1deb62f75 to your computer and use it in GitHub Desktop.
Save jtviegas/5da996f74d2db3d3b44e44a1deb62f75 to your computer and use it in GitHub Desktop.
# necessary git basic config - avoid unnecessary merges
git config pull.rebase true
# Check ports
# To list the TCP ports that are being listened on, and the name of each listener’s daemon and its PID, run the following command:
sudo netstat -plnt
# download a folder from a github project
svn export https://github.com/jtviegas/terraform-modules/trunk/admin admin
# get version from package.json
version=`grep -w "version" package.json| cut -d':' -f2`
version=`echo "${version//[\",]}"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment