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
sudo apt install golang | |
mkdir ~/gopath | |
echo export GOPATH=\$HOME/gopath >> ~/.bashrc | |
echo export PATH=\$GOPATH:\$GOPATH/bin:\$PATH >> ~/.bashrc | |
source ~/.bashrc | |
go get -u -v github.com/odeke-em/drive/cmd/drive | |
mkdir ~/gdrive | |
drive init ~/gdrive |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Calculates the AMZ Warehouse fees | |
* | |
* @param {number} TotalAmount The total amount you plan to send to the warehouse | |
* @param {number} SellsPerDay The amout you sell per day. | |
* @param {number} PackageSize The size of the package in m³ | |
* @param {number} AMZFee The AMZ warehouse fee (normal fee: 26€). | |
* @return the total cost for storing the supplied amount until it | |
* @customfunction | |
*/ |
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
<html> | |
<head> | |
<title></title> | |
<meta content=""> | |
<style> | |
.r1{stroke:#999} | |
.r2{stroke:#333;} | |
</style> | |
</head> | |
<body> |
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
var d1 = Buffer.from("08","hex") | |
console.log(pack(d1,5).toString("hex")) | |
// pack(data-buffer,packet-type,optional-data-buffer) | |
function hex(num,pad){ | |
return num.toString(16).padStart(pad,"0") | |
} |
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
module wall(width,height,windows,doors){ | |
difference(){ | |
color("white") cube([width,20,height]); | |
for(w=windows){ | |
color("white") translate([w[2],-10,w[3]]) cube([w[0],40,w[1]]); | |
} | |
} | |
for(w=windows){ | |
translate([w[2],-10,w[3]]) window(w[0],w[1]); | |
} |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
svg{background:grey;width:400px;height:400px} | |
</style> | |
</head> | |
<body> |
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
function flatten(path,num){ | |
var l = path.getTotalLength() | |
var p = path.getPointAtLength(0) | |
var d = `M${p.x} ${p.y}` | |
for(var i = (l/num);i<=l;i+=(l/num)){ | |
p = path.getPointAtLength(i) | |
d+=`L${p.x} ${p.y}` | |
} | |
path.setAttribute("d",d+"z") | |
} |
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
diff --git a/nheqminer/libstratum/ZcashStratum.cpp b/nheqminer/libstratum/ZcashStratum.cpp | |
index 7eac7199..6cc047bf 100644 | |
--- a/nheqminer/libstratum/ZcashStratum.cpp | |
+++ b/nheqminer/libstratum/ZcashStratum.cpp | |
@@ -490,7 +490,7 @@ ZcashJob* ZcashMiner::parseJob(const Array& params) | |
// TODO: On a LE host shouldn't this be le32toh? | |
ret->header.nVersion = be32toh(version); | |
- if (ret->header.nVersion == 4) { | |
+ if (ret->header.nVersion > 29) { //BIP 9 |
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
# generate private key | |
openssl genrsa -out private.pem 2048 | |
# extatract public key from it | |
openssl rsa -in private.pem -pubout > public.pem |
NewerOlder