Skip to content

Instantly share code, notes, and snippets.

View alanhg's full-sized avatar
⌨️
Focusing

Alan.He alanhg

⌨️
Focusing
View GitHub Profile
@alanhg
alanhg / pinduoduo.user.js
Created December 28, 2023 13:52
拼多多脚本,方便发送消息
// ==UserScript==
// @name 拼多多增强脚本
// @namespace http://tampermonkey.net/
// @version 2023-12-28
// @description try to take over the world!
// @author Alan He
// @match https://mobile.yangkeduo.com/chat_detail.html*
// @icon https://www.google.com/s2/favicons?sz=64&domain=pinduoduo.com
// @grant none
// @run-at document-end
@alanhg
alanhg / text-select.user.js
Created December 24, 2023 07:09
文本选中支持
// ==UserScript==
// @name 文本选中支持
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://m.163.com/*/article/*
// @match https://www.baidu.com/bh/dict/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=163.com
// @grant none
@alanhg
alanhg / video-speed.user.js
Created December 24, 2023 05:11
视频变速 for Tampermonkey
// ==UserScript==
// @name 视频变速
// @namespace http://tampermonkey.net/
// @version 2023-12-23
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/watch*
// @match https://peixun.amac.org.cn/**
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @run-at document-start
@alanhg
alanhg / ecitic-user.js
Created December 24, 2023 05:08
中信银行贷款信息统计
// ==UserScript==
// @name 中信还款
// @namespace http://tampermonkey.net/
// @version 0.5
// @description try to take over the world!
// @author You
// @match https://i.bank.ecitic.com/perbank6/gotomain.do
// @icon https://www.google.com/s2/favicons?sz=64&domain=ecitic.com
// @grant none
// ==/UserScript==
@alanhg
alanhg / jd_review.user.js
Last active December 25, 2023 04:23
京东自动评价 for Tampermonkey
// ==UserScript==
// @name JD Review
// @namespace http://tampermonkey.net/
// @version 2023-12-23
// @description try to take over the world!
// @author Alan He
// @match https://club.jd.com/myJdcomments/myJdcomment.action
// @grant none
// @run-at context-menu
// ==/UserScript==
@alanhg
alanhg / alpine.Dockerfile
Last active September 6, 2023 04:24
alpine.Dockerfile
FROM alpine:3.14
RUN apk add --no-cache mysql-client
ENTRYPOINT ["mysql"]
@alanhg
alanhg / Dockerfile
Created August 6, 2023 11:09
centos-lrzsz.dockerfile
1 # 维护者信息
2 # 使用官方 CentOS 镜像为基础
3 FROM centos:centos7
4
5
6 # 安装 nginx 和 lrzsz
7 RUN yum -y update && \
8 yum -y install epel-release && \
9 yum -y install nginx lrzsz && \
10 yum clean all
@alanhg
alanhg / code-server-install.sh
Last active October 11, 2022 04:07
code server install sh
# 安装code-server包,也可以使用官方脚本 https://raw.githubusercontent.com/coder/code-server/main/install.sh
VERSION=4.7.1
PORT=8090
mkdir -p ~/.local/lib ~/.local/bin
curl -fL https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-linux-amd64.tar.gz \
| tar -C ~/.local/lib -xz
@alanhg
alanhg / install-package-certbot.sh
Last active October 6, 2022 06:58
install-package-certbot.sh
#!/bin/sh
# sudo sh -c "$(curl -fsSL https://gist.githubusercontent.com/alanhg/b861c85afa1887daa053ad90fa930453/raw/b9abe224631981fafd184de4b5b87d3fe12d3eaa/install-package-certbot.sh)"
YUM_CMD=$(which yum)
APT_GET_CMD=$(which apt-get)
APT_CMD=$(which apt)
PACKAGE=certbot
if [ ! -z $YUM_CMD ]; then
yum install -y $PACKAGE
echo "Uploading files to remote server...."
sshpass -p "xxx" scp -r ./build/** root@192.168.1.108:/var/www/mana
echo "File upload to remote server completed! ;)"