Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am atongsa on github.
  • I am atongsa (https://keybase.io/atongsa) on keybase.
  • I have a public key ASAkOihiJoUZ0xQ_WJ3HLwbhtGOG_10vUegVtzoOkHyxnwo

To claim this, I am signing this object:

@atongsa
atongsa / error.clusterprofiler.r
Created June 30, 2022 14:00
Error in download.KEGG.Path(species) :
solved:
add
options(clusterProfiler.download.method = "wget")
before downloading
https://github.com/rustocean/Rust-PDF/blob/master/The%20Rust%20Programming%20Language.pdf
@atongsa
atongsa / error.cant_access_github.git
Last active July 16, 2022 09:42
cant access github
change
git clone https://github.com/u/repo.git
to
git clone git://github.com/u/repo.git
or
git config --unset http.proxy
git config --unset https.proxy
@atongsa
atongsa / run.get_snp_from_msa.sh
Created July 19, 2022 08:37
get alleles from multiple sequence alignment
msa:
>COL1A1_longi
xFSAxxxxxxxxxxxxxxxxxxxxxxG
>COL1A1_African64.aa:_4
MFSFVDLRLLLLLAATALLTHGQEEG-
shell_code:
conda install -c bioconda snp-sites
snp-sites -rv -o t.vcf t.fa
@atongsa
atongsa / bug.archlinux_left_mouse_cant_select.md
Created August 8, 2022 08:36
archlinux, left mouse cant select and click.

when i update my archlinux the left mouse cant work

solve:

  • reboot # and it will break at some bug time, maybe associate with google-chrome(just maybe)
  • dont use wireless mouse, just use wire mouse.
@atongsa
atongsa / share.link_2_the_tg_channel.md
Created August 19, 2022 02:57
the ultimate question discussion space
@atongsa
atongsa / met.arch_ins_deb.md
Created September 17, 2022 08:09
arch linux install debbian/ubuntu packages not in aur
yay -S debtap
sudo debtap -u
debtap package_name.deb
sudo pacman -U package_name.pkg
@atongsa
atongsa / complexheatmap.add_rectangle.r
Last active November 17, 2022 02:25
add rectangle to your complexheatmap body
library(ComplexHeatmap)
pdf('test.pdf')
ht1 <- Heatmap(mat, name="ht1")
a <- draw(ht1)
decorate_heatmap_body("ht1", {
grid.rect(x=0.5, y=0.6, width=0.2, height=0.5, gp = gpar(lty = 2, lwd = 2))
})
dev.off()
@atongsa
atongsa / run.install_glibc.sh
Created February 6, 2023 02:53
install glibc from source
git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout glibc-2.26
mkdir build
cd build
export glibc_install="$(pwd)/install"
../configure --prefix "$glibc_install"
make -j 4 #`nproc`
make install -j 4 #`nproc`