Skip to content

Instantly share code, notes, and snippets.

View hisplan's full-sized avatar
🎯
Focusing

Jaeyoung Chun hisplan

🎯
Focusing
  • Memorial Sloan Kettering Cancer Center
  • New York, NY
  • 12:31 (UTC -04:00)
View GitHub Profile
@hisplan
hisplan / how-to-cite-chatgpt.md
Created May 29, 2023 12:30
How to Cite ChatGPT
@hisplan
hisplan / wsl2-installation-incomplete.md
Last active March 10, 2023 15:04
WSL 2 installation is incomplete.

Troubleshooting

WSL 2 installation is incomplete.

If you're getting the above error message while installing Docker on Windows, please follow the instructions below:

Press Windows logo key, type cmd, select Run as administrator to open a new terminal window.

@hisplan
hisplan / euc-kr-to-utf-8.sh
Created February 24, 2023 06:31
euc-kr to UTF-8
iconv -c -f euc-kr -t utf-8 src.txt > dst.txt
@hisplan
hisplan / determine_python_32_or_64.py
Created December 6, 2022 06:41
Check if Python is running in 32-bit or 64-bit
# check if Python is running in 32-bit or 64-bit
#
# python -c "import struct;print(struct.calcsize('P')*8)"
#
import struct
# will return 32 for 32-bit, 64 for 64-bit
print(struct.calcsize("P") * 8)
@hisplan
hisplan / hgnc-rest-service-via-wget.md
Last active June 10, 2020 10:35
HGNC REST Service

HGNC REST Service

HGNC: Hugo Gene Nomenclature Committee

https://www.genenames.org/help/rest/

tl;dr;

  • fetch: returns all the fields, does not accept wild cards or multiple queries)
  • search: returns all possible entries with only the fields hgnc_id, symbol and score.
@hisplan
hisplan / ensembl-gtf-file-diffs.md
Last active April 12, 2023 16:34
Ensembl GTF file differences
@hisplan
hisplan / install-tree.sh
Created February 20, 2020 14:32
Install tree on Linux
#!/bin/bash -e
# http://mama.indstate.edu/users/ice/tree/
wget http://mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz
tar xvzf tree-1.8.0.tgz
cd tree-1.8.0
make
make install prefix=$HOME
@hisplan
hisplan / install-htop.sh
Last active February 20, 2020 14:33
Install htop
#!/bin/bash -e
# http://hisham.hm/htop/
yum groupinstall "Development Tools"
yum install ncurses ncurses-devel
wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
tar xvfvz htop-2.0.2.tar.gz
cd htop-2.0.2
@hisplan
hisplan / cleanup.sh
Created January 25, 2020 21:58
Resolve Docker no space left issue
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f "dangling=true")
docker volume rm $(docker volume ls -qf dangling=true)