Skip to content

Instantly share code, notes, and snippets.

@atongsa
atongsa / error.github_443.md
Created July 5, 2023 12:38
git: Failed to connect to github.com port 443

github fetch error 443

  • i met this error when fetch from github
  • below code solve my problem

git config --global --unset http.proxy

@atongsa
atongsa / error.git.HTTP2_stream.md
Last active February 28, 2023 07:10
HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

i dont know the reason, but

git config --global http.version HTTP/1.1

works for me

@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`
@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 / 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 / share.link_2_the_tg_channel.md
Created August 19, 2022 02:57
the ultimate question discussion space
@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 / 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 / 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
https://github.com/rustocean/Rust-PDF/blob/master/The%20Rust%20Programming%20Language.pdf