-
-
Save preetchaahal/5f063cacf9fc34d6ba8f3514ba86f026 to your computer and use it in GitHub Desktop.
Revisions
-
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,6 @@ # download and install latest geckodriver for linux or mac. # required for selenium to drive a firefox browser. install_dir="/usr/local/bin" json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) if [[ $(uname) == "Darwin" ]]; then -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 4 additions and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,19 +7,14 @@ set -e install_dir="/usr/local/bin" json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) if [[ $(uname) == "Darwin" ]]; then url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))') elif [[ $(uname) == "Linux" ]]; then url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))') else echo "can't determine OS" exit 1 fi curl -s -L "$url" | tar -xz chmod +x geckodriver sudo mv geckodriver "$install_dir" echo "installed geckodriver binary in $install_dir" -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 6 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,21 +5,19 @@ set -e install_dir="/usr/local/bin" json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) if [[ $(uname) == "Darwin" ]]; then url=$(echo "$json" | \ jq -r '.assets[].browser_download_url | select(contains("macos"))') elif [[ $(uname) == "Linux" ]]; then url=$(echo "$json" | \ jq -r '.assets[].browser_download_url | select(contains("linux64"))') else echo "can't determine OS" exit 1 fi tarball="geckodriver.tar.gz" curl -L -s -o "$tarball" "$url" tar -xzf "$tarball" rm "$tarball" chmod +x geckodriver -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,10 +7,12 @@ set -e install_dir="/usr/local/bin" url="https://api.github.com/repos/mozilla/geckodriver/releases/latest" if [[ $(uname) == "Darwin" ]]; then release_url=$(curl -s "$url" | \ jq -r '.assets[].browser_download_url | \ select(contains("macos"))') elif [[ $(uname) == "Linux" ]]; then release_url=$(curl -s "$url" | \ jq -r '.assets[].browser_download_url | \ select(contains("linux64"))') else echo "can't determine OS" -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,20 +4,20 @@ set -e install_dir="/usr/local/bin" url="https://api.github.com/repos/mozilla/geckodriver/releases/latest" if [[ $(uname) == "Darwin" ]]; then release_url=$(curl -s "$url" | jq -r '.assets[].browser_download_url | \ select(contains("macos"))') elif [[ $(uname) == "Linux" ]]; then release_url=$(curl -s "$url" | jq -r '.assets[].browser_download_url | \ select(contains("linux64"))') else echo "can't determine OS" exit 1 fi tarball="geckodriver.tar.gz" curl -L -s -o "$tarball" "$release_url" tar -xzf "$tarball" rm "$tarball" chmod +x geckodriver -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,11 @@ #!/bin/bash # download and install latest geckodriver for linux or mac. # required for selenium to drive a firefox browser. set -e os=$(uname) install_dir="/usr/local/bin" if [[ $os == "Darwin" ]]; then url=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | \ jq -r '.assets[].browser_download_url | select(contains("macos"))') -
cgoldberg revised this gist
Mar 11, 2017 . 1 changed file with 12 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,18 @@ #!/bin/bash # install latest geckodriver for Linux or MacOS os=$(uname) install_dir='/usr/local/bin' if [[ $os == "Darwin" ]]; then url=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | \ jq -r '.assets[].browser_download_url | select(contains("macos"))') elif [[ $os == "Linux" ]]; then url=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | \ jq -r '.assets[].browser_download_url | select(contains("linux64"))') else echo "can't determine OS" exit 1 fi tarball="geckodriver.tar.gz" curl -L -s -o "$tarball" "$url" tar -xzf "$tarball" -
cgoldberg revised this gist
Mar 10, 2017 . No changes.There are no files selected for viewing
-
cgoldberg revised this gist
Mar 10, 2017 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ #!/bin/sh # install latest geckodriver for Linux install_dir='/usr/local/bin' url=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | \ jq -r '.assets[].browser_download_url | select(contains("linux64"))') tarball="geckodriver.tar.gz" curl -L -s -o "$tarball" "$url" tar -xzf "$tarball" rm "$tarball" chmod +x geckodriver sudo mv geckodriver "$install_dir" echo "installed geckodriver in $install_dir" -
cgoldberg revised this gist
Feb 23, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ url=$(curl -s "https://api.github.com/repos/mozilla/geckodriver/releases/latest" python -c "import sys, json; \ r = json.load(sys.stdin); \ print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];") tarball="geckodriver.tar.gz" curl -L -s -o "$tarball" "$url" tar -xzf "$tarball" rm "$tarball" -
cgoldberg revised this gist
Feb 7, 2017 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,13 @@ #!/bin/sh # install latest geckodriver on Linux url=$(curl -s "https://api.github.com/repos/mozilla/geckodriver/releases/latest" | \ python -c "import sys, json; \ r = json.load(sys.stdin); \ print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];") tarball='geckodriver.tar.gz' curl -L -s -o "$tarball" "$url" tar -xzf "$tarball" rm "$tarball" chmod +x geckodriver sudo mv geckodriver /usr/local/bin -
cgoldberg renamed this gist
Jan 15, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cgoldberg revised this gist
Jan 15, 2017 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,7 @@ #!/bin/sh # download and install geckodriver for selenium url=$(curl -s "https://api.github.com/repos/mozilla/geckodriver/releases/latest" | python -c "import sys, json; r = json.load(sys.stdin); print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];") curl -L -o geckodriver.tar.gz $url tar -xzf geckodriver.tar.gz chmod +x geckodriver -
cgoldberg created this gist
Jan 15, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/sh # download and install geckodriver for selenium url=$(curl -s "https://api.github.com/repos/mozilla/geckodriver/releases/latest" \ | python -c "import sys, json; r = json.load(sys.stdin); print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];") curl -L -o geckodriver.tar.gz $url tar -xzf geckodriver.tar.gz chmod +x geckodriver sudo mv geckodriver /usr/local/bin