This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.shared.syncthing; | |
name = "syncthing"; | |
label = "net.mitchty"; | |
fulllabel = "${label}.${name}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ set > /tmp/a ~ | |
$ export foo=bar ~ | |
$ set > /tmp/b ~ | |
$ diff -a /tmp/{a,b} ~ | |
24c24 | |
< HISTCMD=4816 | |
--- | |
> HISTCMD=4818 | |
36c36 | |
< LINENO=17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff /etc/zshrc /etc/zshrc.backup-before-nix ~ | |
7,13d6 | |
< | |
< # Nix | |
< if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then | |
< . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | |
< fi | |
< # End Nix | |
< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cabal install idris | |
Resolving dependencies... | |
cabal: Could not resolve dependencies: | |
[__0] trying: idris-1.2.0 (user goal) | |
[__1] trying: fsnotify-0.2.1.2 (dependency of idris) | |
[__2] trying: base-4.11.1.0/installed-4.1... (dependency of idris) | |
[__3] next goal: async (dependency of idris) | |
[__3] rejecting: async-2.2.1 (conflict: idris => async<2.2) | |
[__3] rejecting: async-2.1.1.1 (conflict: base==4.11.1.0/installed-4.1..., | |
async => base>=4.3 && <4.11) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -vLO http://itu.dk/people/drc/idris-mode.gif | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 130.226.142.6... | |
* TCP_NODELAY set | |
* Connected to itu.dk (130.226.142.6) port 80 (#0) | |
> GET /people/drc/idris-mode.gif HTTP/1.1 | |
> Host: itu.dk | |
> User-Agent: curl/7.59.0 | |
> Accept: */* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ld: warning: directory not found for option '-L/nix/store/wkf20p0xlc6lagvfl4sbdl5sqx2c06nj-db-5.3.28/lib' | |
ld: library not found for -ldb-5.3 | |
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) | |
scons: *** [libserf-1.dylib] Error 1 | |
scons: building terminated because of errors. | |
checking for strings.h... yes | |
builder for '/nix/store/ckiyj4b0ly381q83689z28360f8d4qnh-serf-1.3.9.drv' failed with exit code 2 | |
cannot build derivation '/nix/store/3dnhi5n68x1hjqnzafzf3pnrkpjwk4ww-subversion-1.9.7.drv': 1 dependencies couldn't be built | |
cannot build derivation '/nix/store/43qvxj288r54g4k9l5wyj621n0m70w83-git-2.17.0.drv': 1 dependencies couldn't be built | |
cannot build derivation '/nix/store/nqp8hrz4yrza0zdglkdb5pqb8rf64ix7-default.drv': 1 dependencies couldn't be built |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/nix/store/sakgk68ggmg6nby8cfc3icha1i3z95pi-jq-1.5/bin/jq: | |
/nix/store/sakgk68ggmg6nby8cfc3icha1i3z95pi-jq-1.5/lib/libjq.1.dylib (compatibility version 2.0.0, current version 2.4.0) | |
/nix/store/12yshvbpz9hjn7khzzf0ar67kaw6g7f7-Libsystem-osx-10.11.6/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1) | |
@executable_path/../lib/libonig.dylib (compatibility version 0.0.0, current version 0.0.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nexus# for x in $(echo /dev/da?) | |
printf "%s " ${x} && smartctl -a ${x} | grep Power_On_Hours | perl -lane 'printf "%.2f years = %d hours\n", $F[9]/24/365, $F[9];' | |
/dev/da0 2.42 years = 21225 hours | |
/dev/da1 4.64 years = 40676 hours | |
/dev/da2 3.69 years = 32334 hours | |
/dev/da3 5.27 years = 46177 hours | |
/dev/da4 5.28 years = 46263 hours | |
/dev/da5 2.28 years = 19964 hours | |
/dev/da6 4.65 years = 40745 hours | |
/dev/da7 0.10 years = 881 hours |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nexus# for x in $(echo /dev/da?) | |
smartctl -a ${x} | grep Power_On_Hours | perl -lane 'print $F[9];' | |
21217 | |
40669 | |
32326 | |
46169 | |
46256 | |
19956 | |
40737 | |
873 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/nix/var/nix/profiles | |
|-- default -> default-3-link | |
|-- default-1-link -> /nix/store/n63sfkbgknzra60np1xqg1fyaj3fhgm0-user-environment | |
|-- default-2-link -> /nix/store/2j9hfkckmj7ccgl1xag1y1gi3msny14f-user-environment | |
|-- default-3-link -> /nix/store/byxaigz788ss50firxkcysm7mkw5vzy2-user-environment | |
`-- per-user | |
|-- mitch | |
`-- root | |
|-- channels -> channels-1-link | |
`-- channels-1-link -> /nix/store/6kzh2s07wxkbqq2lhfnra296qjvz61j7-user-environment |
NewerOlder