Skip to content

Instantly share code, notes, and snippets.

View shenweiyan's full-sized avatar
🎯
Focusing

Steven Shum shenweiyan

🎯
Focusing
View GitHub Profile
@shenweiyan
shenweiyan / 2021-11-16-301-redirects.md
Created July 20, 2023 06:42
正常-markdown-格式文件
title urlname author date updated
个人域名跳转至语雀个人主页
2021-11-16-301-redirects
章鱼猫先生
2021-11-16 11:28:29
2023-04-07 14:00:08

📢 域名 https://weiyan.cc 就是基于本文章中的 "无服务器" 步骤实现的个人域名跳转至语雀个人主页! >

@shenweiyan
shenweiyan / 2021-11-16-301-redirects.md
Last active July 20, 2023 06:40
异常-markdown-格式文件
title urlname author date updated
个人域名跳转至语雀个人主页
2021-11-16-301-redirects
章鱼猫先生
2021-11-16 11:28:29
2023-04-07 14:00:08

📢 域名 https://weiyan.cc 就是基于本文章中的 "无服务器" 步骤实现的个人域名跳转至语雀个人主页! >

#!/bin/bash
# function Extract for common file formats
function extract {
if [ -z "$1" ]; then
# display usage if no parameters given
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
else
if [ -f "$1" ] ; then
NAME=${1%.*}
@shenweiyan
shenweiyan / start_cgi_http_server.sh
Last active September 9, 2019 03:41
File Upload CGI Script written in Python.
#!/bin/bash
mkdir ./cgi-bin/
cp upload.cgi ./cgi-bin/
chmod +x ./cgi-bin/upload.cgi
mkdir ./upload/
python -m CGIHTTPServer 8080