Skip to content

Instantly share code, notes, and snippets.

View dhess's full-sized avatar

Drew Hess dhess

View GitHub Profile
echo cape-universal > /sys/devices/platform/bone_capemgr/slots
# gpio51
config-pin p9_16 high
echo 1 > /sys/class/gpio/gpio51/active_low
# gpio3
config-pin p9_21 high
echo 1 > /sys/class/gpio/gpio3/active_low
0: P----- -1 CBB-Relay,00A0,Logic_Supply,CBB-Relay
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universal
@dhess
dhess / dmesg
Created November 15, 2017 23:21
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.59 (nixbld@localhost) (gcc version 6.4.0 (GCC) ) #1-NixOS SMP PREEMPT Thu Jan 1 00:00:01 UTC 1970
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] free_area_init_node: node 0, pgdat c14e1dc0, node_mem_map df961000
[ 0.000000] Normal zone: 1148 pages used for memmap
$ darwin-rebuild switch
building the system configuration...
writing defaults...
setting up user launchd services...
checking for hydra group... yes
checking for hydra user... no, created
2018-01-04 16:41:05.117 sysadminctl[4390:88133] Failed to authenticate with SystemAdministration framework.
@dhess
dhess / nix-repl
Last active January 6, 2018 00:20
$ nix-repl jobsets/release.nix
Welcome to Nix version 1.11.16. Type :? for help.
Loading ‘jobsets/release.nix’...
Added 2 variables.
nix-repl> ansible-env
{ }
nix-repl>
<<ghc: 1338865608 bytes, 246 GCs, 30276086/102572440 avg/max bytes residency (8 samples), 211M in use, 0.000 INIT (0.000 elapsed), 19.478 MUT (56.294 elapsed), 4.512 GC (4.668 elapsed) :ghc>>
<<ghc: 3660834260 bytes, 305 GCs, 40960988/113517708 avg/max bytes residency (9 samples), 250M in use, 0.000 INIT (0.000 elapsed), 22.212 MUT (76.508 elapsed), 6.243 GC (6.394 elapsed) :ghc>>
"inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -this-unit-id ghc-8.2.2 -hide-all-packages -i -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/ty
● nix-daemon.service - Nix Daemon
Loaded: loaded (/nix/store/0g72whyvcgc3vxmgkvahcy259c2gs2v4-nix-1.11.16/lib/systemd/system/nix-daemon.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/445hmm9m4kiynshcgdrnn7dnqjpgcgxf-system-units/nix-daemon.service.d
└─overrides.conf
Active: active (running) since Thu 2018-01-04 17:53:50 PST; 4 days ago
Main PID: 3642 (nix-daemon)
Tasks: 11 (limit: 4915)
CGroup: /system.slice/nix-daemon.service
├─3642 nix-daemon --daemon
├─5918 nix-daemon 4335
{ stdenv, makeWrapper, pkgs, perl, perlPackages, samba, zfs }:
let
in
stdenv.mkDerivation rec {
name = "bo-peep";
version = "1.0";
src = ./.;
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
( test -e Makefile.ANGLE.DerivedSources || /nix/store/49pnn4caaxqh2z140s49isf4szrjanps-qtbase-5.9.3-dev/bin/qmake -o Makefile.ANGLE.DerivedSources /private/tmp/nix-build-qtwebkit-5.9.1.drv-1/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE/DerivedSources.pri PREFIX=/nix/store/jnyqim10jlv9il3z755m2pmyhpkhmzyx-qtwebkit-5.9.1 NIX_OUTPUT_OUT=/nix/store/jnyqim10jlv9il3z755m2pmyhpkhmzyx-qtwebkit-5.9.1 NIX_OUTPUT_DEV=/nix/store/47jrk0nhpnxy2fk07khjhmgc501bmd2n-qtwebkit-5.9.1-dev NIX_OUTPUT_BIN=/nix/store/jnyqim10jlv9il3z755m2pmyhpkhmzyx-qtwebkit-5.9.1 NIX_OUTPUT_DOC=/nix/store/47jrk0nhpnxy2fk07khjhmgc501bmd2n-qtwebkit-5.9.1-dev/share/doc/qt-5.9 NIX_OUTPUT_QML=/nix/store/jnyqim10jlv9il3z755m2pmyhpkhmzyx-qtwebkit-5.9.1/lib/qt-5.9/qml NIX_OUTPUT_PLUGIN=/nix/store/jnyqim10jlv9il3z755m2pmyhpkhmzyx-qtwebkit-5.9.1/lib/qt-5.9/plugins ) && make -f Makefile.ANGLE.DerivedSources
make[2]: Entering directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-1/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
flex --noline --