Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Edd Barrett vext01

🏠
Working from home
Block or report user

Report or block vext01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vext01
vext01 / code.rs
Created Sep 11, 2019
Type inference error
View code.rs
let def_ids: Arc<DefIdSet> = tcx.collect_and_partition_mono_items(LOCAL_CRATE).0;
let def_ids: DefIdSet = def_ids.borrow().clone();
@vext01
vext01 / gist:e545189c606f7d26e6b3d19f85a17c22
Created Jun 24, 2019
sequoia build on OpenBSD-current
View gist:e545189c606f7d26e6b3d19f85a17c22
Compiling openssl-sys v0.9.47
Compiling quote v0.6.12
Compiling idna v0.1.5
Compiling rand_chacha v0.1.1
Compiling rand_pcg v0.1.2
error: failed to run custom build command for `openssl-sys v0.9.47`
process didn't exit successfully: `/tmp/sequoia/target/debug/build/openssl-sys-8107c34a78600a78/build-script-main` (exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=X86_64_UNKNOWN_OPENBSD_OPENSSL_LIB_DIR
View python3 -m test.pystone 1000000
b11:
1: python3 -m test.pystone 1000000
Mean Std.Dev. Min Median Max
real 3.783 0.019 3.756 3.782 3.806
user 3.780 0.020 3.752 3.780 3.804
sys 0.001 0.002 0.000 0.000 0.004
b13:
1: python3 -m test.pystone 1000000
Mean Std.Dev. Min Median Max
View gist:f030c40b1ffd3f41f6eecbb8fc357a0f
OpenBSD 6.5 (GENERIC) #0: Wed Apr 24 22:45:52 CEST 2019
root@syspatch-65-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1055858688 (1006MB)
avail mem = 1014390784 (967MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf59b0 (9 entries)
bios0: vendor SeaBIOS version "rel-1.11.1-0-g0551a4be2c-prebuilt.qemu-project.org" date 04/01/2014
bios0: QEMU Standard PC (i440FX + PIIX, 1996)
View gist:82b7771fa749ce18d7d23eb221dcb72d
In file included from src/od-fs/bsdsocket_host.cpp:5:
./src/od-fs/bsdsocket_posix.cpp:1260:20: error: assigning to 'uae_u32' (aka 'unsigned int') from incompatible
type '__bind<int &, sockaddr *, int &>'
if ((success = bind (s, (struct sockaddr *)&addr, len)) != 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View config
client
dev tap
;dev tun
proto tcp
remote xxx.xxx.xxx 443
resolv-retry infinite
View gist:bba4eb955cf510413bf9b1eaf380f199
$ doas cdrecord -v -dao dev=/dev/cd0c Win10_1809Oct_English_x64.iso
Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-openbsd6.4) Copyright (C) 1995-2010 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/cd0c'
devname: '/dev/cd0c'
scsibus: -2 target: -2 lun: -2
Using libscg version 'schily-0.9'.
SCSI buffer size: 61440
atapi: 0
Device type : Removable CD-ROM
View gist:838d9e589363327500e4bce3b32a4c74
#[macro_use]
extern crate serde_derive;
use serde::{Serialize, Deserialize};
use std::io::{Cursor, Seek, SeekFrom};
use rmp_serde::{
Serializer, Deserializer
};
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
View 1
This file has been truncated, but you can view the full file.
=== RUN TestAutoAcceptNewFolderPremutationsNoPanic
2019/02/06 18:47:59.760596 progressemitter.go:197: DEBUG: progress emitter: updated interval 1s
2019/02/06 18:47:59.760646 set.go:81: INFO: No stored folder metadata for "3bKE4L7r": recalculating
2019/02/06 18:47:59.760706 logfs.go:79: DEBUG: ignore.go:320 basic /home/edd/go/src/github.com/imsodin/syncthing/lib/model/3bKE4L7r Open .stignore <nil> open /home/edd/go/src/github.com/imsodin/syncthing/lib/model/3bKE4L7r/.stignore: no such file or directory
2019/02/06 18:47:59.760747 logfs.go:115: DEBUG: folderconfiguration.go:193 basic /home/edd/go/src/github.com/imsodin/syncthing/lib/model/3bKE4L7r Stat . <nil> stat /home/edd/go/src/github.com/imsodin/syncthing/lib/model/3bKE4L7r: no such file or directory
2019/02/06 18:47:59.761015 logfs.go:73: DEBUG: folderconfiguration.go:194 basic /home/edd/go/src/github.com/imsodin/syncthing/lib/model/3bKE4L7r MkdirAll . -rwxrwxrwx <nil>
View gist:ed3b2927c418d51dcf0054d35a72e3ca
This file has been truncated, but you can view the full file.
=== RUN TestAssets
--- PASS: TestAssets (0.01s)
PASS
ok github.com/syncthing/syncthing/lib/auto (cached)
=== RUN TestBroadcastAddr
--- PASS: TestBroadcastAddr (0.00s)
PASS
ok github.com/syncthing/syncthing/lib/beacon (cached)
=== RUN TestReplaceCommit
You can’t perform that action at this time.