Skip to content

Instantly share code, notes, and snippets.

@whyvez
Created October 28, 2013 12:09
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 whyvez/7195780 to your computer and use it in GitHub Desktop.
Save whyvez/7195780 to your computer and use it in GitHub Desktop.
various bash commands
#!/usr/bin/env bash
# run cmd in background after shell logout
# http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
nohub doCommand.sh &
url=http://example.com
# curl into var
count=$(curl $url)
# curl w/ headers http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/
curl -i -H "Accept: application/json" $url
# count objects in aws s3 bucket
aws s3 ls s3://mybucket.com | wc -l
@whyvez
Copy link
Author

whyvez commented Nov 3, 2013

ulimit -n 2048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment