Skip to content

Instantly share code, notes, and snippets.

Command Mean [s] Min [s] Max [s] Relative
./unpaper-clang-14-o2-lto --overwrite --layout double --input-pages 2 inputs/imgsrcE%03d.png outputs/results-%d.pbm 6.819 ± 0.005 6.811 6.827 2.12 ± 0.00
./unpaper-clang-14-o2-lto-skylake --overwrite --layout double --input-pages 2 inputs/imgsrcE%03d.png outputs/results-%d.pbm 6.718 ± 0.037 6.616 6.740 2.09 ± 0.01
./unpaper-clang-14-o2-nolto --overwrite --layout double --input-pages 2 inputs/imgsrcE%03d.png outputs/results-%d.pbm 11.541 ± 0.006 11.529 11.549 3.59 ± 0.00
./unpaper-clang-14-o3-lto-skylake --overwrite --layout double --input-pages 2 inputs/imgsrcE%03d.png outputs/results-%d.pbm 6.263 ± 0.003 6.257 6.267 1.95 ± 0.00
./unpaper-clang-14-o3-lto-skylake-treev --overwrite --layout double --input-pages 2 inputs/imgsrcE%03d.png outputs/results-%d.pbm 6.262 ± 0.002 6.258 6.266 1.95 ± 0.00
`./unpaper-clang-17-o2-lto --overwrite --layout double --inp
@Flameeyes
Flameeyes / settings.json
Created December 21, 2020 20:02
Flameeyes's Current Windows Terminal Configuration
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@Flameeyes
Flameeyes / 8051-to-atmega.patch
Created August 16, 2020 15:04
The changes needed to rewrite Birch Books to ATmega
--- 8051/birch-books.c 2020-08-16 16:01:28.250218679 +0100
+++ atmega48/birch-books.c 2020-08-16 15:27:32.893862293 +0100
@@ -1,38 +1,25 @@
// SPDX-FileCopyrightText: © 2020 The birch-books-smarthome Authors
// SPDX-License-Identifier: MIT
-//
-// Based on CC-0 licensed demo at
-// http://www.colecovision.eu/mcs51/STC89%20DEMO%20BOARD%20LED.shtml
+
+#define F_CPU 1000000
diff --git a/tests/test_write_support.py b/tests/test_write_support.py
index e1c66bf..03fe35b 100644
--- a/tests/test_write_support.py
+++ b/tests/test_write_support.py
@@ -6,15 +6,8 @@ import pcapng.blocks as blocks
from pcapng import FileScanner, FileWriter
from pcapng.exceptions import PcapngStrictnessError, PcapngStrictnessWarning
from pcapng.strictness import Strictness, set_strictness
-
-
Serial Challenge IV Encrypted Challenge MAC
MAGZ192-J4558 085056e1c830e1ed b419ec2760f453 f40c3493a47d756541e2b6c34ed3f424 7cc0864e94370a23
MAGZ192-J4558 085056e1c830e1ed b419ec2760f453 f40c3493a47d75656bacb485997a0fba 20fec3f47828b0f8
MAGZ192-J4558 085056e1c830e1ed b419ec2760f453 f40c3493a47d7565afee50ad0553fb49 a9caf1ebc58c9a5c
MAGZ192-J4558 b179f0a1d89c6d69 71d91ac01abc7e 6cc840585b3e08a5407ac0fe3591662e 378837f5947179bb
MAGZ192-J4558 b179f0a1d89c6d69 71d91ac01abc7e 6cc840585b3e08a5fec3046207acc294 dd3f8e86380e2348
@Flameeyes
Flameeyes / test.asm
Created April 9, 2020 20:01
SDCC misapplying operator precedence?
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.9.0 #11195 (Linux)
;--------------------------------------------------------
.module test
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
(cython-sgutils) flameeyes@seleya:~/devel/repos/cython-sgutils> ./examples/inquiry.py /dev/sdb
SimpleInquiryResp(peripheral_qualified=0, peripheral_type=0, byte_1=128, version=4, byte_3=2, byte_5=0, byte_6=0, byte_7=0, vendor=b'Generic ', product=b'Flash Disk ', revision=b'8.07')
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2019 Diego Elio Pettenò
import itertools
import serial
From 5cda8ee0aa090d9fd3d5bde8c16dd9402583e117 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
Date: Sat, 11 Nov 2017 16:58:18 +0000
Subject: [PATCH] build: make sure to create the include/libplacebo path before
copying it.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
`cp -r` with a non-existent path will copy the directory itself as the new