Skip to content

Instantly share code, notes, and snippets.

View Sudrien's full-sized avatar

Sudrien Sudrien

View GitHub Profile
#progress { //it's just a div
display: block;
width: 500px;
position: fixed;
top: 55%;
left: 50%;
margin-left: -250px;
z-index: 17001;
//first attempt tried to animate a multi-stage gradient. Didn't work.
@Sudrien
Sudrien / gist:ae63de67050c644c0b56bddcbc3bdf80
Created November 22, 2019 07:09
lsusb with confirmed malfunctioning macro keys
No memory, lights, bad returns from macro key
Bus 004 Device 004: ID 05e3:0612 Genesys Logic, Inc. Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
[ 0.000000] Linux version 5.3.11-1-MANJARO (builder@a7347f67d605) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Nov 13 12:21:14 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 root=UUID=b5070e8b-01ca-4f3b-86b3-fec022fbf68d rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
udevadm monitor --subsystem-match=usb --property
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[83.220571] add /devices/pci0000:00/0000:00:07.1/0000:08:00.3/usb4/4-2 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:07.1/0000:08:00.3/usb4/4-2
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/004/002
It worked this time?
[ 0.000000] Linux version 5.3.11-1-MANJARO (builder@a7347f67d605) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Nov 13 12:21:14 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.3-x86_64 root=UUID=b5070e8b-01ca-4f3b-86b3-fec022fbf68d rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
@Sudrien
Sudrien / gist:9fea6f27171a514bfd93af62a0405e32
Created November 22, 2019 07:04
udevadm of connection - things work as expected?
udevadm monitor --subsystem-match=usb --property
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[175.798210] add /devices/pci0000:00/0000:00:07.1/0000:08:00.3/usb4/4-2 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:07.1/0000:08:00.3/usb4/4-2
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/004/002
@Sudrien
Sudrien / gist:d8c3b7065da9abac372eb0c8e884f9b3
Created November 22, 2019 07:03
Boot with keyboard on alternate output, then switched
Bus 004 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x05e3 Genesys Logic, Inc.
@Sudrien
Sudrien / gist:f4b6c68f44170022162b5ca30794f5a4
Created November 22, 2019 07:01
Boot with kebour on alternate hub output
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
@Sudrien
Sudrien / gist:36d47d68671949e75cb51e35f8bbf19f
Last active January 9, 2017 22:49
Test https certificates in ruby
#all variables are strings, not files.
# private server key (ssl_server_key)
# maybe with passcode (ssl_passcode)
begin
if ssl_passcode.blank?
OpenSSL::PKey::RSA.new(ssl_server_key)
else
OpenSSL::PKey::RSA.new(ssl_server_key, ssl_passcode)