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 characters
| # Using cURL from julia: | |
| # http POST file-FORM upload | |
| # for making test scripts for my speech-recognition server: | |
| "Prepare a 'curl' Form-POST with upload command:" | |
| function curl_upload(url::String, form_dict, upload_dict ) | |
| cmdline = `curl` | |
| for (k,v) in form_dict | |
| push!(cmdline.exec, "--form") | |
| push!(cmdline.exec, "$k=$v") |
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 characters
| #!/usr/bin/env bash | |
| mkdir ~/inst | |
| cd ~/inst | |
| wget https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.5-linux-x86_64.tar.gz | |
| tar xfvz julia-0.4.*.gz | |
| rm julia-0.4.*.gz | |
| this_dir=$(pwd) | |
| sudo ln -s ${this_dir}/julia*/bin/julia /usr/bin/julia04 | |
| sudo rm /usr/bin/julia |
NewerOlder