A collaborator shares some fMRI data with you in a file called other.dtseries.nii. You try to parcellate the data and get this error:
wb_command -cifti-parcellate \
other.dtseries.nii \
parcellation.dlabel.nii \| # Subscribe (watch) all my GitHub repos I'm not already watching. | |
| # "Mine" = everything I own (incl. forks) + org repos I have admin on. | |
| # (GitHub exposes no repo "creator", so admin permission is the proxy for org repos.) | |
| set -euo pipefail | |
| export GH_ME=$(gh api /user -q .login) | |
| # My repos: owned by me (incl. forks) or an org repo I administer. | |
| mine=$(gh api "/user/repos?affiliation=owner,organization_member&per_page=100" --paginate \ | |
| -q '.[] | select(.owner.login==env.GH_ME or .permissions.admin==true) | .full_name' | sort) |
| #! /bin/bash | |
| ## See also https://github.com/nextflow-io/nextflow/discussions/4308 | |
| ## cd to a parent directory for a Nextflow pipeline executation, i.e. contains .nextflow and work directories | |
| ## Find work directories essential to the last pipeline run, as absolute paths | |
| nextflow log last > /tmp/preserve_dirs.txt | |
| ## Find all work directories, as absolute paths |
| #!/bin/bash | |
| # ========================================================================= | |
| # Source fork: https://gist.github.com/denji/fc963b79498328a2145944fc5029cddc | |
| # Source orig: https://gist.github.com/lucaspar/27f5e108b80524b315be10b2a9049817 | |
| # ========================================================================= | |
| # This script will compile and install a static FFmpeg build with | |
| # support for NVENC in Ubuntu. Updated for Ubuntu 24.04.3, | |
| # with NVIDIA Drivers v535.183.01 and CUDA v12.2 with a GPU | |
| # with CUDA capability 8.6 (RTX 3080). Set ccap below if using | |
| # a different GPU. |
| # /etc/modprobe.d/nvidia.conf | |
| # | |
| # NVIDIA Linux kernel module options. | |
| # Last audited against: open-gpu-kernel-modules 595.71.05 | |
| # | |
| # Parameter types: all parameters are NvU32 (uint) unless noted as "string". | |
| # The Linux kernel module_param() system accepts hex notation (0x...) for uint | |
| # parameters; decimal and hex are both valid and equivalent. | |
| # | |
| # Some options are experimental or reserved for internal testing. Defaults may |
| local({ | |
| # modify as needed | |
| modules = c("git", "git-lfs", "gcc") | |
| capt = system2("./capture_module_environment.sh", modules, stdout = TRUE) | |
| split = strsplit(capt, '=', fixed = TRUE) | |
| out = lapply(split, function(v){ | |
| do.call(Sys.setenv, stats::setNames(list(v[2]), v[1])) | |
| }) | |
| message("Added environment variables for ", paste(modules, collapse = ', ')) | |
| }) |
On an Debian/Ubuntu-based system, to install texlive-full without docs and language packs, simply do this:
sudo apt install `sudo apt --assume-no install texlive-full | \
awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`After this, if you wish to install the language packs, selectively install them. E.g.:
| #!/bin/bash | |
| # Update on 2024/05/29 | |
| # 1. use wget to fetch latest frp version when curl was not installed | |
| # 2. Remind users that frp will be run in non-root user | |
| # 3. Add CI | |
| # | |
| # Update on 2024/04/13 | |
| # 1. Improved OS compatibility: try wget and then curl for downloading files. | |
| # | |
| # Update on 2024/01/26 |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Example code for a PyQt image-display widget which Just Works™ | |
| TODO: Split this into a loader wrapper and a widget wrapper so it can be used | |
| in designs which maintain a preloaded queue of upcoming images to improve | |
| the perception of quick load times. | |
| reworke adaptScale() so they have the same type signature. | |
| Note from HeleleMama: |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Example code for a PyQt image-display widget which Just Works™ | |
| TODO: Split this into a loader wrapper and a widget wrapper so it can be used | |
| in designs which maintain a preloaded queue of upcoming images to improve | |
| the perception of quick load times. | |
| """ | |
| from __future__ import (absolute_import, division, print_function, |