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 liste = document.getElementsByTagName("a") | |
var body = document.createElement("body") | |
var pre = document.createElement("pre") | |
var str = "" | |
for(var i=0;i<liste.length;i++){ | |
str+='"'+liste[i].href+'"|"'+liste[i].textContent+'"\n' | |
} | |
pre.appendChild(document.createTextNode(str)) | |
body.appendChild(pre) |
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
/hex | |
scd serialno | |
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 |
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
// ==UserScript== | |
// @name Collmex Searchable Select | |
// @namespace https://klimapartner.de | |
// @version 1.0 | |
// @description alle dropdows sind durchsuchbar | |
// @author Holger Will | |
// @match https://www.collmex.de/cgi-bin/cgi.exe?* | |
// @require http://code.jquery.com/jquery-latest.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/js/select2.min.js | |
// @resource select2_CSS https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/css/select2.min.css |
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 |
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
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
<!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
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
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
<html> | |
<head> | |
<title></title> | |
<meta content=""> | |
<style> | |
.r1{stroke:#999} | |
.r2{stroke:#333;} | |
</style> | |
</head> | |
<body> |
OlderNewer