Skip to content

Instantly share code, notes, and snippets.

🗓
Year of FreeBSD on the Desktop

myfreeweb

🗓
Year of FreeBSD on the Desktop
Block or report user

Report or block myfreeweb

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
View wf-alias-optional.patch
diff --git i/include/wayfire/config/option-types.hpp w/include/wayfire/config/option-types.hpp
index ec49728..7e30648 100644
--- i/include/wayfire/config/option-types.hpp
+++ w/include/wayfire/config/option-types.hpp
@@ -1,12 +1,24 @@
#pragma once
+#if __has_include(<optional>)
+#include <optional>
+#else
View i915_gem_userptr_ioctl.trace
CPU FUNCTION
1 -> i915_gem_userptr_ioctl arg: fffffe00cd374000
1 | i915_gem_userptr_ioctl:entry
1 -> linux_access_ok
1 <- linux_access_ok
1 -> i915_gem_object_alloc
1 -> uma_zalloc_arg
1 -> memset
1 -> memset_erms
1 <- memset_erms
View haskell-style-existential.idr
module Main
data Printable : Type where
Pr : Show a => a -> Printable
Show Printable where
show (Pr p) = show p
hello : (f: Bool) -> Printable
hello False = Pr 10
@myfreeweb
myfreeweb / index.js
Created Jul 25, 2019
oxipng wasm wrapper
View index.js
(async function () {
await wasm_bindgen('oxipng_wasm_bg.wasm')
window.oxi = wasm_bindgen
oxi.init()
const resp = await fetch('y.png')
const arb = await resp.arrayBuffer()
const uarr = new Uint8Array(arb)
console.log(uarr)
const t0 = performance.now()
window.result = oxi.optimize_from_memory(uarr)
View input.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* Copyright (c) 1999-2002 Vojtech Pavlik
*
* 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.
*/
#ifndef _UAPI_INPUT_H
#define _UAPI_INPUT_H
@myfreeweb
myfreeweb / dmesg
Created Jun 20, 2018
asus-duma postmarketOS first boot dmesg
View dmesg
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.4.113-ElementalX-ME302KL-7.02 (pmos@varch) (gcc version 6.4.0 (Alpine 6.4.0) ) #1-postmarketOS SMP PREEMPT Wed Jun 20 11:36:41 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [511f06f0] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine: QCT APQ8064 DUMA
[ 0.000000] Truncating memory at 0x90000000 to fit in 32-bit physical address space
[ 0.000000] memory pool 3 (start fe9ff000 size 1600000) initialized
[ 0.000000] Hardboot page reserved at 0x88C00000
[ 0.000000] Initialized persistent memory from 88d00000-88dfffff
@myfreeweb
myfreeweb / left-pad.mlw
Last active Apr 26, 2018
Left-pad verified with Why3
View left-pad.mlw
module LeftPad
use import int.Int
use import int.MinMax
use import string.Char as C
use import map.Map as M
use import string.String as S
use import string.Buffer as B
(* string.Buffer.contents only does the length for some reason *)
val buf2str (b: B.t) : string
@myfreeweb
myfreeweb / Makefile
Created Mar 26, 2018
Linker removes struct :(
View Makefile
libstruct.o: libstruct.c libstruct.h
cc -c -o $@ libstruct.c
libinit.o: libinit.c libinit.h
cc -c -o $@ libinit.c
lib.a: libstruct.o libinit.o
ar rcs $@ libstruct.o libinit.o
app: app.c lib.a
@myfreeweb
myfreeweb / gist:261f9cfd6002f4cf024553a08ed9434d
Created Feb 26, 2018
dmesg amdgpu 4.11 polaris10 debug vulkaninfo
View gist:261f9cfd6002f4cf024553a08ed9434d
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #8 3b240d54fe8(master): Mon Feb 26 14:20:17 MSK 2018
greg@ruunvald.lan:/usr/obj/usr/src/amd64.amd64/sys/DESKTOP amd64
FreeBSD clang version 6.0.0 (branches/release_60 325330) (based on LLVM 6.0.0)
VT(vga): resolution 640x480
CPU: AMD Ryzen 7 1700 Eight-Core Processor (3000.09-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1
View aw-thermal.diff
diff --git i/sys/arm/allwinner/aw_thermal.c w/sys/arm/allwinner/aw_thermal.c
index 5143cda95fb..f8db25a9443 100644
--- i/sys/arm/allwinner/aw_thermal.c
+++ w/sys/arm/allwinner/aw_thermal.c
@@ -248,9 +248,9 @@ static const struct aw_thermal_config h3_config = {
};
static struct ofw_compat_data compat_data[] = {
- { "allwinner,sun8i-a83t-ts", (uintptr_t)&a83t_config },
- { "allwinner,sun8i-h3-ts", (uintptr_t)&h3_config },
You can’t perform that action at this time.