---
title: "pig (@pig) | Hashnode"
description: "notes. Read the latest articles by pig on Hashnode."
url: "https://hashnode.com/@pig"
---

@pig

# pig

@pig · Joined May 2022

notes

### [使用GithubAction给任意网页截图](https://pig.hashnode.dev/githubaction-1?utm_source=hashnode&utm_medium=feed)

前言： 最近白嫖 Replit 的时候发现了一个能在 vercel 部署的网页截图程序：valetzx/websnap 可以将网页截图并展示 DEMO 以下截图是该程序为本页生成的实时渲染。但是这个程序有个非常不友好的BUG就是截图网页中有中文时，中文会被渲染成方框，简单来说就是（ 缺 字 体 ）可是 vercel 的环境非常封闭?比较难去添加字体给系统。 那为什么不用 iframe 标签呢？整个网页的渲染相比图片还是比较吃力的，我们完全可以把渲染交给服务器。并且网页截图能做更多东西，比如网页...

2 min read · [pig.hashnode.dev](https://pig.hashnode.dev/githubaction-1?utm_source=hashnode&utm_medium=feed)

[May 8, 2022](https://hashnode.com/posts/githubaction-1/628d8fdcbc26026fa45c53e7)

### [使用Graph获取微软永久客户端秘钥](https://pig.hashnode.dev/graph?utm_source=hashnode&utm_medium=feed)

前言： 现在微软客户端秘钥client\_secret有效期24个月，但是还是可以获得永久的secret的。方便一次设置 永久（理论）续订！ 开始： 打开 https://developer.microsoft.com/en-us/graph/graph-explorer 点最左边蓝色 Sign in to Graph Explorer 登录 右边 框框 Modify permissions (Preview) 将所有权限√同意 左侧栏，Applications (8) ，下面找到绿色的POST...

1 min read · [pig.hashnode.dev](https://pig.hashnode.dev/graph?utm_source=hashnode&utm_medium=feed)

[Apr 30, 2022](https://hashnode.com/posts/graph/628d8fc0b4bd016fc9a32905)

### [在Replit中自建监控网站](https://pig.hashnode.dev/replit-1?utm_source=hashnode&utm_medium=feed)

前言： 废话不多说，这篇文章胶凝在replit上白嫖一个网站监控，并设置企业微信通知。 本次一键部署资源可以在我的仓库Star获取：valetzx starlist replit 准备： 注册 Replit，准备好教育仓库。 这里要用到nodejs监控，和Python企业微信通知 浏览仓库：louislam/uptime-kuma 监控主程序 浏览仓库：easychen/wecomchan 微信通知 开始： 转到仓库：在replit自建uptime-kuma监控 (github.com) 一键...

1 min read · [pig.hashnode.dev](https://pig.hashnode.dev/replit-1?utm_source=hashnode&utm_medium=feed)

[Apr 22, 2022](https://hashnode.com/posts/replit-1/628d8fb3b4bd016fc9a32900)

### [在Replit中配置Nix环境](https://pig.hashnode.dev/replitnix?utm_source=hashnode&utm_medium=feed)

前言： 在Replit中白嫖 时，一定会遇到有不能一键部署的环境，那我们如何选择自己想要的环境呢？这里需要用到Replit环境中自带的 replit.nix 文件。Nix 是什么，我们要怎么使用，下面的文章会解答凝的疑问（ 准备： 其实没什么好准备的，在Replit准备一个Bash环境（理论上任意环境都行），打开仓库后，点文件最右边三个点，点显示隐藏文件，然后仓库根文件夹中会多出 .replit replit.nix 两个文件。我们要使用 replit.nix 配置环境。 开始： 首先 Nix...

1 min read · [pig.hashnode.dev](https://pig.hashnode.dev/replitnix?utm_source=hashnode&utm_medium=feed)

[Apr 20, 2022](https://hashnode.com/posts/replitnix/628d8f85bc26026fa45c53df)

### [使用Replit白嫖3G MC 服务器](https://pig.hashnode.dev/replit3g-mc?utm_source=hashnode&utm_medium=feed)

1 min read · [pig.hashnode.dev](https://pig.hashnode.dev/replit3g-mc?utm_source=hashnode&utm_medium=feed)

[Apr 19, 2022](https://hashnode.com/posts/replit3g-mc/628d8f56b4bd016fc9a328f5)
