Create getip.sh bash script:
#!/usr/bin/env bash
curl -s https://httpbin.org/ip | grep -oP '(?<="origin": ")[^"]*'then execute following command
| #!/bin/sh | |
| # | |
| # Automatically try to connect to "MyNetworkId" when WiFi is enabled | |
| # | |
| # https://askubuntu.com/questions/9014/auto-connect-to-hidden-wireless-without-elevating-privilege | |
| # ...also adjust permissions | |
| # the output of nmcli should be in English | |
| LC_ALL=C |
| /** | |
| * Generates UUID identifier - version 4, variant DCE 1.1, ISO/IEC 11578:1996 | |
| * | |
| * @returns {String} - UUID identifier | |
| * | |
| * https://en.wikipedia.org/wiki/Universally_unique_identifier | |
| * https://www.uuidtools.com/decode | |
| * https://www.uuidtools.com/generate/v4 | |
| */ | |
| const uuid = () => { |
| <title>ReCaptcha test</title> | |
| <fieldset> | |
| <legend>Form 1</legend> | |
| <form method="post" action="http://httpbin.org/post" target="_blank"> | |
| <p> | |
| <input type="text" name="form" value="form 1" size="10" /> | |
| </p> | |
| <input type="hidden" name="captchaKey" /> | |
| <div id="captcha1" class="g-recaptcha" data-size="invisible"></div> |
Create getip.sh bash script:
#!/usr/bin/env bash
curl -s https://httpbin.org/ip | grep -oP '(?<="origin": ")[^"]*'then execute following command
Create a new file e.g. cloudinary-curl-upload.sh
Then execute the file with required input parameters
./cloudinary-curl-upload.sh "path/to/file.ext" "cloud-name" "your-api-key" "your-api-secret"
./cloudinary-curl-upload.sh "path/to/file.ext" "cloud-name" "your-api-key" "your-api-secret" "remote-folder"
| 'use strict'; | |
| const fs = require('fs'), readline = require('readline'); | |
| const drValues = []; | |
| const input = process.argv[2]; | |
| const logPath = `./${input}`; | |
| const average = array => array.reduce((a, b) => a + b) / array.length; | |
| console.log(logPath); |