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/tests/dbgutil.c b/tests/dbgutil.c | |
index 1335f93..b12fc19 100644 | |
--- a/tests/dbgutil.c | |
+++ b/tests/dbgutil.c | |
@@ -45,7 +45,10 @@ void dump_data(const struct quirc_data *data) | |
printf(" Data type: %d (%s)\n", | |
data->data_type, data_type_str(data->data_type)); | |
printf(" Length: %d\n", data->payload_len); | |
- printf(" Payload: %s\n", data->payload); | |
+ printf(" Payload: "); |
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
# from https://community.letsencrypt.org/t/using-the-webroot-domain-verification-method/1445/7 | |
location /.well-known/acme-challenge { | |
alias /etc/letsencrypt/webrootauth/.well-known/acme-challenge; | |
location ~ /.well-known/acme-challenge/(.*) { | |
add_header Content-Type application/jose+json; | |
} | |
} |
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
source 'https://rubygems.org' | |
gem 'bcrypt' |
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
/* | |
* SecureRandomGenerator.java | |
* | |
* Output a lot of (random) stuff on stdout. | |
*/ | |
import java.io.IOException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.NoSuchProviderException; | |
import java.security.SecureRandom; |
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
'Reithalle': { | |
"presale": 286, | |
"reservations": 140 + 140 + 140, | |
"on-site": 150, | |
"reserve": 50, | |
}, | |
'Landhaus': { | |
"presale": 170, | |
"reservations": 80 + 80 + 80, | |
"on-site": 100, |
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
X-Spamd-Result: default: False [1.50 / 15.00] | |
FORGED_SENDER(0.30)[] | |
AUTH_NA(1.00)[] | |
HAS_X_ANTIABUSE(0.00)[] | |
FROM_NEQ_ENVFROM(0.00)[[email protected], [email protected]] | |
TO_MATCH_ENVRCPT_ALL(0.00)[] | |
TO_DN_NONE(0.00)[] | |
R_SPF_NA(0.00)[] | |
DMARC_NA(0.00)[regional.com] | |
HAS_X_AS(0.00)[darfurdcd] |
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
quirc test program | |
Copyright (C) 2010-2012 Daniel Beer <[email protected]> | |
Library version: 1.0 | |
Time (ms) Count | |
Filename Load ID Total ID Dec | |
------------------------------------------------------------------------------- | |
version=01,level=H,mode=ALNUM.png: 0 3 3 1 1 | |
version=01,level=H,mode=BYTE.png: 0 3 3 1 1 | |
version=01,level=H,mode=KANJI.png: 0 3 3 1 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 ipp = require("ipp"); | |
sinon.stub(ipp, "Printer"); | |
var stub_printer = sinon.createStubInstance(ipp.Printer); | |
ipp.Printer.returns(stub_printer); | |
// tests | |
var p = new Printer(device, cpus_name, base_name, ipp_uri); | |
expect(ipp.Printer).to.have.been.calledWith(ipp_uri + "/printer" + cups_name); | |
expect(p.ipp_printer).to.equals(stub_printer); | |
var testing_error = new Error("just testing"); |
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
db.tickets.find({'contact.portrait': {$exists: true}}).snapshot().forEach( | |
function (ticket) { | |
var rfc2397_portrait = 'data:' + ticket.contact.portrait['mime-type'] + ";base64," + ticket.contact.portrait.data.base64(); | |
db.tickets.update({_id: ticket._id}, | |
{ | |
$set: { | |
'contact.rfc2397_portrait': rfc2397_portrait, | |
}, | |
$unset: { | |
'contact.portrait': true, |
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 util = require("util"); | |
function url_decode(urlencoded, callback) { | |
/* | |
* see https://tools.ietf.org/html/rfc3986#section-2.3 | |
* unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" | |
*/ | |
var unreserved = /[A-Za-z0-9\-\._~]/; | |
/* | |
* see https://tools.ietf.org/html/rfc3986#section-2.1 |