Skip to content

Instantly share code, notes, and snippets.

@sandeep048
Last active March 23, 2016 12:04
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 sandeep048/507cb0020419de1c2081 to your computer and use it in GitHub Desktop.
Save sandeep048/507cb0020419de1c2081 to your computer and use it in GitHub Desktop.
Save a copy of useful commands
# Using httpie for transfer.sh.
# Since it is a python plugin might be useful for automation.
# Will not handle extremely large files though.
# The library should use some async mechanism.
http -b PUT https://transfer.sh/fname.ext < fname.ext
# Create a new user account
useradd -d /home/sandeep -m -c "Sandeep Pathivada" sandeep
usermod -G root sandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment