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
| #! /opt/conda/bin/python | |
| import requests | |
| import subprocess | |
| THRESHOLD = 85 | |
| DIR = "/mnt/nfs" | |
| URL = "${Feishu_Hook_URL}" | |
| u = subprocess.check_output(f"df -h {DIR}", shell=True).decode() | |
| p = int(u.split()[-2][:-1]) |
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
| VERSION=$1 | |
| LOCAL_GIT=$HOME/git_local | |
| echo "Install openssl locally ..." | |
| cd $HOME | |
| wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz --no-check-certificate | |
| tar -xvzf openssl-1.0.2r.tar.gz | |
| cd openssl-1.0.2r | |
| mkdir builddir | |
| ./config --prefix=$HOME/openssl-1.0.2r/builddir --openssldir=$HOME/openssl-1.0.2r/builddir |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. | |
| Fetch(url string) (body string, urls []string, err error) |
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
| # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 | |
| deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse | |
| # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse | |
| deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse | |
| # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse | |
| deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse | |
| # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse | |
| deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse | |
| # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse |
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
| set nu | |
| set cursorline | |
| colorscheme desert | |
| autocmd Filetype vim let b:vcm_tab_complete='vim' | |
| set cmdheight=1 | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |