Skip to content

Instantly share code, notes, and snippets.

View devsnek's full-sized avatar
🐍

snek devsnek

🐍
View GitHub Profile
# Copyright 2010-2017 Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.9.14-arch1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100200
CONFIG_LD_VERSION=235010000
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y
/*
* QEMU Bochs-style debug console ("port E9") emulation
*
* Copyright (c) 2003-2004 Fabrice Bellard
* Copyright (c) 2008 Citrix Systems, Inc.
* Copyright (c) Intel Corporation; author: H. Peter Anvin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
use std::io::Write;
fn make_code(ptr: *mut u8) -> usize {
use cranelift::prelude::*;
let mut flag_builder = settings::builder();
flag_builder.set("is_pic", "true").unwrap();
flag_builder.set("opt_level", "speed_and_size").unwrap();
let flags = settings::Flags::new(flag_builder);
:erlang.register(:control, self())
nodes = [
:"node@uhoh",
:"node@VAULT",
:"node@xone",
:"node@blade",
]
code = Macro.to_string(quote do
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index 41ba66062f..255bbc92b1 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -2404,7 +2473,7 @@ do_send(Process *p, Eterm to, Eterm msg, Eterm return_term, Eterm *refp,
}
}
-BIF_RETTYPE send_3(BIF_ALIST_3)
+BIF_RETTYPE erts_internal_send_3(BIF_ALIST_3)

as of november 2021

  • add MOZ_USE_XINPUT2=1 to /etc/environnment
  • turn down mousewheel.default.delta_multiplier_y (I like 50)
  • set apz.fling_min_velocity_threshold to some absurdly high number to disable "flinging"
@devsnek
devsnek / index.html
Last active September 24, 2021 04:28
<!DOCTYPE html>
<html>
<script src="index.js"></script>
</html>
use rp2040_hal as hal;
fn tight_loop_contents() {
unsafe { asm!("nop") }
}
struct FIFO<'p> {
sio: &'p mut hal::pac::SIO,
}
spec.html:791: 1. [id="step-sdo-invocation-example-2"] Perform SyntaxDirectedOperation of _someParseNode_.
spec.html:792: 1. [id="step-sdo-invocation-example-3"] Perform SyntaxDirectedOperation of _someParseNode_ passing *"value"* as the argument.
spec.html:9166: 1. Perform _environment_.InitializeBinding(_name_, _value_).
spec.html:9815: 1. Perform _envRec_.CreateMutableBinding(_N_, *true*).
spec.html:9816: 1. Perform _envRec_.InitializeBinding(_N_, _V_).
spec.html:11272: 1. Perform CreateIntrinsics(_realmRec_).
spec.html:11292: 1. Perform AddRestrictedFunctionProperties(_intrinsics_.[[%Function.prototype%]], _realmRec_).
spec.html:11561: <li>Perform any host-defined preparation steps.</li>
spec.html:11563: <li>Perform any host-defined cleanup steps, after which the execution context stack must be empty.</li>
spec.html:11730: 1. Perform SetRealmGlobalObject(_realm_, _global_, _thisValue_).