Skip to content

Instantly share code, notes, and snippets.

View sanbei011's full-sized avatar
🎯
专注中

Sanbei sanbei011

🎯
专注中
View GitHub Profile
@sanbei011
sanbei011 / install-postgresql.sh
Last active May 23, 2024 08:50
在Ubuntu22.04上安装Postgresql并配置navicat远程访问权限
#!/bin/bash
echo "开始进行步骤1:安装 PostgreSQL 16..."
# 更新包列表并安装基本依赖
sudo apt update -y
sudo apt install -y wget gnupg2
# 添加 PostgreSQL 仓库
wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
@sanbei011
sanbei011 / 积极分子.js
Created May 13, 2024 14:53
入党积极分子刷课
// ==UserScript==
// @name 农大叛逆份子
// @description CAU入党积极分子
// @author sanbei101
// @match http://202.205.91.77:8090/*
// @match http://ncst.dangqipiaopiao.com/jjfz/*
// @match http://ncst.dangqipiaopiao.com/exam/*
// @grant unsafeWindow
// @grant GM_getValue
// @grant GM_setValue
@sanbei011
sanbei011 / install-supabase.sh
Last active June 23, 2024 11:06
Oneclick installation of Supabase 一键安装并配置Supabase
echo "正在克隆Supabase仓库..."
git clone --depth 1 https://gitee.com/sanbei101/supabase_docker.git
# 进入docker目录
cd supabase_docker
# 提示用户输入必要的环境变量
echo "请设置以下环境变量:"
@sanbei011
sanbei011 / uzip.yml
Created April 3, 2024 06:13
上传zip自动解压到github仓库
name: extract a zip file # 工作流程的名称
on:
push: # 当有代码推送时触发
paths: # 触发条件:指定的文件路径
- '**/*.zip' # 当任何文件夹下的 .zip 文件发生变化时触发
workflow_dispatch: # 允许手动触发工作流程
jobs:
unzip-and-organize: # 工作流程中的任务名为 unzip-and-organize