From 282668e4e8b810092294badc9a10ff34603522c2 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Tue, 7 Jan 2014 15:08:42 -0500 Subject: Give password to curl on stdin Prevents password from appearing in `ps' output for curl. --- hib-dlagent | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hib-dlagent') diff --git a/hib-dlagent b/hib-dlagent index 1bc2c40..9e61ed2 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -19,8 +19,9 @@ login() { read -rsp 'Enter Humble account password: ' PASSWORD echo fi - curl -s --cookie-jar "$COOKIE_JAR" \ - --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "$LOGIN_PAGE" + printf '%s' "$PASSWORD" | \ + curl -s --cookie-jar "$COOKIE_JAR" \ + --data-urlencode "username=$USERNAME" --data-urlencode password@- "$LOGIN_PAGE" } discover_url() { -- cgit v1.2.3-70-g09d2 t name='h' onchange='this.form.submit();'> MD5 longest common substring problemejona86@gmail.com
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-12-27Ignore logs folderEric Anderson
2010-12-27Display benchmark numbers in submit_to_web_batchTim Hatch
2010-12-27Support byte swapping on os-xTim Hatch
2010-12-27lcs_upper_bound's second sum is required all the time and try to handle endiansEric Anderson
2010-12-26Only do second sum if it can make a differenceEric Anderson
2010-12-26Auto-choose at runtime to do second sum in lcs_upper_boundEric Anderson
This has no impact for non-DO_SECOND_SUM, but puts DO_SECOND_SUM less than a percent behind.
2010-12-26Simple movement of return calculation in lcs_upper_boundEric Anderson
This increased performance of the non-DO_SECOND_SUM code a _lot_ for something so small.
2010-12-26Only add one to lcs_upper_bound or don't do the second sum.Eric Anderson
The DO_SECOND_SUM define has reduced false positives, but without it has a reasonable amount less work. Thus, you must empirically test to find which has the best boost. Right now, DO_SECOND_SUM is faster.
2010-12-26Add lcs_upper_bound check before lcs_32_rough for added speedEric Anderson