Search This Blog

2015-04-29

nix haskell

#as root...

groupadd -r nixbld

for n in $(seq 1 2); do
  useradd -c "Nix build user $n"\
    -d /var/empty\
    -g nixbld -G nixbld\
    -M -N -r -s "$(which nologin)" nixbld$n
done

nis-daemon

# as r...

nix-env --switch-profile /nix/var/nix/profiles/per-user/r

#
#nix-channel --add https://nixos.org/channels/nixpkgs-unstable
#
nix-channel --add https://nixos.org/channels/nixos-14.12
nix-channel --update

nix-env -qa

# list haskell packages...

nix-env -iA nixpkgs.haskellPackages.ghc

nix-env -qaP \* | grep haskellPackages\\. | cat -n
nix-env -qaP \* | grep haskellPackages.xmonad

2015-04-07

bash completion

A basic description is here, a guide to writing your own extensions is here and another (Debian-based) guide is here. And here's a fuller featured introduction to the complete command (the command that facilitates this behaviour).

This functionality in bash is provided by bash-completion and similar functionality is included in zsh.

@ http://stackoverflow.com/questions/3690655/auto-complete-command-line-arguments

2015-04-04

Compaq 135227-001

perhaps p2 compatible...

  Pin 4/Orange: +5v
  Pin 3/Brown: CLK
  Pin 2/Red: DATA
  Pin 1/Black: GND

ps: pin/color is wrong... would follow the colors.