Skip to content

Instantly share code, notes, and snippets.

View little-dude's full-sized avatar
🍉

little-dude

🍉
View GitHub Profile
//! This module provides implementations of `ActiveConnector` and `PassiveConnector` that are backed
//! by UNIX socket instead of the TCP sockets that are normally used.
//!
//! Using UNIX sockets instead of TCP ones serves multiple purpose:
//!
//! - creating and connecting to UNIX socket doesn't require specific permissions so using them in
//! tests mean that non-root users can run the tests. With TCP, listening on some ports may
//! require root privileges.
//! - We can easily create namespaces for the sockets used in each test by simply using the
//! filesystem hierarchy which means we avoid the classic "address already in use" pitfall. For
@little-dude
little-dude / gist:f35268a8dae4854d1a7ded48634f5358
Created October 27, 2023 18:42
boot logs (beta drivers, open=true, no prime)
Oct 27 18:11:49 nixos kernel: microcode: microcode updated early to revision 0x119, date = 2023-06-06
Oct 27 18:11:49 nixos kernel: Linux version 6.1.60 (nixbld@localhost) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023
Oct 27 18:11:49 nixos kernel: Command line: initrd=\efi\nixos\fx8sv3s8x8x0hxvv2zliyyskav6avcqb-initrd-linux-6.1.60-initrd.efi init=/nix/store/1fvcp0sicihabfbmzr5xvciyc6b6dxwq-nixos-system-nixos-23.05.4527.60b9db998f71/init loglevel=4 nvidia-drm.modeset=1 nvidia.NVreg_OpenRmEnableUnsupportedGpus=1
Oct 27 18:11:49 nixos kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Oct 27 18:11:49 nixos kernel: BIOS-provided physical RAM map:
Oct 27 18:11:49 nixos kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Oct 27 18:11:49 nixos kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
Oct 27 18:11:49 nixos kernel: BIOS-e820: [mem 0x00000000000a
@little-dude
little-dude / gist:ac00929f2986b852248dead915533649
Created October 27, 2023 18:40
boot logs (beta drivers, open = false, prime enabled)
Oct 27 18:09:40 nixos kernel: microcode: microcode updated early to revision 0x119, date = 2023-06-06
Oct 27 18:09:40 nixos kernel: Linux version 6.1.60 (nixbld@localhost) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023
Oct 27 18:09:40 nixos kernel: Command line: initrd=\efi\nixos\j56gjin0a62vz3lham379w128vxb4i4z-initrd-linux-6.1.60-initrd.efi init=/nix/store/9r3kjp1rxydx343mnhxc6bbnqbdk0573-nixos-system-nixos-23.05.4527.60b9db998f71/init loglevel=4 nvidia-drm.modeset=1
Oct 27 18:09:40 nixos kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Oct 27 18:09:40 nixos kernel: BIOS-provided physical RAM map:
Oct 27 18:09:40 nixos kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Oct 27 18:09:40 nixos kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
Oct 27 18:09:40 nixos kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Oct 27 18
@little-dude
little-dude / gist:37a208197a046690052e530ea8d89fbf
Created October 27, 2023 18:37
boot logs (beta drivers, open = true, prime enabled)
Oct 27 18:08:01 nixos kernel: microcode: microcode updated early to revision 0x119, date = 2023-06-06
Oct 27 18:08:01 nixos kernel: Linux version 6.1.60 (nixbld@localhost) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023
Oct 27 18:08:01 nixos kernel: Command line: initrd=\efi\nixos\fx8sv3s8x8x0hxvv2zliyyskav6avcqb-initrd-linux-6.1.60-initrd.efi init=/nix/store/4sld6651a4mk5pfjnijzvvvnfn9z6ssj-nixos-system-nixos-23.05.4527.60b9db998f71/init loglevel=4 nvidia-drm.modeset=1 nvidia.NVreg_OpenRmEnableUnsupportedGpus=1
Oct 27 18:08:01 nixos kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Oct 27 18:08:01 nixos kernel: BIOS-provided physical RAM map:
Oct 27 18:08:01 nixos kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Oct 27 18:08:01 nixos kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
Oct 27 18:08:01 nixos kernel: BIOS-e820: [mem 0x00000000000a
@little-dude
little-dude / gist:5d3f78e5d985757f26a6e8400a7a965f
Created October 27, 2023 18:34
boot logs (stable drivers, open = false, prime enabled)
Oct 27 18:06:02 nixos kernel: microcode: microcode updated early to revision 0x119, date = 2023-06-06
Oct 27 18:06:02 nixos kernel: Linux version 6.1.60 (nixbld@localhost) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023
Oct 27 18:06:02 nixos kernel: Command line: initrd=\efi\nixos\j56gjin0a62vz3lham379w128vxb4i4z-initrd-linux-6.1.60-initrd.efi init=/nix/store/3kd9x6amdvkafzj3zvszxqa3a9n8l497-nixos-system-nixos-23.05.4527.60b9db998f71/init loglevel=4 nvidia-drm.modeset=1
Oct 27 18:06:02 nixos kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Oct 27 18:06:02 nixos kernel: BIOS-provided physical RAM map:
Oct 27 18:06:02 nixos kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Oct 27 18:06:02 nixos kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
Oct 27 18:06:02 nixos kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Oct 27 18
@little-dude
little-dude / gist:8c2d4b8d93b51906833cbbf9d2e609ed
Created October 27, 2023 18:29
boot logs (stable drivers, open=true, prime enabled)
Oct 27 18:03:48 nixos kernel: microcode: microcode updated early to revision 0x119, date = 2023-06-06
Oct 27 18:03:48 nixos kernel: Linux version 6.1.60 (nixbld@localhost) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 25 10:03:17 UTC 2023
Oct 27 18:03:48 nixos kernel: Command line: initrd=\efi\nixos\fx8sv3s8x8x0hxvv2zliyyskav6avcqb-initrd-linux-6.1.60-initrd.efi init=/nix/store/w6sk34n9w8hzv8q511n3kzcm2ca0n3rb-nixos-system-nixos-23.05.4527.60b9db998f71/init loglevel=4 nvidia-drm.modeset=1 nvidia.NVreg_OpenRmEnableUnsupportedGpus=1
Oct 27 18:03:48 nixos kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
Oct 27 18:03:48 nixos kernel: BIOS-provided physical RAM map:
Oct 27 18:03:48 nixos kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Oct 27 18:03:48 nixos kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
Oct 27 18:03:48 nixos kernel: BIOS-e820: [mem 0x00000000000a

What are the biggest threats to your business/company?

Phishing

My biggest concern is phishing, ie being tricked into giving away sensitive information. As a foreigner, I am an easier target:

  • I don't speak German well enough to detect "weird" patterns in the documents I read that would normally make me suspicious.
## What are the biggest threats to your business/company?
### Phishing
My biggest concern is phishing, ie being tricked into giving away sensitive
information. As a foreigner, I am an easier target:
- I don't speak German well enough to detect "weird" patterns in the documents
I read that would normally make me suspicious.
@little-dude
little-dude / fail.rs
Created February 10, 2022 15:48
valid code that rust fails to compile
#![allow(dead_code)]
struct Input<'a, 'b> {
a: &'a i32,
b: &'b i32,
}
struct Output<'a, 'b> {
a: &'a i32,
b: &'b i32,
use std::convert::Into;
use std::error::Error;
pub trait MyTrait<T> {
type E: Into<Box<dyn Error>>;
fn method(&self, _: T);
fn boxed(self) -> Box<dyn MyTrait<T, E = Self::E>>
where
Self: Sized + 'static,