Skip to content

Instantly share code, notes, and snippets.

View Binary-Eater's full-sized avatar

Rahul Rameshbabu Binary-Eater

View GitHub Profile
Script started on Wed Oct 18 20:33:11 2023
binary-eater@BINARY-EATER-DEV:~ $
exit
kk
cd work/
lsblk
sudo /bin/sh crochet.sh -v -b RaspberryPi3
cd ..
rg 'mount\.freebsd' | less
cd ..
@Binary-Eater
Binary-Eater / rpi3_freebsd_buildworld.log
Created September 24, 2023 16:39
FreeBSD aarch64 build failure related to fp support for 32-bit compat
This file has been truncated, but you can view the full file.
--- buildworld ---
make[1]: "/usr/src/Makefile.inc1" line 337: SYSTEM_COMPILER: Determined that CC=cc matches the source tree. Not bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 342: SYSTEM_LINKER: Determined that LD=ld matches the source tree. Not bootstrapping a cross-linker.
--- buildworld_prologue ---
--------------------------------------------------------------
>>> World build started on Sat Sep 23 14:49:18 PDT 2023
--------------------------------------------------------------
--- _cleanworldtmp ---
--------------------------------------------------------------
@Binary-Eater
Binary-Eater / .mailrc
Created July 29, 2023 21:40
Mail alias file for kernel dev
alias input [email protected]
alias jkosina "Jiri Kosina <[email protected]>"
alias btissoires "Benjamin Tissoires <[email protected]>"
alias kernel [email protected]
@Binary-Eater
Binary-Eater / .dir-locals.el
Created July 29, 2023 18:00
Emacs directory local settings for kernel development
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c++-mode . ((clang-format-style . "file")
(tab-width . 8)
(c-basic-offset . 8)
(indent-tabs-mode . t)))
(c-mode . ((clang-format-style . "file")
(tab-width . 8)
(c-basic-offset . 8)
@Binary-Eater
Binary-Eater / default.nix
Created July 29, 2023 17:58
Nix shell for linux kernel development
{ pkgs ? import <nixpkgs> {}, unstable ? import <nixos-unstable> {} }:
let
binutils = unstable.binutils; # need binutils >=2.39 for DWARF5 debuginfo
llvmPackages_14 = unstable.llvmPackages_14;
sphinx = unstable.sphinx; # need sphinx >=5.x.x due to https://github.com/sphinx-doc/sphinx/issues/10495
in
pkgs.mkShell {
SPHINXBUILD = "${pkgs.sphinx}/bin/sphinx-build";
@Binary-Eater
Binary-Eater / composite_type_read_test.c
Last active August 23, 2022 22:30
Snippet for testing Coverity Scan of composite type reads
enum test_union_type {
NONE,
SHORT,
INTEGER
};
union test_union {
struct {};
short s;
int i;
@Binary-Eater
Binary-Eater / pingpong.go
Last active December 15, 2021 06:50
Go ping pong with timeout context
package main
import (
"context"
"fmt"
"sync"
"time"
)
func pingPong(ctx context.Context, player string, wg *sync.WaitGroup, in <-chan struct{}, out chan<- struct{}) {
@Binary-Eater
Binary-Eater / encryptedNixos.md
Last active December 7, 2020 07:05 — forked from whoizit/encryptedNixos.md
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once

Installation media setup

Download unstable NixOS graphical live iso (cause vim on graphical live iso and easier to read this guide in browser) and write to USB stick.

lsblk
umount /dev/sdX1
dd if=path/to/nixos-graphical-unstable-x86_64-linux.iso of=/dev/sdX bs=10M oflag=direct status=progress