Skip to content

Instantly share code, notes, and snippets.

╔════════╤═══════════════════════════════════════════════════════════════════════════════════════╗
║ Bytes │ Description ║
╠════════╪═══════════════════════════════════════════════════════════════════════════════════════╣
║ 8 │ "farbfeld" magic value ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ 4 │ 32-Bit BE unsigned integer (width) ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ 4 │ 32-Bit BE unsigned integer (height) ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ [2222] │ 4⋅8-Bit BE unsigned integers [RGBA] / pixel, interleaved with UTF-32 bytes, row-major ║
jsaddle = pkgs.haskell.packages.ghcjsHEAD.jsaddle.overrideAttrs (old: {
libraryHaskellDepends = old.libraryHaskellDepends + [ self.ghcjs-base ];
});
{ lib, config, ... }:
with lib;
{
options.machine = mkOption {
default = null;
type = types.nullOr types.attr;
};
config = mkIf config.enableFoo {
{ foo ? null
}:
{
config = {
${foo}.things = true;
}
}
{ pkgs ? (import <nixpkgs> {})
, useClang ? false
, binutils ? pkgs.binutils
, lib ? pkgs.lib
, stdenv' ? pkgs.stdenv
, gcc ? pkgs.gcc
, clangStdenv ? pkgs.clangStdenv
, gnumake ? pkgs.gnumake
, llvmPackages ? pkgs.llvmPackages
}:
{ configs, pkgs, lib, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
({
options = {
environment.systemPackages = lib.mkOption {
apply = lib.lists.remove pkgs.nixos-icons;
};
};
{ configs, pkgs, lib, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
({
options = {
environment.systemPackages = lib.mkOption {
apply = lib.lists.remove pkgs.nixos-icons;
};
};
{ configs, pkgs, lib, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
({
options = {
environment.systemPackages = lib.mkOption {
apply = lib.lists.remove pkgs.nixos-icons;
};
};
nixpkgs.config = {
allowUnfree = true;
environment = {...}: {
options = {
systemPackages = lib.mkOption {
apply = old: [];
};
};
};
/* Written 2011 Nicholas J. Kain, released as Public Domain */
.weak _init
.weak _fini
.text
.global _start
_start:
xor %rbp,%rbp /* rbp:undefined -> mark as zero 0 (ABI) */
mov %rdx,%r9 /* 6th arg: ptr to register with atexit() */
pop %rsi /* 2nd arg: argc */
mov %rsp,%rdx /* 3rd arg: argv */