Skip to content

Instantly share code, notes, and snippets.

View goyox86's full-sized avatar

Jose Narvaez goyox86

View GitHub Profile
Section "InputClass"
Identifier "Tablet"
Driver "wacom"
MatchDevicePath "/dev/input/event*"
MatchUSBID "256c:006d"
EndSection
---<<BOOT>>---
Copyright (c) 1992-2021 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 14.0-CURRENT #11 main-n246301-5d1403a79a3e: Sun Apr 25 00:18:15 IST 2021
root@bearbsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
VT(efifb): resolution 1024x768
CPU: AMD Ryzen Threadripper 3970X 32-Core Processor (3693.14-MHz K8-class CPU)
ugen4.1: <0x8086 XHCI root HUB> at usbus4, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.1: <0x1022 XHCI root HUB> at usbus2, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen3.1: <0x1022 XHCI root HUB> at usbus3, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.1: <0x1022 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <0x1022 XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.2: <vendor 0x05e3 USB2.0 Hub> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen3.2: <vendor 0x8087 product 0x0029> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen3.3: <vendor 0x05e3 USB2.0 Hub> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen2.3: <Generic USB Audio> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)
ugen2.4: <ITE Tech. Inc. ITE Device(8595)> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
hostb0@pci0:0:0:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1480 subvendor=0x1022 subdevice=0x1480
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse Root Complex'
class = bridge
subclass = HOST-PCI
none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1481 subvendor=0x1022 subdevice=0x1481
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Starship/Matisse IOMMU'
class = base peripheral
subclass = IOMMU
nexus0
cryptosoft0
aesni0
ram0
I/O memory addresses:
0x0-0x9efff
0x100000-0x3ffffff
0x400f000-0x9df1fff
0xa000000-0x6927dfff
0x6b003000-0x6bffffff
import zio._
import zio.console._
import zio.logging._
import zio.ZEnv
object Main extends App {
type Env = Logging with Console
val program: ZIO[Env, Nothing, Unit] = {
putStrLn("Hello ZIO! from Console") *>
@goyox86
goyox86 / memecahed_bench.sh
Created April 4, 2018 11:06
Results of a memcached ruby clients benchmark
================== memcached ==================
user system total real
memcached:set 0.390000 0.430000 0.820000 ( 2.312446)
memcached:set:plain 0.880000 0.890000 1.770000 ( 4.815406)
memcached:get 0.450000 0.490000 0.940000 ( 6.856909)
memcached:get:plain 0.960000 1.020000 1.980000 ( 14.312675)
memcached:multiget 0.350000 0.180000 0.530000 ( 5.529004)
memcached:missing 0.950000 0.950000 1.900000 ( 4.950421)
memcached:mixed 1.730000 1.960000 3.690000 ( 20.680805)
make virtualbox
cd kernel && INITFS_FOLDER=/home/goyox86/Code/os/redox/redox/build/initfs xargo rustc --lib --target x86_64-unknown-none --release -- -C soft-float -C debuginfo=2 --emit link=../build/libkernel.a
Compiling core v0.0.0 (file:///home/goyox86/Code/os/redox/redox/rust/src/libcore)
error[E0015]: calls in constant functions are limited to constant functions, struct and enum constructors
--> /home/goyox86/Code/os/redox/redox/rust/src/libcore/any.rs:373:25
|
373 | t: unsafe { intrinsics::type_id::<T>() },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
Error[E0015]: calls in constant functions are limited to constant functions, struct and enum constructors
--> /home/goyox86/Code/os/redox/redox/rust/src/libcore/any.rs:373:25
|
373 | t: unsafe { intrinsics::type_id::<T>() },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `core`.
#!/usr/bin/env ruby
require "fileutils"
require "optparse"
GDM_CONFIG_FILE = "/etc/gdm/custom.conf"
def nvidia_to_intel
# Removing bumblebee and friends
system "pacman --noconfirm -S bbswitch-dkms bumblebee primus"