Skip to content

Instantly share code, notes, and snippets.

🍓

Nicolas Goy kuon

🍓
Block or report user

Report or block kuon

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
@kuon
kuon / test.c
Last active Sep 2, 2019
Porting C code to rust
View test.c
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#define FATAL(msg) \
do { \
printf(msg); \
View gist:2c43143e8bb9d2d62637182127f79777
$ fastboot boot twrp-3.2.3-1-enchilada.img 1416ms  lun 10 déc 2018 20:12:28 CET
Downloading 'boot.img'
OKAY [ 0.703s]
booting
OKAY [ 0.072s]
Finished. Total time: 0.789s
View gist:baec1a99a2923ea2cc70dc1220ecacee
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0/nvme/nvme0':
KERNEL=="nvme0"
SUBSYSTEM=="nvme"
View dev.txt
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0/nvme/nvme0':
KERNEL=="nvme0"
SUBSYSTEM=="nvme"
View dev.txt
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0/nvme/nvme0':
KERNEL=="nvme0"
SUBSYSTEM=="nvme"
View dev.txt
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0/nvme/nvme0':
KERNEL=="nvme0"
SUBSYSTEM=="nvme"
View dev.txt
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0/nvme/nvme0':
KERNEL=="nvme0"
SUBSYSTEM=="nvme"
View gist:77eaa59b78ee3ab0173b986a4c09d102
[ 0.000000] Linux version 4.18.6-arch1-1-ARCH (builduser@heftig-4211) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018
[ 0.000000] Command line: \\vmlinuz-linux zfs=zroot/ROOT/default rw threadirqs zfs.zfs_arc_max=5368709120 nvidia-drm.modeset=1 initrd=\initramfs-linux.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
View gist:accf43848129ad1ee66bcc9d9ea69f25
[ 354.412143] usb 2-3: new full-speed USB device number 21 using xhci_hcd
[ 359.661051] usb 2-3: unable to read config index 0 descriptor/all
[ 359.661054] usb 2-3: can't read configurations, error -110
[ 359.787668] usb 2-3: new full-speed USB device number 22 using xhci_hcd
[ 364.993464] usb 2-3: unable to read config index 0 descriptor/all
[ 364.993467] usb 2-3: can't read configurations, error -110
[ 364.993492] usb usb2-port3: attempt power cycle
[ 365.643293] usb 2-3: new full-speed USB device number 23 using xhci_hcd
[ 370.752540] usb 2-3: unable to read config index 0 descriptor/all
[ 370.752543] usb 2-3: can't read configurations, error -110
View ul.log
/usr/lib/python2.7/site-packages/ulauncher/util/desktop/notification.py:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
from gi.repository import Notify
/usr/lib/python2.7/site-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py:6: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gio, Gtk, WebKit2, GLib
2018-07-17 16:27:48,547 | INFO | ulauncher: main() | Ulauncher version 4.1.0.r1
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | GTK+ 3.22.30
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | Is Wayland: False
2018-07-17 16:27:48,548 | INFO | ulauncher: main() | Wayland compatibility: off
2018-07-17 16:27:48,567 | DEBUG | ulauncher.ui.windows.Builder: __init__() | consid
You can’t perform that action at this time.