Skip to content

Instantly share code, notes, and snippets.

View mkingori's full-sized avatar

Moses King'ori mkingori

View GitHub Profile
@mkingori
mkingori / curl.md
Created February 28, 2020 09:15 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

PoW
===
External Hash Rate:
targetHashRate = hashrate / (1 - targetPow / 100)
Internal Hash Rate:
targetHashRate = hashrate * targetPow / 100
Device Cost in DRCs:
deviceCount = (targetHashRate * 1000) / deviceInfo.hashrate
package main
import (
"fmt"
"log"
"net/http"
"net/http/httputil"
"net/url"
"os"
"strings"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package composer/composer (locked at 1.0.0-beta1) is satisfiable by composer/composer[1.0.0-beta1] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for magento/framework (locked at 100.1.5) -> satisfiable by magento/framework[100.1.5].
- magento/framework 100.1.5 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.30) does not satisfy that requirement.
Problem 3
- Installation request for magento/magento2-base (locked at 2.1.5) -> satisfiable by magento/magento2-base[2.1.5].
- magento/magento2-base 2.1.5 requires composer/composer <=1.0.0-beta1 -> satisfiable by composer/composer[1.0.0-alpha1, 1.0.0-alpha10, 1.0.0-alpha11, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.0-alpha4, 1.0.0-alpha5, 1.0.0-alpha6, 1.0.0-alpha7, 1.0.0-alpha8, 1.0.0-alpha9, 1.0.0-beta1] but these conflict with your requirements or minimum-stability.
package main
import (
"fmt"
"log"
"time"
)
var (
maxPoolQueue = 100