Skip to content

Instantly share code, notes, and snippets.

@nabijaczleweli
nabijaczleweli / 00-entry-directory.install
Last active May 5, 2021
Fedora 34 all available /usr/lib/kernel/install.ds
View 00-entry-directory.install
#!/usr/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
View index.txt
klapki(8) klapki.8.ronn
SHA1(3ssl) https://manpages.debian.org/buster/libssl-doc/SHA1.3ssl.en.html
efibootmgr(8) https://manpages.debian.org/buster/efibootmgr/efibootmgr.8.en.html
efivar(1) https://manpages.debian.org/buster/efivar/efivar.1.en.html
execl(3) https://manpages.debian.org/buster/manpages-dev/execl.3.en.html
gethostname(2) https://manpages.debian.org/buster/manpages-dev/gethostname.2.en.html
memfd_create(2) https://manpages.debian.org/buster/manpages-dev/memfd_create.2.en.html
kernel-install(8) https://www.freedesktop.org/software/systemd/man/kernel-install.html
@nabijaczleweli
nabijaczleweli / journal-working.acpi
Last active Apr 23, 2020
Journals and reduced diff between szarotka's acpi=off noapic boot and normal, wherein the former detects PCI Slots and NICs are named ens2f[01] and the latter does not and they get named enp32s0f[01]; https://twitter.com/nabijaczleweli/status/1252437039175229440
View journal-working.acpi
-- Logs begin at Fri 2019-11-29 17:32:36 CET, end at Tue 2020-04-21 03:43:25 CEST. --
Apr 21 03:36:47 szarotka kernel: Linux version 5.5.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 9.3.0 (Debian 9.3.0-10)) #1 SMP Debian 5.5.13-2.1~szarotka2 (2020-04-15)
Apr 21 03:36:47 szarotka kernel: Command line: BOOT_IMAGE=/vmlinuz-5.5.0-1-amd64 root=UUID=d9e8441a-1a97-47af-b002-d764ac46121b ro syscall.x32=y pci_hotplug.debug=Y pci_hotplug.debug_acpi=Y pciehp.pciehp_poll_mode=Y pciehp.pciehp_poll_time=1
Apr 21 03:36:47 szarotka kernel: x86/fpu: x87 FPU will use FXSAVE
Apr 21 03:36:47 szarotka kernel: BIOS-provided physical RAM map:
Apr 21 03:36:47 szarotka kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Apr 21 03:36:47 szarotka kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Apr 21 03:36:47 szarotka kernel: BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
Apr 21 03:36:47 szarotka kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000df7b1cff] usable
A
@nabijaczleweli
nabijaczleweli / README.md
Last active Jul 19, 2021
Do not dumb here, not dumb area
View README.md

Warning: Do Not Dumb Here – Not Dumb Area

Overall design stolen from this video, Japanese stolen from this comment.

On transparency

A5 size.

View wiggly-circle.cpp
// The MIT License (MIT)
// Copyright (c) 2019 nabijaczleweli
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
@nabijaczleweli
nabijaczleweli / content
Last active Aug 12, 2018
[PL/EN] Memo regarding upcoming nomenclatural changes of nabijaczleweli Ltd. subsidiaries
View content
[Wersja Polska poniżej.]
FOR IMMEDIATE PRIVATE AND PUBLIC RELEASE
IN EFFECT: 11 AUGUST 2018, 12 NOON
SEE ATTACHMENT FOR AUTHENTICITY VERIFICATION
Shareholders, friends, biased and unbiased observers,
We'd like to begin by thanking you for your continued support for and trust in the nabijaczleweli brand and its subsidiaries.
@nabijaczleweli
nabijaczleweli / scrap_work.sh
Created Jan 18, 2018
Chapterwise scraper for archiveofourown, w/image support and normalisation.
View scrap_work.sh
#!/bin/bash
tempdir=""
if [[ "$TEMP" ]] && [[ ! "$tempdir" ]]; then tempdir="$TEMP/archiveofourown-scrapper"; fi
if [[ "$TMP" ]] && [[ ! "$tempdir" ]]; then tempdir="$TMP/archiveofourown-scrapper"; fi
if ! [[ "$tempdir" ]]; then
echo "Couldn't find temprary directory" > 1
exit 1
fi
mkdir -p "$tempdir"
@nabijaczleweli
nabijaczleweli / bench.rs
Created Oct 8, 2017
Lookup-table vs format!()-based [u8]->String
View bench.rs
#![feature(test)]
extern crate test;
use std::iter::FromIterator;
use test::Bencher;
pub fn hash_string_format(bytes: &[u8]) -> String {
use std::fmt::Write;
let mut result = String::with_capacity(bytes.len() * 2);