Skip to content

Instantly share code, notes, and snippets.

View soyfrien's full-sized avatar

Louis Waweru soyfrien

View GitHub Profile
@soyfrien
soyfrien / build information
Created September 25, 2020 05:13
screen snip crash info
System Information report written at: 09/25/20 01:11:37
System Name: WINYX
[System Summary]
Item Value
OS Name Microsoft Windows 10 Pro Insider Preview
Version 10.0.20211 Build 20211
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name WINYX
@soyfrien
soyfrien / scrub_start-notify.sh
Created March 3, 2020 22:38
Notifications for scrub start
#!/bin/sh
#
# Send notification in response to a RESILVER_FINISH or SCRUB_FINISH.
#
# By default, "zpool status" output will only be included for a scrub_start
# zevent if the pool is not healthy; to always include its output, set
# ZED_NOTIFY_VERBOSE=1.
#
# Exit codes:
# 0: notification sent
zfs_dbgmesg final few lines:
...
1582798446 space_map.c:91:space_map_load(): object=103 offset=82000 size=478
1582798447 txg.c:202:txg_sync_start(): pool 000000007c9de22b
1582798447 mmp.c:175:mmp_thread_start(): mmp_thread_start pool darkpool
1582798447 txg.c:509:txg_sync_thread(): waiting; tx_synced=0 waiting=0 dp=000000007c9de22b
1582798447 txg.c:655:txg_wait_synced(): txg=23227346 quiesce_txg=0 sync_txg=23227346
1582798447 txg.c:659:txg_wait_synced(): broadcasting sync more tx_synced=0 waiting=23227346 dp=000000007c9de22b
1582798447 txg.c:592:txg_quiesce_thread(): txg=23227346 quiesce_txg=23227347 sync_txg=23227346
1582798447 txg.c:600:txg_quiesce_thread(): quiesce done, handing off txg 23227346
ZFS_DBGMSG(zdb):
spa_import: importing tank
spa_load(tank, config untrusted): LOADING
file vdev '/home/pzakharov/dsks/disk1': best uberblock found for spa tank. txg 25
file vdev '/home/pzakharov/dsks/disk1': label discarded as txg is too large (63 > 25)
file vdev '/home/pzakharov/dsks/disk1': failed to read label config. Trying again without txg restrictions.
spa_load(tank, config untrusted): using uberblock with txg=25
spare-2 vdev (guid 1678298609174670425): vdev_copy_path: vdev type mismatch: spare != file
spa_load(tank, config untrusted): provided vdev tree:
@soyfrien
soyfrien / zdb-epdt.txt
Created February 13, 2020 04:52
zdb -ep /dev/disk/by-id/ -d -t 23227134 darkpool
# zdb -ep /dev/disk/by-id/ -d -t 23227134 darkpool
Dataset mos [META], ID 0, cr_txg 4, 10.7G, 20838 objects
Dataset darkpool/data@zfs-auto-snap_hourly-2020-02-01-0817 [ZPL], ID 47906, cr_txg 23220069, 27.7T, 42636046 objects
Dataset darkpool/data@zfs-auto-snap_hourly-2020-02-01-1217 [ZPL], ID 48181, cr_txg 23222982, 27.7T, 42636046 objects
Dataset darkpool/data@zfs-auto-snap_daily-2020-02-01-1125 [ZPL], ID 45904, cr_txg 23222356, 27.7T, 42636046 objects
Dataset darkpool/data@zfs-auto-snap_hourly-2020-02-01-0217 [ZPL], ID 48289, cr_txg 23215713, 27.7T, 42636046 objects
Dataset darkpool/data@zfs-auto-snap_weekly-2019-12-22-1147 [ZPL], ID 119320, cr_txg 22583563, 26.8T, 41227251 objects
Dataset darkpool/data@zfs-auto-snap_monthly-2019-08-01-1052 [ZPL], ID 28868, cr_txg 20065925, 22.5T, 33357649 objects
Dataset darkpool/data@zfs-auto-snap_frequent-2020-02-01-1730 [ZPL], ID 46054, cr_txg 23226774, 27.7T, 42636046 objects
Dataset darkpool/data@zfs-auto-snap_daily-2020-01-12-1128 [ZPL], ID 17483, cr_txg 22872042, 27
louis@elvis:/opt/SingularityImages/github/C-PAC$ sudo docker build -t c-pac .
Sending build context to Docker daemon 34.52MB
Step 1/46 : FROM neurodebian:xenial-non-free
xenial-non-free: Pulling from library/neurodebian
e80174c8b43b: Pull complete
d1072db285cc: Pull complete
858453671e67: Pull complete
3d07b1124f98: Pull complete
7f9a26d0b8c4: Pull complete
c1a6f63b46b1: Pull complete
$ dmesg -T
[Fri Nov 8 04:50:43 2019] microcode: microcode updated early to revision 0x43, date = 2019-03-01
[Fri Nov 8 04:50:43 2019] Linux version 4.15.0-66-generic (buildd@lgw01-amd64-044) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 (Ubuntu 4.15.0-66.75-generic 4.15.18)
[Fri Nov 8 04:50:43 2019] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-66-generic root=UUID=6866db65-84c8-11e8-bbdb-1866da66ac98 ro cgroup_enable=memory swapaccount=1
[Fri Nov 8 04:50:43 2019] KERNEL supported cpus:
[Fri Nov 8 04:50:43 2019] Intel GenuineIntel
[Fri Nov 8 04:50:43 2019] AMD AuthenticAMD
[Fri Nov 8 04:50:43 2019] Centaur CentaurHauls
[Fri Nov 8 04:50:43 2019] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[Fri Nov 8 04:50:43 2019] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
$ dev/disk# zpool status -v
pool: darkpool
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub in progress since Fri Nov 8 04:52:09 2019
1004G scanned out of 47.5T at 81.4M/s, 166h22m to go
@soyfrien
soyfrien / NSMB.CONF(5)
Last active October 29, 2019 04:06
The manpage for masOS 10.15
NSMB.CONF(5) BSD File Formats Manual NSMB.CONF(5)
NAME
nsmb.conf -- configuration file for SMB requests
DESCRIPTION
The nsmb.conf file contains information about the computers and shares or mount points for the SMB network protocol.
The configuration hierarchy is made up of several sections, each section containing a few or several lines of parameters and their assigned values.
Each of these sections must begin with a section name enclosed within square brackets, similar to:
This file has been truncated, but you can view the full file.
$ sudo fmriprep-docker -i poldracklab/fmriprep:latest -u 12218:12218 -w /louis/temp-151rc1-run2 /louis/raw_bids /louis/derivatives-151rc1-run2 participant --fs-license-file=/usr/local/freesurfer/license.txt --ignore slicetiming --output-spaces MNI152NLin2009cAsym:res-2 T1w fsaverage5 --participant-label 12345
[sudo] password for louis:
RUNNING: docker run --rm -it -e DOCKER_VERSION_8395080871=18.09.7 -u 12218:12218 -v /usr/local/freesurfer/license.txt:/opt/freesurfer/license.txt:ro -v /louis/raw_bids:/data:ro -v /louis/derivatives-151rc1-run2:/out -v /louis/temp-151rc1-run2:/scratch poldracklab/fmriprep:latest /data /out participant --ignore slicetiming --output-spaces MNI152NLin2009cAsym:res-2 T1w fsaverage5 --participant-label 12345 -w /scratch
Making sure the input data is BIDS compliant (warnings can be ignored in most cases).
1: [WARN] The recommended file /README is missing. See Section 03 (Modality agnostic files) of the BIDS specification. (code: 101 - README_FILE_MISSING)
Please visit https://neu