Skip to content

Instantly share code, notes, and snippets.

@Borillion
Borillion / 10xRandomFiles.sh
Last active October 30, 2018 03:12
Create 10 100 MB files in bash
#!/bin/bash
#Assumes a block size of 512 bytes
for i in {0..10};
do
dd if=/dev/urandom of=file${i}.raw count=204800
done
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00: 22 10 80 14 00 00 00 00 00 00 00 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 34 7c
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 80 00 00 00 10 00 80 00
50: 62 14 34 7c 00 00 00 00 00 00 00 00 00 00 00 00
60: 2c 00 15 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 08 01 00 00 00 00 00 00 00 00 00 00
-[0000:00]-+-00.0 Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
+-00.2 Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
+-01.0 Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
+-01.2-[20-2e]----00.0-[21-2e]--+-01.0-[23]----00.0 Seagate Technology PLC FireCuda 510 SSD
| +-03.0-[25-28]----00.0-[26-28]--+-03.0-[27]----00.0 ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
| | \-07.0-[28]----00.0 ASMedia Technology Inc. ASM1062 Serial ATA Controller
| +-04.0-[29]----00.0 Realtek Semiconductor Co., Ltd. Device 2600
| +-05.0-[2a]----00.0 Realtek Semiconductor Co., Ltd. Killer E3000 2.5GbE Controller
| +-06.0-[2b]----00.0 Intel Corporation Wi-Fi 6 AX200
|
Linux version 5.19.2-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.1 20220730, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 13:48:51 +0000
Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=d55fa944-b93e-4169-b35e-67037d4ba631 rw pcie_ports=native pci=assign-busses,hpbussize=0x33,realloc,hpmmiosize=128M,hpmmioprefsize=16G loglevel=3 quiet
x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
signal: max sigframe size: 3376
[ 0.000000] Linux version 5.19.2-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.1 20220730, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 13:48:51 +0000
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=d55fa944-b93e-4169-b35e-67037d4ba631 rw pcie_ports=native pci=assign-busses,hpbussize=0x33,realloc,hpmmiosize=128M,hpmmioprefsize=16G loglevel=5
[ 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: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
[ 0.000000] x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 3376
[ 0.000000] Linux version 5.19.2-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.1 20220730, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 13:48:51 +0000
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=d55fa944-b93e-4169-b35e-67037d4ba631 rw loglevel=5
[ 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: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
[ 0.000000] x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 3376
Aug 31 18:16:28 bbox-arch kernel: Linux version 5.19.5-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT_DYNAMIC Mon, 29 Aug 2022 15:51:05 +0000
Aug 31 18:16:28 bbox-arch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=d55fa944-b93e-4169-b35e-67037d4ba631 rw
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
Aug 31 18:16:28 bbox-arch kernel: x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
Aug 31 18
[ 0.000000] Linux version 5.19.5-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT_DYNAMIC Mon, 29 Aug 2022 15:51:05 +0000
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=d55fa944-b93e-4169-b35e-67037d4ba631 rw pcie_ports=native pci=assign-busses,hpbussize=0x33,realloc,hpmmiosize=4M,hpmmioprefsize=64G loglevel=3
[ 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: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
[ 0.000000] x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 3376
[2021-12-06T10:34:00+0000] [PACMAN] Running 'pacman -r /mnt -Sy --cachedir=/mnt/var/cache/pacman/pkg --noconfirm base linux linux-firmware linux-headers linux-devel git vim nano'
[2021-12-06T10:34:00+0000] [PACMAN] synchronizing package lists
[2021-12-06T10:34:38+0000] [PACMAN] Running 'pacman -r /mnt -Sy --cachedir=/mnt/var/cache/pacman/pkg --noconfirm base linux linux-firmware linux-headers git vim nano'
[2021-12-06T10:34:38+0000] [PACMAN] synchronizing package lists
[2021-12-06T10:35:13+0000] [ALPM] transaction started
[2021-12-06T10:35:13+0000] [ALPM] installed iana-etc (20211025-1)
[2021-12-06T10:35:13+0000] [ALPM] installed filesystem (2021.11.11-1)
[2021-12-06T10:35:13+0000] [ALPM] installed linux-api-headers (5.12.3-1)
[2021-12-06T10:35:13+0000] [ALPM] installed tzdata (2021e-1)
[2021-12-06T10:35:13+0000] [ALPM] installed glibc (2.33-5)
@Borillion
Borillion / launch.json
Created March 26, 2023 04:16
vscode HelloWorld launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",