parameters:
- action=query
- format=json
- prop=info
- titles=Megadeth Rust In Peace|Rust In Peace|Rust_In_Peace
- formatversion=2
'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); |
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"
Create getip.sh bash script:
#!/usr/bin/env bash
curl -s https://httpbin.org/ip | grep -oP '(?<="origin": ")[^"]*'
then execute following command
<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> |
/** | |
* 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 = () => { |
#!/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 |
'use strict'; | |
require('dotenv').config(); | |
const { | |
HEROKU_APP_NAME, | |
AUTH_TOKEN | |
} = process.env; | |
const |
importScripts('/js/workbox-sw.js'); | |
workbox.setConfig({ | |
debug : true | |
}); | |
workbox.core.setLogLevel(workbox.core.LOG_LEVELS.debug); | |
workbox.skipWaiting(); | |
workbox.clientsClaim(); | |
workbox.core.setCacheNameDetails({ | |
"prefix" : "nodepwa", | |
"suffix" : "web", |
'use strict' | |
global.state = { | |
time: null, | |
user: null, | |
photo: null, | |
book: null | |
} | |
const { getTime, getUser, getPhoto, getBook } = require('./promise_modules') |