- To see all 256 possible colors and their IDs:
spectrum_lsspectrum_bls
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
Notes on building https://github.com/NCI-GDC/gdc-client
Following their instructions, get error in building lxml Python package:
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py): started
- Assume
- OpenBLAS installation location given by environment variable
OPENBLAS_DIR$OPENBLAS_DIR/include$OPENBLAS_DIR/lib
- OpenBLAS copiled with dynamic arch, i.e. architecture determined at runtime:
- Edit
Makefile.ruleto set:DYNAMIC_ARCH=1 - Or just do
make DYNAMIC_ARCH=1to build
- Edit
- OpenBLAS installation location given by environment variable
- Configure line
./configure --prefix=/my/local/opt/R/$version \
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
| #!/usr/bin/env python3 | |
| import sys | |
| import os | |
| import re | |
| import pwd | |
| # some of the User_Aliases lines contain buggy usernames | |
| # which have "a" at the end of the username | |
| broken_usernames = set() |
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
| mkdir bin | |
| find . -not -type d -and -not -path '*/\.git/*' -exec git mv {} bin \; |
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
| TIL | |
| - tree [dirname] : shows an ASCII-formatted tree of directory *dirname* |
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
| python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))' |
The following work with Son of Grid Engine (SGE) 8.1.9 as configured on the University of Sheffield's ShARC and Iceberg clusters.
You can use the -hold_jid <<job-name or job-name>> option to make jobs run
only when other jobs have finished, rather than having jobs start and sit
waiting for other tasks to complete.
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
| #! /usr/bin/nft -f | |
| ### localhost | |
| define LOCALHOST = { 127.0.0.1 } | |
| define LOCALHOST6 = { ::1 } | |
| table inet filter { | |
| chain input { | |
| type filter hook input priority 0; policy drop; | |
| ct state invalid counter drop comment "early drop of invalid packets" |
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
| python-lsp-server | |
| importmagic | |
| epc | |
| pycodestyle | |
| mccabe | |
| pyflakes | |
| pylint | |
| rope | |
| yapf | |
| ipython |