Skip to content

Instantly share code, notes, and snippets.

View jedisct1's full-sized avatar

Frank Denis jedisct1

View GitHub Profile
commit c74f64f05764f8bb25d85d8a88cc7c4647be60cc
Author: Frank Denis <[email protected]>
Date: Fri Oct 16 14:57:36 2020 +0200
Backport libxml2 fix from master
diff --git a/llvm/cmake/modules/GetLibraryName.cmake b/llvm/cmake/modules/GetLibraryName.cmake
new file mode 100644
index 00000000000..518fa4cf594
--- /dev/null
const std = @import("std");
fn eq(comptime T: type, comptime len: usize, a: []const T, b: []const T) bool {
if (len != a.len or len != b.len) return false;
if (a.ptr == b.ptr) return true;
const x16code = comptime blk: {
var i: usize = 0;
var buf = [_]u8{0} ** 4096;
var code = std.io.fixedBufferStream(&buf);
// SPDX-License-Identifier: MIT
// Copyright (c) 2015-2020 Zig Contributors
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
// The MIT license requires this copyright notice to be included in all copies
// and substantial portions of the software.
const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
@jedisct1
jedisct1 / a.ts
Last active April 21, 2020 22:12
type handle = i32;
type char = u8;
type ptr<T> = usize; // all pointers are usize'd
type mut_ptr<T> = usize; // all pointers are usize'd
type untyped_ptr = usize; // all pointers are usize'd
type union_member = usize; // all pointers are usize'd
type struct<T> = T; // structs are references already in AS)
type wasi_string = ptr<char>;
/** xqd_status */
function hashlocks(n: isize): void {
while (n >= 128) {
for (let i = 0; i < 80; ++i) {
for (let j = 0; j < 8; ++j) {
// empty loop, but the content is not important
}
}
n -= 128;
}
}
@jedisct1
jedisct1 / cookie-cutter.js
Last active February 2, 2020 18:25
Paste cookies from editthiscookie to any browser
BS-SPEKE
BS-SPEKE is a modified B-SPEKE with blind salt (OPRF). Modified B-SPEKE is a
similar change from SPEKE as from SPAKE2 to SPAKE2+ to make it augmented. Doing
this saves a scalar point multiply vs original B-SPEKE with blind salt. There
are no proofs, but it's not hard to take the SPEKE proof, add the OPAQUE proof
for OPRF, and it's obvious that the augmented change makes it augmented. So if
anyone knows how to formally state that in a proof, that would be awesome to
have.
@jedisct1
jedisct1 / a
Created December 9, 2019 19:36
This file has been truncated, but you can view the full file.
;; zone times: 2019-11-11 15:52:29 .. 2019-11-30 15:52:30
;; count: 11; bailiwick: net.
trafficmanager.net. NS tm1.msft.net.
trafficmanager.net. NS tm2.msft.net.
trafficmanager.net. NS tm1.edgedns-tm.info.
trafficmanager.net. NS tm2.edgedns-tm.info.
;; zone times: 2011-12-10 17:12:17 .. 2017-11-08 17:02:25
;; count: 2149; bailiwick: net.
trafficmanager.net. NS tm1.msft.net.
This file has been truncated, but you can view the full file.
;; zone times: 2019-11-13 15:52:20 .. 2019-11-24 15:52:31
;; count: 4; bailiwick: net.
omtrdc.net. NS ns1.omtrdc.net.
omtrdc.net. NS ns2.omtrdc.net.
;; zone times: 2019-11-13 15:52:20 .. 2019-11-24 15:52:31
;; count: 4; bailiwick: net.
ns1.omtrdc.net. A 66.235.157.6
;; zone times: 2019-11-13 15:52:20 .. 2019-11-24 15:52:31
;; record times: 2019-07-20 16:32:39 .. 2019-11-23 18:43:27
;; count: 82
tagcommander.fr. A 15.188.4.125
;; record times: 2019-07-22 03:27:52 .. 2019-11-21 13:14:22
;; count: 6
forum.tagcommander.fr. A 15.188.4.125
;; record times: 2019-07-17 13:03:14 .. 2019-11-25 15:52:17
;; count: 6127