This file contains 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
[Unit] | |
Description=Socat Greeting Service | |
Documentation=man:socat(1) | |
[Service] | |
User=root | |
Group=root | |
#ExecStart=/bin/bash -c "/usr/bin/env WSL_HOST=`tail -1 /etc/resolv.conf |cut -d' ' -f2` socat tcp-l:%i,fork,reuseaddr tcp:$WSL_HOST:%i " | |
ExecStart=/bin/bash -c "socat tcp-l:%i,fork,reuseaddr tcp:`tail -1 /etc/resolv.conf |cut -d' ' -f2`:%i" | |
Restart=on-success |
This file contains 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
[Unit] | |
Description=Monitoring the zpool on my machine | |
[Service] | |
ExecStart=/usr/local/bin/zfsMonitor | |
Type=oneshot | |
StandardOutput=journal | |
User=root | |
This file contains 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 python | |
# coding: utf-8 | |
# see https://blog.tpob.xyz/2021/03/24/%E6%9B%B4%E5%BF%AB%E4%B8%8B%E8%BD%BDsra%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%AD%E7%9A%84fastq.gz%E6%96%87%E4%BB%B6/ for more | |
import requests | |
import json | |
import sys | |
accesion=sys.argv[1] | |
This file contains 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 | |
from urllib import request | |
import sys | |
import json | |
TOKEN="16181xxxxx:xxxxxxxxxxxxxxx" | |
CHAT="-100118639xxxx" | |
TEXT=sys.argv[1] | |
SERVER="what ever name you want" |
This file contains 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
@namespace url(http://www.w3.org/1999/xhtml); | |
/*! | |
* custom-yahei-family.css | |
* https://n2o.io/go?page=custom.css | |
* | |
* Copyright 2018 Francis Zhao <francis@n2o.io> | |
* https://n2o.io/license | |
* | |
* Date: 2018-03-11T15:00+06:00 |
This file contains 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
#!/bin/env python3 | |
## the reason why i use urllib is to minimize dependency requiremnts | |
## the reason i dont user serverchan (https://sc.ftqq.com/) is that i want a multiuser support | |
from urllib import request | |
import sys | |
import json | |
## Please Change xxxxxx to the value you have | |
CORPID="xxxxxx" | |
MSGSECRET="xxxxxx" |
This file contains 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
readComputeMatrixResult<-function(dfPath,offset=6){ | |
library(rjson) | |
library(tidyverse) | |
df<-read_tsv(file=dfPath,col_names=F,col_types=cols(),skip=1) | |
metadata<-readLines(gzfile(dfPath),1)%>%str_remove("^@")%>%fromJSON(json_str=.) | |
dfSplited<-list() | |
for(i in 1:length(metadata$sample_labels)){ | |
dfSplited<-c( | |
dfSplited, |
This file contains 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 httpx | |
from bs4 import BeautifulSoup as bs | |
from xml.etree import ElementTree as ET | |
import click | |
import re | |
# see https://blog.tpob.xyz/2021/10/14/%E6%9B%B4%E5%BF%AB%E8%8E%B7%E5%BE%97srr-accession/ | |
# for more information |
This file contains 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
bedcolname<- c( | |
"seqnames", | |
"start", | |
"end", | |
"name", | |
"score", | |
"strand" | |
) |
This file contains 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 Rscript | |
suppressPackageStartupMessages({ | |
library(tidyverse) | |
}) | |
args <- commandArgs(trailingOnly = TRUE) | |
bed <- args[1] | |
distshift <- args[2] %>% as.numeric() | |
chromsize <- args[3] | |
# debug only |